Remaking the data system

This commit is contained in:
AnonymusRaccoon
2020-01-10 14:01:40 +01:00
parent 487c224ad1
commit 4b8e120739
6 changed files with 9 additions and 8 deletions

View File

@@ -1,13 +1,13 @@
<gc_scene>
<textures>
<data>
<sprite src="assets/sprites/bck_layer1.png" />
<sprite src="assets/sprites/bck_layer2.png" />
<sprite src="assets/sprites/bck_layer3.png" />
<sprite src="assets/sprites/bck_layer4.png" />
<sprite src="assets/sprites/grass.png" />
<sprite src="assets/sprites/player_sheet.png" />
</textures>
<music src="assets/musics/music.ogg"/>
<music src="assets/musics/music.ogg"/>
</data>
<gc_entities>
<gc_entity>
<transform_component>
@@ -53,6 +53,8 @@
<parallax_component speed="0.2" />
<fixed_to_cam />
</gc_entity>
<gc_entity>
<transform_component>

View File

@@ -17,6 +17,8 @@
#include "systems/gravity_system.h"
#include "systems/walk_system.h"
#include "systems/jump_system.h"
#include <SFML/System.h>
#include <SFML/Window.h>
int register_customcmps(gc_engine *engine)
{

View File

@@ -8,7 +8,6 @@
#include "entity.h"
#include "system.h"
#include "texture.h"
#include "vector2.h"
#include "utility.h"
#include "components/movable_component.h"

View File

@@ -7,7 +7,6 @@
#include "entity.h"
#include "system.h"
#include "texture.h"
#include "vector2.h"
#include "component.h"
#include "components/collision_component.h"

View File

@@ -7,15 +7,14 @@
#include "entity.h"
#include "system.h"
#include "texture.h"
#include "vector2.h"
#include "sprite.h"
#include "component.h"
#include "components/movable_component.h"
#include "components/controllable_component.h"
#include "components/walk_action.h"
#include "components/renderer.h"
#include "utility.h"
#include "sprite.h"
#include <stddef.h>
void walk_update_entity(gc_engine *engine __attribute__((unused)), \