Skip to content

Easy command to blit text? #62

Closed
Closed

Description

@Tymewalk

Should we have a command that works like this:

blitText("Hello, world!", (0, 0), size=10, font="somefont.ttf")

Activity

  1. BookOwl commented on Jun 1, 2016

    @BookOwl
    Member

    Yes, but I would prefer something like
    showText(text="Hi!", x=0, y=0, size=12, font="Helvetica")

  2. Tymewalk commented on Jun 2, 2016

    @Tymewalk
    MemberAuthor

    @BookOwl What about this (mandatory text argument):
    showText("Hello!", x=0, y=0, size=12, font="Helvetica")

    font has to be a system font, but you can also specify a custom one with fontPath:
    showText("Hello!", x=0, y=0, size=12, fontPath="path/to/font.ttf")

    If both font and fontPath are specified then font is used. Defaults to the pygame system font if neither are defined.

  3. BookOwl commented on Jun 2, 2016

    @BookOwl
    Member

    @Tymewalk sounds good to me.

  4. Tymewalk commented on Jun 2, 2016

    @Tymewalk
    MemberAuthor

    Once #61 gets merged I'll start working on that.

  5. BookOwl commented on Jun 3, 2016

    @BookOwl
    Member

    Do we want to add this in v0.3.0 or save it for 0.4?

  6. added this to the v0.3.0 milestone on Jun 3, 2016
  7. Tymewalk commented on Jun 3, 2016

    @Tymewalk
    MemberAuthor

    @BookOwl 0.3.0 sounds good. It doesn't seem like it'll be too hard, so no sense in putting it off.

    My plan is to get as many useful functions and small things as possible in 0.3.x, since then we can work on advanced stuff for 0.4.

  8. self-assigned this
    on Jun 4, 2016
  9. BookOwl commented on Jun 10, 2016

    @BookOwl
    Member

    @Tymewalk, are you still planning on doing this?

  10. Tymewalk commented on Jun 27, 2016

    @Tymewalk
    MemberAuthor

    @BookOwl Yeah. Just had some inactivity

  11. Tymewalk commented on Aug 7, 2016

    @Tymewalk
    MemberAuthor

    Just had some inactivity

    Been gone for over a month now, Past Self 😐

    I'll get to work on this though.

  12. Tymewalk commented on Aug 7, 2016

    @Tymewalk
    MemberAuthor

    We apparently forgot about color and antialias arguments.

    Check #77 for my progress on this.

  13. Tymewalk commented on Aug 15, 2016

    @Tymewalk
    MemberAuthor

    The tricky part here is getting the screen to blit to.

    We could ask for which screen as an argument but that could be confusing.

    Never mind. We have a slitherStage variable.

  14. added a commit that references this issue on Sep 11, 2016
  15. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    MemberAuthor

    It's done, and it also rewrote a little code which makes blitting new things easier in the future.

    Soon we shall release 0.2.3 (or 0.3.0)... 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions