Ver código fonte

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

master
Bryan Miller 6 anos atrás
pai
commit
3950af840c
3 arquivos alterados com 16 adições e 0 exclusões
  1. +8
    -0
      CREDITS
  2. BIN
      fonts/IttyBitty.ttf
  3. +8
    -0
      game/__init__.py

+ 8
- 0
CREDITS Ver arquivo

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

GRAPHICS
Bryan "ObsidianBlk" Miller

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

BIN
fonts/IttyBitty.ttf Ver arquivo


+ 8
- 0
game/__init__.py Ver arquivo

@@ -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)


Carregando…
Cancelar
Salvar