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

[GAME] Ninja! - NINJAS!

Started by billysback, 11 July 2013 - 08:35 AM
billysback #1
Posted 11 July 2013 - 10:35 AM
NINJAS! (better than Cruor's)

Description:
This is a puzzle game I developed over the past day, the mechanics are incredibly simple
but so far I believe that result is a genuinely fun game. The game comprises of you (a ninja)
jumping about and clinging to walls, avoiding the threats that litter the maps in order to
get to the end of the level.

Controls:
The controls are WASD, A/D move Left/Right, W jumps and S moves down a grippy-wall.
Cntrl (left control) closes the game
R resets the game

Mechanics:
I tried to design the levels in a way which introduced each mechanic and showed you what they did.
If you're still confused by something here is a list of what everything does:
Brown walls - walls that stop everything. They are impassable.
Brown walls w/ line - walls that can be gripped on to, prevent you from falling
Spinning x's - they kill you… Bounce on both solid and boundaries, got different directions
Platform (-) - move side to side, stand on them and you will follow them
Spikes (red ^) - kill you if you touch them
Black gates (#) - x's can pass through them but you can't
Dots (.) - you can pass through them but x's and boulders can't
Boulders (Brown O) - push them around, affected by solids and boundaries
Chains (Gray U's with $'s hanging) - walk in to the chain and you die, boulders and solids block chains
Ropes ( :)/> - grippable but you can walk through them (not used in a puzzle yet)
Finish (@) - where the end of the map is, get here
Checkpoint (!) - resets your spawnpoint

Title screen:
When you start up the game you will be welcomed by a title screen with two buttons:
"Start" - starts the "Demo", two sample levels with all of the mechanics in them
"Load" - loads all files with the file ending ".nmp" (ninja-map-pack),
Left/right scroll through the pages of map packs
press a number between 1-5 to load a map-pack of your choice.

Map editor:
I have made one and it is functional, but the map format isn't the simplest thing
(Tiles and actors don't correspond to what they look like in game).
I might make a map maker which is more game-specific (this one was designed so that it
can be multi-use, trying to set some standards.

Here are what characters correspond to what tile/entitiy;
Brown wall = "+"
Brown wall w/ line = "|"
spinning x = ">" for horizontal and "v" for vertical (case sensitive)
spikes = "^"
gates = "#"
dots = "="
Boulders = "O"
Chains = "U"
Ropes = ":"
Finish = "~"
Checkpoint = "!"
Player-Start = "@"
Square-path spinning x = "x"
Moving platform = "-"

The map editor is run like so:
mapeditor MAP_DIR WIDTH HEIGHT
WIDTH and HEIGHT can be any value, there is no limit nor does it make the game run slower.

The controls for the map editor are:
arrow keys to scroll around the map (if the map is bigger than the computer screen)
type to select a character to draw
click/drag the mouse to draw
left-alt saves the map
left-control closes the map editor
tab resets the map
right-control enters a charset, once this is set you can use the mouse-wheel to scroll through chars

To make a map pack just save multiple maps to the same file, it does everything for you.
The tab button is used to make this easier, if you save a map then press tab and make a new one, it will
keep the same directory so you can make map packs without exiting the editor.

Screenshots:
SpoilerTitle screen:

Load Game screen:

In-Game (level 5):

Downloads:
http://pastebin.com/tAN6yUy1 - ninja (game)
http://pastebin.com/VqELbe2Z - mapper (map-editor)
http://pastebin.com/Hh66vLya - ninja_map.nmp (Map pack, must save with .nmp at end)

Update:
Optimized for a MASSIVE performance boost, compatible with Cruor's awesome

GIFS (courtesy of Cruor's awesome):


Hope you like it :D/>
unobtanium #2
Posted 11 July 2013 - 10:52 AM
Allways wanted to be an Etho :P/>
Great work!
Zudo #3
Posted 11 July 2013 - 11:31 AM
Good work!
ElectricOverride #4
Posted 12 July 2013 - 10:21 AM
Great job, works better than I thought it would!
billysback #5
Posted 17 July 2013 - 10:14 AM
Update;
updated a few new features and optimized the render, runs very smoothly now (tested on terrible laptops-)

Coded but not in this update for no real reason:
Shuriken turrets which fire out shurikens at regular intervals
Shuriken ammo, give you shurikens when you walk over them
The ability to throw shurikens
The ability to destroy Shuriken turrets with shurikens…

I'm going to make some puzzles including these before releasing them… eventually.
Also added a gif of the first level…
Encreedem #6
Posted 18 July 2013 - 06:32 AM
I needed some time untill I understood the controls (I didn't realize that you could also move diagonally) but I really like this game. Good work!
UMayBleed #7
Posted 18 July 2013 - 04:03 PM
Holy crap… This is awesome!
jesusthekiller #8
Posted 19 July 2013 - 06:29 AM
Allways wanted to be an Etho :P/>
Great work!

Duh, I always wanted to be Kakashi :ph34r:/>