Commit graph

28 commits

Author SHA1 Message Date
Felix Ableitner
11da25ce69 Minor code changes.
Moved template function definitions out of class definitions.
Moved Instances to util/.
2012-10-13 13:13:19 +02:00
Felix Ableitner
99da2acd01 Allowed Sprite size to be optionally set in code (for Cover). 2012-10-13 12:54:09 +02:00
Felix Ableitner
516633a374 Removed secondary Sprite constructor (now only via Yaml). 2012-10-13 12:48:16 +02:00
Felix Ableitner
9b61304d1e Changed Physical size to be passed via Yaml. 2012-10-13 12:38:05 +02:00
Felix Ableitner
d7013ce63a Added Yaml config to Sprite (for texture file). 2012-10-12 20:59:33 +02:00
Felix Ableitner
c93a6b0c9e Added Yaml config to all Sprite subclasses (except tiles). 2012-10-12 20:50:24 +02:00
Felix Ableitner
28681c7eb3 Allow setting weapon damage via yaml config. 2012-10-12 19:04:34 +02:00
Felix Ableitner
9ff5edbcd5 Added String typedef to std::string for easier changing. 2012-10-11 23:28:54 +02:00
Felix Ableitner
f013b3c000 Moved creation of Body from Enemy to Character. 2012-10-04 19:24:46 +02:00
Felix Ableitner
cdeac690f2 Added Instances class to pass major objects in c'tors. 2012-10-04 19:10:12 +02:00
Felix Ableitner
f4bb9a5dae Made Character a subclass of Sprite. 2012-10-01 11:13:26 +02:00
Felix Ableitner
484bba13c8 Renamed Actor to Character. 2012-10-01 11:02:44 +02:00
Felix Ableitner
8d295df943 Replaced enum with enum class where possible. 2012-10-01 10:01:58 +02:00
Felix Ableitner
197ef6b398 Integrated Pathfinder class into Game/Player. 2012-10-01 09:12:00 +02:00
Felix Ableitner
77d78b3936 Added comments and clarified headers. 2012-09-16 21:32:31 +02:00
Felix Ableitner
3cc8c93845 Removed Collection::Level, using Physical::Category order instead. 2012-09-16 20:33:00 +02:00
Felix Ableitner
17e628b083 Added forward declarations (not for library types). 2012-09-14 20:39:56 +02:00
Felix Ableitner
69eca24bd2 Added Body class to be dropped by Enemy on death. 2012-09-14 20:33:32 +02:00
Felix Ableitner
86e7da2303 Changed Player, Enemy and Bullet to use circle for collision model. 2012-09-13 14:35:04 +02:00
Felix Ableitner
98fb433dbf Added direct movement via WASD keys. 2012-09-13 13:00:50 +02:00
Felix Ableitner
a793cc8933 Merged invalid branch. 2012-09-12 14:21:57 +02:00
Felix Ableitner
c679a0ecaa Bullets are inserted at offset to avoid collisions on insert. 2012-09-11 22:02:46 +02:00
Felix Ableitner
e2a48470e5 Added constant for player size. 2012-09-11 21:12:34 +02:00
Felix Ableitner
b0d2fe7a1f Added health to actor, bullets can damage and kill. 2012-09-11 18:08:07 +02:00
Felix Ableitner
4419a76dfa Added Enemy class. 2012-09-11 16:22:47 +02:00
Felix Ableitner
34f0f95bce Changed Player initial position to be passed in constructor. 2012-09-10 17:54:17 +02:00
Felix Ableitner
45f0b31d57 Initial commit after git corruption, old repo deleted.
Working:
Rendering
Resources
Physics
Player movement with mouse
Shooting with mouse
Tiles
2012-09-10 17:26:37 +02:00
Felix Ableitner
125cd747fa Initial commit after git corruption, old repo deleted. 2012-09-09 22:55:14 +02:00