summaryrefslogtreecommitdiff
path: root/src/main/kotlin/de/romjaki/pluggabledino/states
diff options
context:
space:
mode:
authorazoooooo <118elemente@gmail.com>2018-07-14 22:37:54 +0200
committerazoooooo <118elemente@gmail.com>2018-07-14 22:37:54 +0200
commit5e36d9fec9020097cba3752416737ef1ab334de3 (patch)
tree169b78e1dbf11377387a36d36bec43d766f2a750 /src/main/kotlin/de/romjaki/pluggabledino/states
parent7b1f56d5d381ec75e757e7df4714c7acdc3c4803 (diff)
downloadpluggabledino-5e36d9fec9020097cba3752416737ef1ab334de3.tar.gz
pluggabledino-5e36d9fec9020097cba3752416737ef1ab334de3.tar.bz2
pluggabledino-5e36d9fec9020097cba3752416737ef1ab334de3.zip
Birds Generation
Diffstat (limited to 'src/main/kotlin/de/romjaki/pluggabledino/states')
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt4
1 files changed, 3 insertions, 1 deletions
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))
}