Szöveg renderelés

This commit is contained in:
markojozsef
2026-09-11 16:58:20 +02:00
parent 10fd39db7d
commit 11bd208c79
4 changed files with 98 additions and 23 deletions

View File

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