Browse Source

Prevented players from reversing back into their own trails

main
Jo Jerrica Decker 5 months ago
parent
commit
84e3fcd19a
  1. 10
      beamclsh.p8

10
beamclsh.p8

@ -148,13 +148,13 @@ function init_player()
function ply:input() function ply:input()
id=self.id-1 id=self.id-1
if btn(⬅️,id) then if btn(⬅️,id) and self.xspd!=1 then
self:redirect(-1,0) self:redirect(-1,0)
elseif btn(➡️,id) then elseif btn(➡️,id) and self.xspd!=-1then
self:redirect(1,0) self:redirect(1,0)
elseif btn(⬆️,id) then elseif btn(⬆️,id) and self.yspd!=1 then
self:redirect(0,-1) self:redirect(0,-1)
elseif btn(⬇️,id) then elseif btn(⬇️,id) and self.yspd!=-1 then
self:redirect(0,1) self:redirect(0,1)
end end
end end
@ -459,8 +459,6 @@ cd111111111111111111111111111111111111111111111111111111111111111111111111111111
cddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddc cddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddc
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
__map__
0000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
__sfx__ __sfx__
1a060000216502b65030650326502c6502665034600156301f6302463026630206301a630006000962013620186201a620146200e620306000961013610186101a610146100e610306002f6002f6002e6002d600 1a060000216502b65030650326502c6502665034600156301f6302463026630206301a630006000962013620186201a620146200e620306000961013610186101a610146100e610306002f6002f6002e6002d600
001000000d6000d6000d6000d6000d6000d6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 001000000d6000d6000d6000d6000d6000d6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Loading…
Cancel
Save