Commit graph

156 commits

Author SHA1 Message Date
Felix Ableitner
9cc928e894 Added weapon ammo/reloading, with GUI ammo widget. 2013-06-25 17:44:40 +02:00
Felix Ableitner
fd7173adee Changed Enemies to look into movement direction. 2013-06-21 18:00:38 +02:00
Felix Ableitner
51cf1d9c68 Added enemies back in.
Fixed a bug where Pathfinder areas were created incorrectly, also
added a debug draw function to Pathfinder
2013-06-21 17:40:39 +02:00
Felix Ableitner
94814e0172 Added own SimplexNoise class, cache noise values. 2013-06-21 17:40:26 +02:00
Felix Ableitner
11f3800332 Added YAML size attribute to circle sprites (for correct bullet size). 2013-05-27 17:42:36 +02:00
Felix Ableitner
b47b323180 Added logging on area generation. 2013-05-26 20:57:37 +02:00
Felix Ableitner
b9dc5b90d2 Fixed firing. 2013-05-26 20:44:59 +02:00
Felix Ableitner
0f5d0597fc Changed collision resolving so sliding along walls is possible. 2013-05-26 20:16:36 +02:00
Felix Ableitner
27fd692471 Fixed logic of Interval::getOverlap. 2013-05-26 18:57:20 +02:00
Felix Ableitner
12048ffc8c Areas are now generated on the fly based on player position 2013-05-20 23:01:01 +02:00
Felix Ableitner
07826336c5 Disabled key repeat (not needed). 2013-05-20 13:18:01 +02:00
Felix Ableitner
4b222e9c7a Switched to linux, updated sfml, thor. 2013-05-20 12:07:05 +02:00
Felix Ableitner
6418de7774 Added teams so enemies don't attack each other. 2013-05-08 19:49:04 +02:00
Felix Ableitner
8ea278030d Fixed Corpse not being rendered. 2013-05-08 11:30:02 +02:00
Felix Ableitner
73bb918a01 Added Generator::getEnemySpawns. 2013-05-08 11:20:31 +02:00
Felix Ableitner
aa6df65e97 Changed sprites to always render as rectangle.
Also created Rectangle/Circle subclasses for sprite to handle
collision detection and moved collision detection from World to
CollisionModel (static methods).
2013-05-08 00:42:26 +02:00
Felix Ableitner
22bcd8cf13 Removed unneeded YAML attributes, cleaned up Bullet class. 2013-05-04 23:00:45 +02:00
Felix Ableitner
4067d351e5 Changed Character subclasses to not have config as parameter. 2013-05-02 13:31:26 +02:00
Felix Ableitner
d9a5821e1a Changed containers used by Pathfinder::astarArea. 2013-05-02 13:21:55 +02:00
Felix Ableitner
f7b0d1348b Changed Generator to use std::map and Tile::Type. 2013-05-01 21:32:03 +02:00
Felix Ableitner
079c4b539b Fixed collision detection. 2013-05-01 19:07:47 +02:00
Felix Ableitner
027006c966 Fixed warnings. 2013-05-01 18:04:41 +02:00
Felix Ableitner
a2de030cbc Removed TileManager. 2013-04-29 16:49:16 +02:00
Felix Ableitner
3ee0c71857 Moved raycast from TileManager to World. 2013-04-29 16:10:22 +02:00
Felix Ableitner
0fc271495d Added Generator::getPlayerSpawn to find a valid spawn position. 2013-04-29 00:43:00 +02:00
Felix Ableitner
39cfb89f5e Changed Generator to use enum instead of bool. 2013-04-28 23:18:17 +02:00
Felix Ableitner
5be4a65653 Extracted Pathfinder class from World. 2013-04-28 18:12:30 +02:00
Felix Ableitner
51fdaebd0c Removed unneeded World::remove functions 2013-04-28 14:08:16 +02:00
Felix Ableitner
454156eabe Removed unused function. 2013-04-27 21:31:08 +02:00
Felix Ableitner
a5b01bf3c5 Improved performance by only rendering onscreen sprites. 2013-04-27 21:30:43 +02:00
Felix Ableitner
b52af711a0 Changed tile generation, decreased tile size. 2013-04-27 19:42:44 +02:00
Felix Ableitner
84264a6934 Fixed bug in path finding when no path found. 2013-04-27 19:16:46 +02:00
Felix Ableitner
acafb57fec Removed unused function. 2013-04-27 19:01:20 +02:00
Felix Ableitner
439231727a Moved all YAML keys and defaults to Yaml.h. 2013-04-27 18:54:04 +02:00
Felix Ableitner
ca6943f37d Added automatic area generation so path finding works on random maps. 2013-04-27 14:04:23 +02:00
Felix Ableitner
adfb49b493 Fixed Character path finding to not skip points. 2013-04-27 13:51:51 +02:00
Felix Ableitner
d585a82ada Fixed player path finding, made Character::move() private. 2013-04-25 21:57:37 +02:00
Felix Ableitner
5db687147d Put mouse movement back in. 2013-04-18 12:45:37 +02:00
Felix Ableitner
bbdd298ebe Removed TileManager::removeTile. 2013-04-18 10:07:09 +02:00
Felix Ableitner
ef3553f74e Improved random map generation. 2013-04-18 10:05:17 +02:00
Felix Ableitner
59b6885b15 Moved generator into subfolder. 2013-04-12 20:34:48 +02:00
Felix Ableitner
83b523ca70 Removed collision checks for non-moving sprites. 2013-04-12 20:31:43 +02:00
Felix Ableitner
525e33fbc2 Added random map generation. 2013-04-11 20:44:00 +02:00
Felix Ableitner
2515b23b16 Improved path finding wall avoidance (more distance). 2013-04-05 16:58:37 +02:00
Felix Ableitner
d98609063e Added very basic AI that moves and attacks. 2013-04-05 16:54:51 +02:00
Felix Ableitner
5f7c2a8ee4 Fixed character removal and getCharacters returning self. 2013-04-05 16:23:09 +02:00
Felix Ableitner
c6cd8483e0 Fixed Game class documentation. 2013-04-05 14:19:52 +02:00
Felix Ableitner
48541059a0 Removed unnecessary brackets on if. 2013-04-04 23:13:08 +02:00
Felix Ableitner
273153709c Removed unneeded comments, improved documentation. 2013-04-04 23:00:52 +02:00
Felix Ableitner
a094c01d55 Added raycast. 2013-04-04 22:50:40 +02:00