Irányítás
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
import arcade
|
||||
import assets
|
||||
import text
|
||||
|
||||
text = text.TextRenderer(0, 100, 200)
|
||||
|
||||
def switch():
|
||||
text.reset("●A bölcs, gyors, fürge róka zöld ágon ül, miközben egy tyúk csípős paprikát főz, és egy whiskyvel teli dobozt cipelő dzsesszzenész kvázi jókedvűen fütyörészik.")
|
||||
text.type_all()
|
||||
|
||||
def update(dt):
|
||||
pass
|
||||
|
||||
def draw(game):
|
||||
text.render()
|
||||
@@ -1,5 +1,6 @@
|
||||
import arcade
|
||||
import assets
|
||||
import controls
|
||||
import text
|
||||
import renderers
|
||||
|
||||
@@ -7,11 +8,16 @@ text = text.TextRenderer(6, 186, 210)
|
||||
panel = renderers.NineSlicesPanel(0,100,230,100)
|
||||
|
||||
def switch():
|
||||
text.reset("●A bölcs, gyors, fürge róka zöld ágon ül, miközben egy tyúk csípős paprikát főz, és egy whiskyvel teli dobozt cipelő dzsesszzenész kvázi jókedvűen fütyörészik.")
|
||||
text.type_all()
|
||||
pass
|
||||
|
||||
def update(dt):
|
||||
pass
|
||||
controltext = ""
|
||||
|
||||
for c in controls.controls:
|
||||
controltext += f"{c.label}: {c.pressed}-{c.held}\n"
|
||||
|
||||
text.reset(controltext)
|
||||
text.type_all()
|
||||
|
||||
def draw(game):
|
||||
arcade.draw_rect_filled(
|
||||
@@ -20,4 +26,4 @@ def draw(game):
|
||||
)
|
||||
|
||||
panel.render()
|
||||
text.render()
|
||||
text.render()
|
||||
Reference in New Issue
Block a user