瀏覽代碼

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

master
Bryan Miller 6 年之前
父節點
當前提交
3950af840c
共有 3 個文件被更改,包括 16 次插入0 次删除
  1. +8
    -0
      CREDITS
  2. 二進制
      fonts/IttyBitty.ttf
  3. +8
    -0
      game/__init__.py

+ 8
- 0
CREDITS 查看文件

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

GRAPHICS
Bryan "ObsidianBlk" Miller

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

二進制
fonts/IttyBitty.ttf 查看文件


+ 8
- 0
game/__init__.py 查看文件

@@ -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…
取消
儲存