Bugfixes with the spawn points in ingame.py.

This commit is contained in:
2013-01-26 13:39:27 -04:30
parent 598c880e01
commit 8a6c7f9ce5
3 changed files with 4 additions and 3 deletions

View File

@@ -1 +1 @@
{"layout": "internal", "orientation": "landscape", "package": "com.blogspot.oneoop.hugs", "include_pil": false, "name": "Super HUGS Revolution 98", "icon_name": "HUGS 98", "version": "1.0", "permissions": ["INTERNET", "VIBRATE"], "include_sqlite": true, "numeric_version": "100"}
{"layout": "internal", "orientation": "landscape", "package": "com.blogspot.oneoop.hugs", "include_pil": false, "name": "Super HUGS Revolution 98", "icon_name": "HUGS 98", "version": "1.0.1", "permissions": ["INTERNET", "VIBRATE"], "include_sqlite": true, "numeric_version": "10001"}

View File

@@ -72,7 +72,7 @@ How to play
Executing:
To play on a PC execute the main.py script of Super HUGS Revolution 98. To play
on Android start the installed app (it is named HUGS by default).
on Android start the installed app (it is named HUGS 98 by default).
Controls:
Guide Moncho by tapping and holding on the screen wherever you want him to

View File

@@ -110,7 +110,7 @@ class InGameState(BaseState):
bg_h - int((155.0 * float(pygame.display.Info().current_h)) / 768.0)]
# Place the spawners in position.
positions = [(137, 181), (660, 181), (1190, 181), (1190, 662), (1190, 1155), (660, 1155), (137, 1155), (137, 662)]
positions = [(180, 200), (660, 200), (1140, 200), (1140, 662), (1140, 1055), (660, 1055), (180, 1055), (180, 662)]
i = 0
for spawner in self.spawners:
spawner.set_position([(positions[i][0] * bg_w) / 1315, (positions[i][1] * bg_h) / 1280])
@@ -579,6 +579,7 @@ class InGameState(BaseState):
# TODO: Destroy all NPC's.
self.explosions.clear()
self.npcs.clear()
self.enemies.clear()
player.PLAYERS[1].revive()