Snake Digital Screen
Loading...
2,532
Loading...
Uploader Comments (cjozsa)
see all
All Comments (9)
-
Sorry, but you're voice is annoying.
-
Please can you upload the code?
-
excellent dude
-
Your knowledge of Gpu and the likes scares me. can you write down the links to download all the tools for this (as well as the giant screens, still cant find them) 5/5
-
omf Garry :O
-
It's 10
Loading...
I read somewhere in the wire wiki that the minimum value for interval() is 20, all values below 20 get changed to 20. Still, at 50 steps per second your game should run pretty fast.
Couldn't you just use wirelink to interface with a RAM chip and use that as though it was an array? 64K should be more than enough for a snake game.
z01db3r6 3 years ago
Yes, i could have used RAM. I chose not to - I like doing things minimally.
Expression 1 has a min interval of 20
Expression 2 has a min interval of 10
cjozsa 3 years ago
duuud!! You did all this with exp 2? Not CPU?
AWSUM!!
z01db3r6 3 years ago
indeed, which is why it has a maximum length.
however, since making it - tables/arrays have been added to E2, so i could now make it go forever.
cjozsa 3 years ago
That is indeed quite impressive. I once made a crappy version of pong using the wire CPU and a Screen. How did you make the expression run quickly enough to make the screen refresh so smoothly? And how do you store each piece of the snake? Is there a RAM chip?
z01db3r6 3 years ago
I stored them in a lot of variables, then shuffled the values of where it had been up the variable stack. Essentially i built my own small array with variables.
ie. X1 X2 X3 .... X30 and the same for Y positions.
interval(10) makes the program run 100 cycles a second, which is more than enough.
cjozsa 3 years ago