Debian Codegraph @

README

raw
1
2 mousetrap v1.0
3 --------------
4
5
6 MouseTrap is a simple retro-styled arcade game in which you
7 must guide your knight around the flat screen eating the white
8 fruit - whilst avoiding the red baddies!
9
10 Obviously you can create your own plot if you like, but I've
11 not bothered ;)
12
13
14 Controls
15 --------
16
17 The player may be moved via the arrow keys, and space
18 will toggle the pause function.
19
20 New games can be started by the 'n' key:
21
22
23 Move up - Up Arrow
24 Move down - Down arrow
25 Move left - Left arrow
26 Move right - Right arrow
27 Pause - Space
28 New game - 'n' key
29
30
31 Credits
32 -------
33
34 Several components of this code came from other sources. This
35 is to be expected as it's my first foray into the world of game
36 development with SDL.
37
38 Sound Effects are all from "Komi the space frog":
39 http://komi.sf.net
40
41 Font drawing code was written by Marius Andra:
42 http://cone3d.gamedev.net/
43
44 The knight avatar and grass backdrop came from:
45 http://tonyandpaige.com/tutorials/sdl2.html
46
47
48 Hacking
49 -------
50
51 Most of the code is simple stuff, and you should be able to
52 tweak it if you wish.
53
54 All the source is beneath src/, with the data being in the
55 data/ subdirectory.
56
57 To give a simple introduction to the code the major classes
58 are:
59
60 enemy.{cpp h}
61 Code relating to the movement and setup of the enemies.
62
63 font.{cpp h}
64 Code for drawing text upon the screen - I didn't write this.
65
66 highscore.{cpp h}
67 Code relating to persistence of highscores.
68
69 mousetrap.{cpp h}
70 The main game logic
71
72 soundeffects.{cpp h}
73 Code for the sound effect loading and playing.
74
75
76 Future
77 ------
78
79 For the future I'd like to see some background music, and the
80 ability to do some shooting.
81
82 The only other addition I can see is more powerups - I have the
83 idea of an expanding "circle of death" on eating some other kind
84 of fruit.
85
86 Collision detection needs improving.
87
88
89 Feedback?
90 ---------
91
92 Feel free to mail me, [email protected]
93
94
95 Steve
96 --