Szöveg renderelés
This commit is contained in:
@@ -1,25 +1,15 @@
|
||||
import arcade
|
||||
import assets
|
||||
import text
|
||||
|
||||
text = text.TextRenderer(0, 100, 200)
|
||||
|
||||
def switch():
|
||||
print("Hello I'm switched")
|
||||
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):
|
||||
arcade.draw_rect_filled(
|
||||
arcade.LBWH(0, 0, game.screen_width, game.screen_height),
|
||||
arcade.color.BLUE,
|
||||
)
|
||||
|
||||
arcade.draw_texture_rect(
|
||||
assets.sprites["louisu"],
|
||||
arcade.LBWH(
|
||||
0,
|
||||
0,
|
||||
assets.sprites["louisu"].width,
|
||||
assets.sprites["louisu"].height
|
||||
),
|
||||
pixelated=True
|
||||
)
|
||||
text.render()
|
||||
|
||||
Reference in New Issue
Block a user