-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
93 lines (62 loc) · 2.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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#