Procházet zdrojové kódy

Updated code to test the NodeSprite class

master
Bryan Miller před 7 roky
rodič
revize
eeee8cbd68
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. +5
    -0
      game/__init__.py

+ 5
- 0
game/__init__.py Zobrazit soubor

root.align_center = True root.align_center = True
root.set_surface((64, 64)) root.set_surface((64, 64))


sprite = gbe.nodes.NodeSprite("Sprite", root)
sprite.image = "maptiles/Walls.png"
sprite.rect = (48, 32, 16, 16)
sprite.position = (20, 20)

text = gbe.nodes.NodeText("TextNode", root) text = gbe.nodes.NodeText("TextNode", root)
text.font_src = "IttyBitty.ttf" text.font_src = "IttyBitty.ttf"
text.size = 4 text.size = 4

Načítá se…
Zrušit
Uložit