(08-28-2026, 11:40 PM)johnno56 Wrote: ...
The use of a joystick was brilliant... but it lulls the player into a false sense of security... All I had to do was hold down the fire button and "mop them up".
...
Thank you, Johnno, for your suggestions. I'll try my best to incorporate them into the code for Space Pooper (N7 version). Some I can do, but some I can't because they're a little beyond the limits of my brain intelligence...lol
Regarding the joystick issue, when the fire button is held down, it could potentially make it too easy to "mop up" the enemies. Perhaps this modified part of the code might address your concern :
Here is the modified UpdatePlayer(). The only change is adding the true parameter to joybutton which forces one shot per press, no holding allowed.
Code:
function UpdatePlayer()
...
' MODIFIED: joybutton 1 set to 'true' enables one-shot-per-press detection
if (keydown(KEY_SPACE) or joybutton(1, true)) and ply.bulletTimer = 0 then
if ply.bulletType >= 2 then
AddBullet(plyBullets, bullet1, ply.x + (width(player)/2) - (width(bullet1)/2), ply.y, 0, -5)
AddBullet(plyBullets, bullet1, ply.x + 2, ply.y, -1.5, -4.8)
AddBullet(plyBullets, bullet1, ply.x + (width(player)) - 2, ply.y, 1.5, -4.8)
else
AddBullet(plyBullets, bullet1, ply.x + 2, ply.y, 0, -5)
AddBullet(plyBullets, bullet1, ply.x + (width(player)) - 2, ply.y, 0, -5)
endif
ply.bulletTimer = 10
endif
...
endfunc
Just a little sneak peek.
Something is coming to Stage 4. I'm adding a few more enemies ... and things are about to get a lot more difficult.
Be prepared for the next release of Space Pooper (N7) ... if you dare... lol !
Finis Ultimus