mirror of
https://github.com/zoriya/Twac.git
synced 2025-12-06 06:36:09 +00:00
Remaking the data system
This commit is contained in:
Submodule lib/gamacon updated: b6de809b04...ded85794e0
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#include "entity.h"
|
||||
#include "system.h"
|
||||
#include "texture.h"
|
||||
#include "vector2.h"
|
||||
#include "utility.h"
|
||||
#include "components/movable_component.h"
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "entity.h"
|
||||
#include "system.h"
|
||||
#include "texture.h"
|
||||
#include "vector2.h"
|
||||
#include "component.h"
|
||||
#include "components/collision_component.h"
|
||||
|
||||
@@ -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)), \
|
||||
|
||||
Reference in New Issue
Block a user