summary refs log tree commit diff stats
path: root/src/entityfactory.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 19:25:23 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 19:25:23 -0400
commit6b1dcc5df51df4a2d8b724187eb1bcdb4fd9df8b (patch)
tree0a884ddd12b4e5b0afcc9c4ecaea5ecc73605b57 /src/entityfactory.cpp
parentd9349f10d6d1972e87aea76d502703fae128a0e5 (diff)
downloadtherapy-6b1dcc5df51df4a2d8b724187eb1bcdb4fd9df8b.tar.gz
therapy-6b1dcc5df51df4a2d8b724187eb1bcdb4fd9df8b.tar.bz2
therapy-6b1dcc5df51df4a2d8b724187eb1bcdb4fd9df8b.zip
Added sound when you hit the ground
Also split up components.cpp into files for each class, fixed a bug concerning falling off the screen when you change maps, and converted collision data into doubles.
Diffstat (limited to 'src/entityfactory.cpp')
-rw-r--r--src/entityfactory.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/entityfactory.cpp b/src/entityfactory.cpp index 47a1463..bad72cf 100644 --- a/src/entityfactory.cpp +++ b/src/entityfactory.cpp
@@ -1,9 +1,12 @@
1#include "entityfactory.h" 1#include "entityfactory.h"
2#include <libxml/parser.h> 2#include <libxml/parser.h>
3#include "components.h"
4#include "muxer.h" 3#include "muxer.h"
5#include <cstdio> 4#include <cstdio>
6#include <map> 5#include <map>
6#include "components/static_image.h"
7#include "components/simple_collider.h"
8#include "components/physics_body.h"
9#include "game.h"
7 10
8struct EntityData { 11struct EntityData {
9 char* sprite; 12 char* sprite;