diff --git a/resources/yaml/body.yaml b/resources/yaml/body.yaml new file mode 100644 index 0000000..d1607a4 --- /dev/null +++ b/resources/yaml/body.yaml @@ -0,0 +1,3 @@ +name: Body +texture: body.png +size: [50, 50] \ No newline at end of file diff --git a/resources/yaml/bullet.yaml b/resources/yaml/bullet.yaml new file mode 100644 index 0000000..94e3055 --- /dev/null +++ b/resources/yaml/bullet.yaml @@ -0,0 +1,7 @@ +name: Bullet +texture: bullet.png +size: [20, 20] + +damage: 10 +radius: 10 +speed: 500 \ No newline at end of file diff --git a/resources/yaml/cover.yaml b/resources/yaml/cover.yaml new file mode 100644 index 0000000..16fa85a --- /dev/null +++ b/resources/yaml/cover.yaml @@ -0,0 +1,2 @@ +name: Cover +texture: cover.png \ No newline at end of file diff --git a/resources/yaml/enemy.yaml b/resources/yaml/enemy.yaml new file mode 100644 index 0000000..a30908b --- /dev/null +++ b/resources/yaml/enemy.yaml @@ -0,0 +1,8 @@ +name: Enemy +texture: enemy.png +size: [50, 50] + +health: 100 +speed: 100.0 +radius: 25.0 +weapon: weapon.yaml \ No newline at end of file diff --git a/resources/yaml/overview.yaml b/resources/yaml/overview.yaml new file mode 100644 index 0000000..831228c --- /dev/null +++ b/resources/yaml/overview.yaml @@ -0,0 +1,36 @@ +# This file lists all existing YAML keys and their corresponding default values, along with a description. +## Sprite keys ## +# name to be displayed, currently unused +name: "" +# filename of texture resource, relative to resources/textures/ +# no default value, has to be a valid texture file name (e.g. player.png) +texture: "" +# the object's size in pixels, in x and y direction, these should be equal for a character +size: [50, 50] +# radius from character center to border, used for collisions, generally half size +radius: 25.0 + +## Character keys ## +# filename of the weapon wielded +weapon: weapon.yaml +# starting/maximum health points +health: 100 +# walking speed +speed: 100.0 +# default weapon equipped +weapon: weapon.yaml + +## Weapon keys ## +# yaml file where the bullet is defined +bullet: bullet.yaml +# milliseconds to wait before firing the next bullet, zero for no limit +interval: 250 +# is the weapon automatic or not? +automatic: false + +## Bullet keys ## +# damage per bullet +damage: 10 +# movement speed of bullets +speed: 500.0 +radius: 10.0 \ No newline at end of file diff --git a/resources/yaml/player.yaml b/resources/yaml/player.yaml new file mode 100644 index 0000000..33cf1a4 --- /dev/null +++ b/resources/yaml/player.yaml @@ -0,0 +1,8 @@ +name: Player +texture: player.png +size: [50, 50] + +health: 100 +speed: 100.0 +radius: 25.0 +weapon: weapon.yaml \ No newline at end of file diff --git a/resources/yaml/tile_floor.yaml b/resources/yaml/tile_floor.yaml new file mode 100644 index 0000000..8507d5c --- /dev/null +++ b/resources/yaml/tile_floor.yaml @@ -0,0 +1,3 @@ +name: Floor Tile +texture: floor.png +size: [100, 100] \ No newline at end of file diff --git a/resources/yaml/tile_wall.yaml b/resources/yaml/tile_wall.yaml new file mode 100644 index 0000000..f35bc73 --- /dev/null +++ b/resources/yaml/tile_wall.yaml @@ -0,0 +1,3 @@ +name: Wall Tile +texture: wall.png +size: [100, 100] \ No newline at end of file diff --git a/resources/yaml/weapon.yaml b/resources/yaml/weapon.yaml new file mode 100644 index 0000000..64f7edb --- /dev/null +++ b/resources/yaml/weapon.yaml @@ -0,0 +1,6 @@ +name: Pistol +texture: pistol.png + +bullet: bullet.yaml +interval: 250 +automatic: true \ No newline at end of file