mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-04-05 03:37:43 +00:00
Tweak sprite update and laser hit
This commit is contained in:
parent
b13fb204a2
commit
360be4c709
@ -364,6 +364,10 @@ def game(spdrcnt)#1
|
||||
fin
|
||||
fin
|
||||
//
|
||||
// Update sprites
|
||||
//
|
||||
spriteDrawXorList()
|
||||
//
|
||||
// Lasers
|
||||
//
|
||||
if lasercharging
|
||||
@ -395,15 +399,15 @@ def game(spdrcnt)#1
|
||||
width = 10 // Spider width
|
||||
fin
|
||||
if leftxlaser >= xspdr[k]-width and leftxlaser <= xspdr[k]+width
|
||||
if yspdr[k] > leftylaser
|
||||
if yspdr[k] + 5 > leftylaser
|
||||
lefthit = k
|
||||
leftylaser = yspdr[k]
|
||||
leftylaser = yspdr[k] + 5
|
||||
fin
|
||||
fin
|
||||
if rightxlaser >= xspdr[k]-width and rightxlaser <= xspdr[k]+width
|
||||
if yspdr[k] > rightylaser
|
||||
if yspdr[k] + 5 > rightylaser
|
||||
righthit = k
|
||||
rightylaser = yspdr[k]
|
||||
rightylaser = yspdr[k] + 5
|
||||
fin
|
||||
fin
|
||||
fin
|
||||
@ -503,7 +507,6 @@ def game(spdrcnt)#1
|
||||
hgrXorVLin(rightylaser, YSHIP-8, rightxlaser-1)
|
||||
fin
|
||||
fin
|
||||
spriteDrawXorList()
|
||||
//
|
||||
// Update stars
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user