summaryrefslogtreecommitdiff
path: root/src/main/kotlin/de/romjaki/pluggabledino/states
diff options
context:
space:
mode:
authorRoman Gräf <roman.graef@gmail.com>2018-07-14 22:46:14 +0200
committerGitHub <noreply@github.com>2018-07-14 22:46:14 +0200
commit6585706c47343bcaf8145d19e4eee2f23562ec57 (patch)
tree169b78e1dbf11377387a36d36bec43d766f2a750 /src/main/kotlin/de/romjaki/pluggabledino/states
parent7b1f56d5d381ec75e757e7df4714c7acdc3c4803 (diff)
parent5e36d9fec9020097cba3752416737ef1ab334de3 (diff)
downloadpluggabledino-6585706c47343bcaf8145d19e4eee2f23562ec57.tar.gz
pluggabledino-6585706c47343bcaf8145d19e4eee2f23562ec57.tar.bz2
pluggabledino-6585706c47343bcaf8145d19e4eee2f23562ec57.zip
Merge pull request #10 from romangraef/feature-BirdGeneration1.0Final
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))
}