From eee6e99a8d38058a7f9c7d0869f329fc90cea97d Mon Sep 17 00:00:00 2001 From: rexim Date: Sat, 23 Mar 2024 09:57:37 +0700 Subject: Create assets folder --- assets/colors.txt | 16 ++++++++++++++++ assets/map.png | Bin 0 -> 1344 bytes assets/sounds.txt | 4 ++++ colors.txt | 16 ---------------- game.adb | 11 ++++++----- map.png | Bin 1344 -> 0 bytes 6 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 assets/colors.txt create mode 100644 assets/map.png create mode 100644 assets/sounds.txt delete mode 100644 colors.txt delete mode 100644 map.png diff --git a/assets/colors.txt b/assets/colors.txt new file mode 100644 index 0000000..420d2a8 --- /dev/null +++ b/assets/colors.txt @@ -0,0 +1,16 @@ +COLOR_BACKGROUND 131 117 134 +COLOR_FLOOR 133 72 54 +COLOR_WALL 0 0 0 +COLOR_BARRICADE 0 178 255 +COLOR_PLAYER 232 2 255 +COLOR_DOORKEY 128 182 228 +COLOR_BOMB 0 186 255 +COLOR_LABEL 0 0 255 +COLOR_GUARD 60 186 255 +COLOR_MOTHER 242 175 236 +COLOR_GNOME 125 194 255 +COLOR_CHECKPOINT 213 0 255 +COLOR_EXPLOSION 224 143 253 +COLOR_HEALTHBAR 0 173 255 +COLOR_EYES 0 0 0 +COLOR_FATHER 0 0 255 diff --git a/assets/map.png b/assets/map.png new file mode 100644 index 0000000..cadfde4 Binary files /dev/null and b/assets/map.png differ diff --git a/assets/sounds.txt b/assets/sounds.txt new file mode 100644 index 0000000..2a1f30a --- /dev/null +++ b/assets/sounds.txt @@ -0,0 +1,4 @@ +- https://opengameart.org/content/footsteps-on-different-surfaces +- https://opengameart.org/content/footsteps-0 +- https://opengameart.org/content/metal-footsteps-on-concrete +- https://opengameart.org/content/walking-sound-effect diff --git a/colors.txt b/colors.txt deleted file mode 100644 index 420d2a8..0000000 --- a/colors.txt +++ /dev/null @@ -1,16 +0,0 @@ -COLOR_BACKGROUND 131 117 134 -COLOR_FLOOR 133 72 54 -COLOR_WALL 0 0 0 -COLOR_BARRICADE 0 178 255 -COLOR_PLAYER 232 2 255 -COLOR_DOORKEY 128 182 228 -COLOR_BOMB 0 186 255 -COLOR_LABEL 0 0 255 -COLOR_GUARD 60 186 255 -COLOR_MOTHER 242 175 236 -COLOR_GNOME 125 194 255 -COLOR_CHECKPOINT 213 0 255 -COLOR_EXPLOSION 224 143 253 -COLOR_HEALTHBAR 0 173 255 -COLOR_EYES 0 0 0 -COLOR_FATHER 0 0 255 diff --git a/game.adb b/game.adb index 796a013..6649923 100644 --- a/game.adb +++ b/game.adb @@ -982,7 +982,7 @@ procedure Game is Wake_Up_Radius: constant IVector2 := (3, 3); begin if Inside_Of_Rect(Eeper.Position, Eeper.Size, Game.Player.Position) then - Load_Game_From_Image("map.png", Game, True); + Load_Game_From_Image("assets/map.png", Game, True); elsif Inside_Of_Rect(Eeper.Position - Wake_Up_Radius, Eeper.Size + Wake_Up_Radius*2, Game.Player.Position) then Eeper.Eyes_Target := Game.Player.Position; Eeper.Eyes := Eyes_Open; @@ -1347,8 +1347,8 @@ begin Set_Exit_Key(KEY_NULL); Random_Integer.Reset(Gen); - Load_Colors("colors.txt"); - Load_Game_From_Image("map.png", Game, True); + Load_Colors("assets/colors.txt"); + Load_Game_From_Image("assets/map.png", Game, True); Game_Save_Checkpoint(Game); while not Window_Should_Close loop @@ -1375,13 +1375,13 @@ begin if DEVELOPMENT then if Is_Key_Pressed(KEY_R) then - Load_Game_From_Image("map.png", Game, False); + Load_Game_From_Image("assets/map.png", Game, False); end if; if Is_Key_Pressed(KEY_O) then Palette_Editor := not Palette_Editor; if not Palette_Editor then - Save_Colors("colors.txt"); + Save_Colors("assets/colors.txt"); end if; end if; @@ -1563,3 +1563,4 @@ end; -- TODO: Indicate how many bomb slots we have in HUD -- TODO: Eyes of Father changing as the Player gets closer: -- - Happy (very important to indicate that he's not hostile) +-- TODO: Transition Player's eyes linearly in Euclidean space instead of angularly. diff --git a/map.png b/map.png deleted file mode 100644 index cadfde4..0000000 Binary files a/map.png and /dev/null differ -- cgit v1.2.3