mirror of
https://github.com/stevenhowes/TheEscape.git
synced 2026-05-27 04:01:28 +01:00
Adjustable Velocity
This commit is contained in:
Binary file not shown.
@@ -9,7 +9,7 @@ DEF PROC_main
|
|||||||
DIM PlayerLocation%(1)
|
DIM PlayerLocation%(1)
|
||||||
PlayerLocation%(0) = 800
|
PlayerLocation%(0) = 800
|
||||||
PlayerLocation%(1) = 100
|
PlayerLocation%(1) = 100
|
||||||
PlayerVelocity%=0
|
PlayerVelocity%=1
|
||||||
PlayerShields%=100
|
PlayerShields%=100
|
||||||
PlayerStructuralIntegrity%=100
|
PlayerStructuralIntegrity%=100
|
||||||
XMovePerCent%=10
|
XMovePerCent%=10
|
||||||
@@ -46,7 +46,7 @@ DEF PROC_main
|
|||||||
FOR Spec%=0 TO 49
|
FOR Spec%=0 TO 49
|
||||||
GCOL 0,0
|
GCOL 0,0
|
||||||
LINE SpecLocations%(0,Spec%),SpecLocations%(1,Spec%),SpecLocations%(0,Spec%),SpecLocations%(1,Spec%)
|
LINE SpecLocations%(0,Spec%),SpecLocations%(1,Spec%),SpecLocations%(0,Spec%),SpecLocations%(1,Spec%)
|
||||||
SpecLocations%(1,Spec%) = SpecLocations%(1,Spec%) - (Cents% - LastCents%)
|
SpecLocations%(1,Spec%) = SpecLocations%(1,Spec%) - ((Cents% - LastCents%) * PlayerVelocity%/10)
|
||||||
IF SpecLocations%(1,Spec%) < 0 THEN
|
IF SpecLocations%(1,Spec%) < 0 THEN
|
||||||
SpecLocations%(1,Spec%) = 1200
|
SpecLocations%(1,Spec%) = 1200
|
||||||
SpecLocations%(0,Spec%) = RND(1600)
|
SpecLocations%(0,Spec%) = RND(1600)
|
||||||
@@ -115,6 +115,18 @@ DEF PROCinputs
|
|||||||
ResetShipSprite% = Cents% + 20
|
ResetShipSprite% = Cents% + 20
|
||||||
PlayerLocation%(0) = PlayerLocation%(0) - (XMovePerCent% * (Cents% - LastCents%))
|
PlayerLocation%(0) = PlayerLocation%(0) - (XMovePerCent% * (Cents% - LastCents%))
|
||||||
ENDIF
|
ENDIF
|
||||||
|
IF INKEY(-58) THEN
|
||||||
|
PlayerVelocity% = PlayerVelocity% + 1
|
||||||
|
IF PlayerVelocity% > 100 THEN
|
||||||
|
PlayerVelocity% = 100
|
||||||
|
ENDIF
|
||||||
|
ENDIF
|
||||||
|
IF INKEY(-42) THEN
|
||||||
|
PlayerVelocity% = PlayerVelocity% - 1
|
||||||
|
IF PlayerVelocity% < 0 THEN
|
||||||
|
PlayerVelocity% = 0
|
||||||
|
ENDIF
|
||||||
|
ENDIF
|
||||||
IF INKEY(-17) THEN
|
IF INKEY(-17) THEN
|
||||||
IF DebugOut% = 1 THEN DebugOut% = 0 ELSE DebugOut% = 1
|
IF DebugOut% = 1 THEN DebugOut% = 0 ELSE DebugOut% = 1
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|||||||
Reference in New Issue
Block a user