Browse Source

Code added to test gbe.NodeText class. Added a new font (by bathwater). Added CREDITS file to give appropriate attributions

master
Bryan Miller 6 years ago
parent
commit
3950af840c
3 changed files with 16 additions and 0 deletions
  1. +8
    -0
      CREDITS
  2. BIN
      fonts/IttyBitty.ttf
  3. +8
    -0
      game/__init__.py

+ 8
- 0
CREDITS View File

@@ -0,0 +1,8 @@
SOURCE CODE
Bryan "ObsidianBlk" Miller

GRAPHICS
Bryan "ObsidianBlk" Miller

FONTS - IttyBitty
Bathwater - https://bathwater.itch.io/

BIN
fonts/IttyBitty.ttf View File


+ 8
- 0
game/__init__.py View File

@@ -46,6 +46,14 @@ def start():
root.align_center = True
root.set_surface((64, 64))

text = gbe.nodes.NodeText("TextNode", root)
text.font_src = "IttyBitty.ttf"
text.size = 4
text.antialias = False
text.text = "ObsidianBlk 123456"
text.set_color(255, 64, 128)
text.position_y = 30

sm.register_node(root)
sm.activate_node(root.name)


Loading…
Cancel
Save