This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nitrogenfingers's profile picture

[Game] Snake Maze

Started by nitrogenfingers, 18 August 2014 - 10:12 AM
nitrogenfingers #1
Posted 18 August 2014 - 12:12 PM


What is it:

Do you like Worm? Do you wish worm had complicated maze-like levels, more varieties of items to collect, more obstacles, end goals, high score boards, streams of fire and a morbid sense of humour? If so, then you have extremely specific tastes, and you're in luck. Snake Maze is your game.

You guide Sammy, Clyde or Joss through a large open-ended maze in search of 16 golden eggs. In addition to being a mouth-watering treat, when all eggs have been collected a portal will open, allowing you to leave the maze and earn a slew of bonus points. As you travel you'll have to avoid mushrooms, walls and yourself as you collect bugs and eggs to keep your energy levels up. If you energy drops to zero, you'll perish!

Scattered around the level are fire bugs, which will make your snake's mouth red-hot. Hit the space bar and you'll spew a stream of fire forwards continuously for one or two seconds. This can be used to demolish walls but will also burn you if you're not careful!

Supported on Computers and Advanced Computers.

Screenshots:

Spoiler










Installation:

You can grab an installer here
http://pastebin.com/9cdEwcZB

A copy of the latest executable can be found here:
http://pastebin.com/RT7d55Dd

How to play:

Arrow keys: Turn snake and navigate menus
Enter: Select menus, pause game
Space: Spew fire

Make your own levels:

Ehhh… You can, but I couldn't recommend it wholeheartedly. In fact until the executable is a bit cleaner (code is horrible) I wouldn't recommend trying at all. You might break something. I used npaintpro to make them and would recommend using that or some other editing tool with a ruler if you intend to do it yourself.

Comments:

This hasn't been tested natively (which is why the screenshots are a bit off-colour). There may well be native issues- please report if you have any or indeed any other issues, as it was rushed to finish and hasn't been thoroughly tested. Assuming a bug-free performance, did you enjoy the game? Did you love it? Does it suck? Feel free to leave any such feedback in the comments. Hope you enjoy it :)/>

I received a request to make it compatible with OneOS by making levels one pixel shorter (screen size 50x19). To play with this mode, use the -o argument when starting the game. The updated levels are included with the latest installer.
Edited on 24 August 2014 - 03:22 AM
InputUsername #2
Posted 18 August 2014 - 12:26 PM
Woah, very cool game! Just played a few rounds on an emulator and I must say, this is a really smooth game, lots of fun too. I'll test it 'natively' later, but so far, great job.
One tiny thing I found a bit frustrating was turning the snake, which is easier in the original "worm" game.

Also, good to see you back, it's been a while :)/>

Edit: oh noes, found a bug already :(/> When you die while spewing fire and start a new game, you'll still be spewing fire and eventually bug out, crashing the game.
Edited on 18 August 2014 - 10:31 AM
nitrogenfingers #3
Posted 18 August 2014 - 12:44 PM
Thanks for the report and your feedback! I wasn't able to duplicate the error myself but made a few quick changes to the source code that seem to have done the trick. A link to the updated executable is in the description.

I checked the source code to worm and I'm fairly certain that turning works exactly the same way in both games. I think the difference in turning (I noticed it too) is because the timer tick is much slower, which means anticipating and timing your turns can be hard, especially in the mazy sections. But it's something I got used to after a few rounds.
Cranium #4
Posted 18 August 2014 - 05:20 PM
Very nice, well done! Nice to see you're somewhat back with ComputerCraft!
nitrogenfingers #5
Posted 19 August 2014 - 10:53 AM
Patched with a bunch of bug fixes and a few new features (including something to be unlocked- hinted at in the screenshots). I've been asked to produce a version that's slightly smaller for OS users so am working on that as well as a turtle version, but besides that this one is pretty-much done. Hope people enjoy it, and as always leave comments for feedback and well, comments!
TheOddByte #6
Posted 23 August 2014 - 09:17 AM
Wow, this game's amazing! And as cranium said, nice to see you again! :D/>
By the way, did you use string.char to get that special character?
nitrogenfingers #7
Posted 24 August 2014 - 05:26 AM
Thanks :)/> Yes I did. It was the most mushroomy character I could find.

Another update, the game now supports monochrome displays (see screenshots). I was also asked by email to make it compatible for OneOS I think, by making the levels one pixel shorter. This has been done- with the latest installer version just run the game with the -o argument to play the slightly shorter levels. It leaves a margin on a standard monitor but is otherwise completely playable.
TheOddByte #8
Posted 24 August 2014 - 10:44 AM
Thanks :)/> Yes I did. It was the most mushroomy character I could find.

Another update, the game now supports monochrome displays (see screenshots). I was also asked by email to make it compatible for OneOS I think, by making the levels one pixel shorter. This has been done- with the latest installer version just run the game with the -o argument to play the slightly shorter levels. It leaves a margin on a standard monitor but is otherwise completely playable.
Nice to see you've added support for regular computers, what have you planned for this in the future? ( I'm guessing you're going to update it and add even more awesome stuff )
nitrogenfingers #9
Posted 24 August 2014 - 02:39 PM
Open to suggestions. Right now I think it's pretty self-contained and not sure how much more I can add to it; not sure if adding more levels will change the experience much and I can't think of many more game play additions. Please shout out if anyone has any ideas.

I'm finishing up another game right now which I'll be releasing on the forums soon.
TheOddByte #10
Posted 31 August 2014 - 03:28 AM
I'm finishing up another game right now which I'll be releasing on the forums soon.
I don't have any suggestions right now, I'm glad you're releasing another game! :D/>