Bugfixes with the spawn points in ingame.py.
This commit is contained in:
@@ -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"}
|
@@ -72,7 +72,7 @@ How to play
|
|||||||
|
|
||||||
Executing:
|
Executing:
|
||||||
To play on a PC execute the main.py script of Super HUGS Revolution 98. To play
|
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:
|
Controls:
|
||||||
Guide Moncho by tapping and holding on the screen wherever you want him to
|
Guide Moncho by tapping and holding on the screen wherever you want him to
|
||||||
|
@@ -110,7 +110,7 @@ class InGameState(BaseState):
|
|||||||
bg_h - int((155.0 * float(pygame.display.Info().current_h)) / 768.0)]
|
bg_h - int((155.0 * float(pygame.display.Info().current_h)) / 768.0)]
|
||||||
|
|
||||||
# Place the spawners in position.
|
# 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
|
i = 0
|
||||||
for spawner in self.spawners:
|
for spawner in self.spawners:
|
||||||
spawner.set_position([(positions[i][0] * bg_w) / 1315, (positions[i][1] * bg_h) / 1280])
|
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.
|
# TODO: Destroy all NPC's.
|
||||||
self.explosions.clear()
|
self.explosions.clear()
|
||||||
self.npcs.clear()
|
self.npcs.clear()
|
||||||
|
self.enemies.clear()
|
||||||
|
|
||||||
player.PLAYERS[1].revive()
|
player.PLAYERS[1].revive()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user