Adding a default map

This commit is contained in:
AnonymusRaccoon
2020-01-02 19:27:20 +01:00
parent 018b5ecc00
commit 786855bbb4
4 changed files with 7 additions and 4 deletions
+2
View File
@@ -15,6 +15,8 @@ int usage(void)
int main(int argc, char **argv)
{
if (argc == 1)
return (start_game("prefabs/game.gcprefab"));
if (argc != 2 || !my_strcmp(argv[1], "-h"))
return (usage());
return (start_game(argv[1]));
+3 -3
View File
@@ -56,7 +56,7 @@
<renderer src="assets/sprites/grass.png">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<movable_component />
<collision_component />
</gc_entity>
<gc_entity>
<transform_component>
@@ -66,7 +66,7 @@
<renderer src="assets/sprites/grass.png">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<movable_component />
<collision_component />
</gc_entity>
<gc_entity>
<transform_component>
@@ -76,7 +76,7 @@
<renderer src="assets/sprites/grass.png">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<movable_component />
<collision_component />
</gc_entity>
</gc_entities>
</gc_scene>
+1
View File
@@ -14,5 +14,6 @@
<walk_action acceleration="3000" max_acceleration="10000" />
<jump_action acceleration="600" />
<friction_component value=".7" />
<collision_component />
</gc_entity>
</gc_entities>