Skip to content

binary1230/pirates-vs-ninjas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIRATES VERSUS NINJAS 
An open source 2-d sidesrolling adventure 

(c) 2006-2017 Dominic Cerquetti
Licensed under the GNU GPL, see the file LICENSE for more information

Demo: https://www.youtube.com/watch?v=1K_pMsshcDQ

---------
GAMEPLAY:
---------

Use your right hand to move and your left to do stuff.

Player 1:
LEFT, RIGHT, UP, DOWN with the ARROW keys
JUMP with the C key, Weird stuff with the D key

Player 2: (where available)
LEFT, RIGHT, UP, DOWN with the DELETE, PAGEDOWN, HOME, END keys
JUMP with the E key, Weird stuff with the 3 key

--------------------
DEBUG/CHEAT CONTROLS
--------------------

Press F1 to pause the game

While the game is paused, press F2 to advance one frame at a time

F3 - toggle debug physics display

--------------------
COMMAND LINE OPTIONS
--------------------

-f            try to force fullscreen mode

-w            try to force windowed mode

-m id         Set Default Mode (Level)
              specify a different mode ID to use from default.xml

-r file       record a demo to 'file'
-d file       playback a demo from 'file'

-h            display this help message

--------
EXAMPLES
--------

(these will change as the game progresses)

Start on level 2
ninjas.exe -m 2

Try to start in fullscreen mode
ninjas.exe -f

Record a demo in file 'test.demo'
ninjas.exe -r test.demo

Play back a demo from file 'test.demo'
ninjas.exe -d test.demo

Show the help options
ninjas.exe -h

-------------------
HACKING ON THE GAME
-------------------

Try messing with stuff in data/
The entire game is controlled via a series of XML files.

The game initial reads data/default.xml and includes the other XML files.

You can customize pretty much everything by modifying things in those XML
files.

NOTE: You MUST have the following at the top of EVERY XML FILE:
<?xml version="1.0" encoding="ISO-8859-1"?>

Happy hacking! Have fun!

-----------------------
THIS CODE IS REALLY OLD
-----------------------

I made this back in college in 2006 and resurrected it from the dead 10 years later.  
I am not proud of a lot of things in here :)
I don't recommend anyone write their own game engine in C++ these days, use something like Unity or at least program in Python or C#