From 5e36d9fec9020097cba3752416737ef1ab334de3 Mon Sep 17 00:00:00 2001 From: azoooooo <118elemente@gmail.com> Date: Sat, 14 Jul 2018 22:37:54 +0200 Subject: Birds Generation --- src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/de/romjaki/pluggabledino/states') diff --git a/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt b/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt index 5786837..6e538b5 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt @@ -64,7 +64,9 @@ class GameState : BasicGameState() { for (cactus in world.cacti) { g.drawImage(cactusImg, cactus.position.x * WIDTH / 50, cactus.position.y * HEIGHT / 50 - cactusImg.height) } - + for (bird in world.birdd) { + g.drawImage(BirdImg, bird.position.x * WIDTH / 50, bird.position.y * HEIGHT / 50 - BirdImg.height) + } Events.broadcastEvent(GameRenderEvent(g, game, container)) } -- cgit