mirror of
https://github.com/zoriya/Twac.git
synced 2026-06-02 02:25:11 +00:00
Adding a camera that follow the player
This commit is contained in:
+1
-1
Submodule lib/gamacon updated: c534d3c190...7903b83a26
@@ -16,6 +16,7 @@
|
||||
<Rect height="auto" width="auto" top="0" left="0" />
|
||||
</renderer>
|
||||
<parallax_component speed="60" />
|
||||
<fixed_to_cam />
|
||||
</gc_entity>
|
||||
<gc_entity>
|
||||
<transform_component>
|
||||
@@ -26,6 +27,7 @@
|
||||
<Rect height="auto" width="auto" top="0" left="0" />
|
||||
</renderer>
|
||||
<parallax_component speed="90" />
|
||||
<fixed_to_cam />
|
||||
</gc_entity>
|
||||
<gc_entity>
|
||||
<transform_component>
|
||||
@@ -36,6 +38,7 @@
|
||||
<Rect height="auto" width="auto" top="0" left="0" />
|
||||
</renderer>
|
||||
<parallax_component speed="100" />
|
||||
<fixed_to_cam />
|
||||
</gc_entity>
|
||||
<gc_entity>
|
||||
<transform_component>
|
||||
@@ -46,6 +49,7 @@
|
||||
<Rect height="auto" width="auto" top="0" left="0" />
|
||||
</renderer>
|
||||
<parallax_component speed="120" />
|
||||
<fixed_to_cam />
|
||||
</gc_entity>
|
||||
|
||||
<gc_entity>
|
||||
|
||||
@@ -15,5 +15,6 @@
|
||||
<jump_action acceleration="17000" counterforce="6000" step_count="7"/>
|
||||
<collision_component layer="11000000" />
|
||||
<friction_component value=".5" />
|
||||
<camerafollow_component />
|
||||
</gc_entity>
|
||||
</gc_entities>
|
||||
@@ -34,7 +34,7 @@ void gravity_destroy(void *system)
|
||||
}
|
||||
|
||||
const gc_system gravity_system = {
|
||||
name: "GravitySystem",
|
||||
name: "gravity_system",
|
||||
component_name: "gravity_component",
|
||||
size: sizeof(gc_system),
|
||||
ctr: NULL,
|
||||
|
||||
@@ -49,7 +49,7 @@ static void destroy(void *system)
|
||||
}
|
||||
|
||||
const gc_system jump_system = {
|
||||
name: "JumpSystem",
|
||||
name: "jump_system",
|
||||
component_name: "jump_action",
|
||||
size: sizeof(gc_system),
|
||||
ctr: NULL,
|
||||
|
||||
@@ -38,7 +38,7 @@ void walk_destroy(void *system)
|
||||
}
|
||||
|
||||
const gc_system walk_system = {
|
||||
name: "WalkSystem",
|
||||
name: "walk_system",
|
||||
component_name: "walk_action",
|
||||
size: sizeof(gc_system),
|
||||
ctr: NULL,
|
||||
|
||||
Reference in New Issue
Block a user