Pārlūkot izejas kodu

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

master
Bryan Miller pirms 6 gadiem
vecāks
revīzija
3950af840c
3 mainītis faili ar 16 papildinājumiem un 0 dzēšanām
  1. +8
    -0
      CREDITS
  2. Binārs
      fonts/IttyBitty.ttf
  3. +8
    -0
      game/__init__.py

+ 8
- 0
CREDITS Parādīt failu

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

GRAPHICS
Bryan "ObsidianBlk" Miller

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

Binārs
fonts/IttyBitty.ttf Parādīt failu


+ 8
- 0
game/__init__.py Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt