The player keeps rotating at high speed sometimes, making the bullets miss. The final boss (the huge one after the player unlocks the rocket launcher) is either extremely hard to kill or not possible to kill
龙鸡
Creator of
Recent community posts
Hmm the only way I found to add DT doesn't work for functions (the update function), is there another way I haven't found?
EDIT: I came up with my solution. But it doesn't work that well if someone is getting below 40 FPS, above is accurate enough. Anything above 60 FPS is accurate (if I get 200 FPS the update loop will still run at 60 FPS).
Thanks, the GitHub one is more up-to-date than the Itch.io one because I don't feel like re-uploading the files every time I make a change. Oh and, I don't have a way of exporting projects into EXE files because Python doesn't even support it normally, I used Pyinstaller to export it, it bundles the Python interpreter and the game scripts into one EXE file.
Code that I uncompressed
poke(0x5f2c,3) a={18,28,38,28} b={22,22,22,32} p=0 g=4 i=1 l=0 c=color q=btnp ::_:: c(0) --screen black --use this for j=0,999 do pset(rnd(64),rnd(64)) end --and not this --for j=0,4096 do --if (rnd()>.7) pset(j\64,j%64) --end --timer colour c(7) --timer size l=time() --score ?p,0,0 --timer line(0,63,l,63) --loop to draw all rects for j=1,4 do --grey squre colour c(5) --green squre if (j==g) c(3) ?"x",a[j]+3,b[j]+2 --player if (j==i) c(7) --game end if (l>63) c(8) --draws all rects rect(a[j],b[j],a[j]+8,b[j]+8)end if(l<63)then --movement if (q(0) and i%4>1) i-=1 if (q(1) and i<3) i+=1 if (q(2) and i>3) i=2 if (q(3) and i==2) i=4 --score + partical effects if(g==i) p+=1 g=rnd(4)\1+1 rectfill(a[i],b[i],a[i]+8,b[i]+8,3) --idk if(g==i) g+=1 g%=4 g+=1 --end end flip() goto _
I have a tip on making it better-ish but try using a for loop for the particles like this
`for i=0, 999 do
pset(r(q),r(q),1)end`
this way is fast because your only looping 999 times rather than 4096 times, you can even get rid of the cls() and flip() this way
also, how do I put code here, I only know how Discord does it by using this ```lua```?