File: README

package info (click to toggle)
mousetrap 1.0c-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,168 kB
  • ctags: 109
  • sloc: sh: 2,353; cpp: 899; makefile: 52
file content (96 lines) | stat: -rw-r--r-- 2,012 bytes parent folder | download | duplicates (2)
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
94
95
96

mousetrap v1.0
--------------


  MouseTrap is a simple retro-styled arcade game in which you
 must guide your knight around the flat screen eating the white
 fruit - whilst avoiding the red baddies!

  Obviously you can create your own plot if you like, but I've
 not bothered ;)


Controls
--------

  The player may be moved via the arrow keys, and space
 will toggle the pause function.

  New games can be started by the 'n' key:


        Move up    - Up Arrow
        Move down  - Down arrow
        Move left  - Left arrow
        Move right - Right arrow
        Pause      - Space
        New game   - 'n' key


Credits
-------

  Several components of this code came from other sources.  This
 is to be expected as it's my first foray into the world of game
 development with SDL.

	Sound Effects are all from "Komi the space frog":
		http://komi.sf.net

	Font drawing code was written by Marius Andra:
		http://cone3d.gamedev.net/

        The knight avatar and grass backdrop came from:
		http://tonyandpaige.com/tutorials/sdl2.html


Hacking
-------

  Most of the code is simple stuff, and you should be able to
 tweak it if you wish.

  All the source is beneath src/, with the data being in the
 data/ subdirectory.

  To give a simple introduction to the code the major classes
 are:

	enemy.{cpp h}
	  Code relating to the movement and setup of the enemies.

	font.{cpp h}
	  Code for drawing text upon the screen - I didn't write this.

	highscore.{cpp h}
	  Code relating to persistence of highscores.

	mousetrap.{cpp h}
	  The main game logic

	soundeffects.{cpp h}
	  Code for the sound effect loading and playing.


Future
------

  For the future I'd like to see some background music, and the
 ability to do some shooting.

  The only other addition I can see is more powerups - I have the
 idea of an expanding "circle of death" on eating some other kind
 of fruit.

  Collision detection needs improving.


Feedback?
---------

  Feel free to mail me, steve@steve.org.uk


Steve
--