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

[Game] Rat Trap

Started by nitrogenfingers, 19 September 2013 - 11:11 AM
nitrogenfingers #1
Posted 19 September 2013 - 01:11 PM
Rat Trap




What is it:

This is a tile based trapping game inspired by the game "Rodent's Revenge" by Christopher Lee Fraley in 1991 as part of the Microsoft Entertainment Pack, a series of games designed to sell Windows 3.1 to DOS gamers. In the game the player is able to 'push' blocks around with the goal of trapping the enemy players into a single tile. Trapping all the enemies on screen would convert them into points that could be collected. Rat Trap is similar in style to that game but makes some modifications.

Installation:

Get the installer here: http://pastebin.com/HRx2m6rt

Or download the latest executable here: http://pastebin.com/epK8Kgb9

Once it's done downloading, simply run RatTrap to play.

How to play:

Numpad 1-9: Move in any direction
Enter: Quit the game

Push the lime blocks by walking into them, and try to trap the enemies in a single tile. If you trap them all, they'll turn into $ which you can pick up for points. Enemies periodically spawn. Survive for as long as you can!
Some tiles are grey. These are immobile and cannot be pushed.
There are also holes in the ground. If you push blocks into these, they will disappear. If you fall in a hole, you'll be immobilized for 10 seconds.

Custom Level Design:

Right now there isn't a level editor or any form of progression for Rat Trap, but you can edit the current level using NPaintPro or edit (note paint will not work!). The color key is displayed below. Other attributes like the frequency with which enemies spawn, how many enemies spawn in the level and how fast the game moves can be modified by editing the fields at the top of the code.

Spoiler

Note that some tiles as of right now are not supported- enemy, trench, landmine can be made but will do nothing.

Have fun, and if you gave the game a spin leave let me know if you enjoyed it :)/>

-NF
masterdisasterHD #2
Posted 19 September 2013 - 01:22 PM
may i
Spoilerimplement this in my upcoming OS?
theoriginalbit #3
Posted 19 September 2013 - 01:27 PM
As always this looks amazing Nitro, you're the boss at games and game design!

may i implement this in my upcoming OS?
Stop it with the damn spoilers!
Tjakka5 #4
Posted 19 September 2013 - 01:37 PM
Again an amazing game by Nitro, and I just love the GUI, how do you design those?
masterdisasterHD #5
Posted 19 September 2013 - 03:17 PM
As always this looks amazing Nitro, you're the boss at games and game design!

–snip–
Stop it with the damn spoilers!

its suppose to be a spoiler for the people who do not want to have it spoiled :/
nitrogenfingers #6
Posted 19 September 2013 - 08:42 PM
Thanks for the feedback so far. I'm actually really unhappy with the interface at the moment- think it has some work to be done. Not thrilled with the colour pallette either, will keep tinkering.

–snip–

Sure. Like all my software, so long as you acknowledge and keep the comment at the top of the code intact, you're free to do whatever you like with it.