mirror of
https://github.com/stevenhowes/TheEscape.git
synced 2026-05-27 00:03:25 +01:00
Collided enemies richochet
This commit is contained in:
Binary file not shown.
@@ -133,6 +133,11 @@ DEF PROC_main
|
|||||||
ENDPROC
|
ENDPROC
|
||||||
|
|
||||||
DEF PROCenemy_ship_handle_damage
|
DEF PROCenemy_ship_handle_damage
|
||||||
|
FOR Enemy%=0 TO MaxEnemies% - 1
|
||||||
|
IF EnemyHealth%(Enemy%) <= 0 THEN
|
||||||
|
EnemySprites$(Enemy%) = "explode_shp1"
|
||||||
|
ENDIF
|
||||||
|
NEXT Enemy%
|
||||||
ENDPROC
|
ENDPROC
|
||||||
|
|
||||||
DEF PROCrespawn_enemy(Enemy%)
|
DEF PROCrespawn_enemy(Enemy%)
|
||||||
@@ -253,8 +258,8 @@ DEF PROCenemy_ship_collide_player
|
|||||||
EnemyHealth%(Enemy%) = EnemyHealth%(Enemy%) - 30
|
EnemyHealth%(Enemy%) = EnemyHealth%(Enemy%) - 30
|
||||||
PlayerStructuralIntegrity% = PlayerStructuralIntegrity% - EnemyCollideForce%(Enemy%)
|
PlayerStructuralIntegrity% = PlayerStructuralIntegrity% - EnemyCollideForce%(Enemy%)
|
||||||
EnemyCollidable%(Enemy%) = 0
|
EnemyCollidable%(Enemy%) = 0
|
||||||
EnemyVelocity%(Enemy%,X) = 0
|
EnemyVelocity%(Enemy%,Y) = EnemyVelocity%(Enemy%,Y) / 2
|
||||||
EnemyVelocity%(Enemy%,Y) = 0
|
EnemyVelocity%(Enemy%,X) = EnemyVelocity%(Enemy%,X) * 4
|
||||||
ENDIF
|
ENDIF
|
||||||
ENDIF
|
ENDIF
|
||||||
NEXT Enemy%
|
NEXT Enemy%
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user