Skip to content

Commit

Permalink
clone(rpg): clone Epitech private repository
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Jun 20, 2024
1 parent fb4157d commit 730c9c9
Show file tree
Hide file tree
Showing 612 changed files with 18,049 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/paint_au_chocolat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Paint_au_chocolat

on:
push:
branches-ignore:
- 'ga-ignore-**'
pull_request:
branches-ignore:
- 'ga-ignore-**'

env:
EXECUTABLES: "my_rpg"

jobs:
check_coding_style:
name: Check if there are coding style errors in the repository (stop if any).
runs-on: ubuntu-latest
container: ghcr.io/epitech/coding-style-checker:latest

steps:
- name: Check the content of the current repository.
uses: actions/checkout@v4

- name: Check coding-style-report.log and display errors (if any).
run: |
check.sh $(pwd) $(pwd)
SUCCESS=0
while read line; do
filename=$(echo "$line" | awk -F ':' '{print $1}')
line_number=$(echo "$line" | awk -F ':' '{print $2}')
type_error=$(echo "$line" | awk -F ':' '{print $3}')
error=$(echo "$line" | awk -F ':' '{print $4}')
title=$(echo "$type_error coding style error")
echo ::error file=$filename,line=$line_number,title=$title::$error
SUCCESS=1
done < coding-style-reports.log
exit $SUCCESS
check_program_compilation:
name: Check if the program compile (stop if not).
needs: check_coding_style
runs-on: ubuntu-latest
container: epitechcontent/epitest-docker

steps:
- name: Check the content of the current repository.
uses: actions/checkout@v4

- name: Launch make at the root of the repository (have a 2 minutes timeout).
run: make
timeout-minutes: 2

- name: Clean repository with "make clean" at the root of the repository.
run: make clean

- name: Verify that each file specified in the EXECUTABLES environment variable exists and is executable.
run: |
IFS=',' read -ra EXECUTABLES_ARRAY <<< "$EXECUTABLES"
for executable in "${EXECUTABLES_ARRAY[@]}"; do
if [ ! -x "$executable" ]; then
echo "Error: $executable does not exist or is not executable."
exit 1
fi
done
run_tests:
name: Launch "make tests_run" at the root of the repository.
needs: check_program_compilation
runs-on: ubuntu-latest
container: epitechcontent/epitest-docker

steps:
- name: Check the content of the current repository.
uses: actions/checkout@v4
- name: Launch "make test_run"
run: make tests_run
timeout-minutes: 2
Binary file added assets/UI/arrow_select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/UI/dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/UI/hp_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/UI/mana_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/UI/xp_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/clicked_back_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/clicked_main_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/hover_back_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/hover_main_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/none_back_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/none_main_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/options/music/none_music_on_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/options/sound/none_sound_on_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/tutorial/clicked_play_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/tutorial/hover_play_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/button/tutorial/none_play_button.png
Binary file added assets/font/menu_font.otf
Binary file not shown.
Binary file added assets/font/text_font.otf
Binary file not shown.
Binary file added assets/iconGame.png
Binary file added assets/inventory/inventory_background.png
Binary file added assets/inventory/inventory_close_button.png
Binary file added assets/items/food/beef.png
Binary file added assets/items/food/big_seed.png
Binary file added assets/items/food/calamari.png
Binary file added assets/items/food/fish.png
Binary file added assets/items/food/fortune_cookie.png
Binary file added assets/items/food/honey.png
Binary file added assets/items/food/large_seed.png
Binary file added assets/items/food/moisted_sushi.png
Binary file added assets/items/food/noodle.png
Binary file added assets/items/food/nut.png
Binary file added assets/items/food/octopus.png
Binary file added assets/items/food/onigiri.png
Binary file added assets/items/food/seed.png
Binary file added assets/items/food/shrimp.png
Binary file added assets/items/food/sushi.png
Binary file added assets/items/food/tea_leaf.png
Binary file added assets/items/food/yakitori.png
Binary file added assets/items/potions/empty_pot.png
Binary file added assets/items/potions/heal_pot.png
Binary file added assets/items/potions/speed_pot.png
Binary file added assets/items/potions/strength_pot.png
Binary file added assets/items/weapons/axe.png
Binary file added assets/items/weapons/fork.png
Binary file added assets/items/weapons/hammer.png
Binary file added assets/items/weapons/katana.png
Binary file added assets/items/weapons/pickaxe.png
Binary file added assets/items/weapons/stick.png
Binary file added assets/items/weapons/sword.png
Binary file added assets/keybinds/black_hole.png
Binary file added assets/keybinds/keybinds_background.png
Binary file added assets/load/BG/blue_background_menu.png
Binary file added assets/load/planet/loadPlanet.png
Binary file added assets/map/desert.png
438 changes: 438 additions & 0 deletions assets/map/desert.tmx

Large diffs are not rendered by default.

Binary file added assets/map/desert_inside.png
265 changes: 265 additions & 0 deletions assets/map/desert_inside.tmx

Large diffs are not rendered by default.

Binary file added assets/menu/.DS_Store
Binary file not shown.
Binary file added assets/menu/BG/.DS_Store
Binary file not shown.
Binary file added assets/menu/BG/bigPlanetMenu30.png
Binary file added assets/menu/BG/bigPlanetMenu50.png
Binary file added assets/menu/BG/green_background_menu.png
Binary file added assets/menu/BG/parallax-space-stars.png
Binary file added assets/menu/planet/earthPlanetMenu75.png
Binary file added assets/music/battle_music_1.ogg
Binary file not shown.
Binary file added assets/music/battle_music_2.ogg
Binary file not shown.
Binary file added assets/music/battle_music_3.ogg
Binary file not shown.
Binary file added assets/music/game_song.ogg
Binary file not shown.
Binary file added assets/music/mainMenuTheme.ogg
Binary file not shown.
Binary file added assets/npc/Larva.png
Binary file added assets/npc/chat_bubble.png
Binary file added assets/npc/jean_yanis_idle.png
Binary file added assets/npc/knight_gold_idle.png
Binary file added assets/npc/knight_idle.png
Binary file added assets/npc/nathan_idle.png
Binary file added assets/options/BG/red_background_menu.png
Binary file added assets/options/planet/optionsPlanet.png
Binary file added assets/player/player_fighting_pos.png
Binary file added assets/player/player_spritesheet.png
Binary file added assets/sound/battle_sound_1.ogg
Binary file not shown.
Binary file added assets/sound/battle_sound_2.ogg
Binary file not shown.
Binary file added assets/sound/battle_sound_3.ogg
Binary file not shown.
Binary file added assets/sound/click_button.ogg
Binary file not shown.
Binary file added assets/text_box/DialogBox.png
Binary file added assets/text_box/DialogInfo.png
Binary file added assets/text_box/DialogueBoxSimple.png
Binary file added assets/tutorial/tutorial_background.png
Binary file added assets/tutorial/tutorial_template.png
230 changes: 230 additions & 0 deletions configs/items.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
items:
# Food
- 0:
name: Sushi
description: Fresh sushi
sprite: assets/items/food/sushi.png
type: FOOD
heal: 6
max_stack: 8

- 1:
name: Moisted Sushi
description: Expiration date 24/05/2024
sprite: assets/items/food/moisted_sushi.png
type: FOOD
heal: -6
max_stack: 8

- 2:
name: Beef
description: Good rib steak
sprite: assets/items/food/beef.png
type: FOOD
heal: 10
max_stack: 4

- 3:
name: Calamari
description: Fried calamari
sprite: assets/items/food/calamari.png
type: FOOD
heal: 8
max_stack: 4

- 4:
name: Fish
description: Freshly fished fish
sprite: assets/items/food/fish.png
type: FOOD
heal: 4
max_stack: 12

- 5:
name: Fortune Cookie
description: Cookie with fortune
sprite: assets/items/food/fortune_cookie.png
type: FOOD
heal: 12
max_stack: 1

- 6:
name: Honey
description: Sweet honey
sprite: assets/items/food/honey.png
type: FOOD
heal: 6
max_stack: 4

- 7:
name: Noodle
description: Bowl of noodles
sprite: assets/items/food/noodle.png
type: FOOD
heal: 10
max_stack: 1

- 8:
name: Nut
description: haha funi xd
sprite: assets/items/food/nut.png
type: FOOD
heal: 2
max_stack: 16

- 9:
name: Octopus
description: Fresh octopus
sprite: assets/items/food/octopus.png
type: FOOD
heal: 6
max_stack: 8

- 10:
name: Onigiri
description: Rice ball
sprite: assets/items/food/onigiri.png
type: FOOD
heal: 4
max_stack: 16

- 11:
name: Seed
description: Plant seed
sprite: assets/items/food/seed.png
type: FOOD
heal: 2
max_stack: 16

- 12:
name: Big Seed
description: Large seed
sprite: assets/items/food/big_seed.png
type: FOOD
heal: 4
max_stack: 12

- 13:
name: Large Seed
description: Very large seed
sprite: assets/items/food/large_seed.png
type: FOOD
heal: 6
max_stack: 8

- 14:
name: Shrimp
description: Shrimp (with shell)
sprite: assets/items/food/shrimp.png
type: FOOD
heal: 2
max_stack: 16

- 15:
name: Tea Leaf
description: Fresh tea leaves
sprite: assets/items/food/tea_leaf.png
type: FOOD
heal: 1
max_stack: 16

- 16:
name: Yakitori
description: Grilled chicken
sprite: assets/items/food/yakitori.png
type: FOOD
heal: 12
max_stack: 4

# Weapons
- 17:
name: Axe
description: Sharp and powerful
sprite: assets/items/weapons/axe.png
type: WEAPON
damage: 15
damage_critical: 22
durability: 160

- 18:
name: Sword
description: A sharp blade
sprite: assets/items/weapons/sword.png
type: WEAPON
damage: 22
damage_critical: 34
durability: 200

- 19:
name: Fork
description: For eating... or fighting
sprite: assets/items/weapons/fork.png
type: WEAPON
damage: 10
damage_critical: 14
durability: 20

- 20:
name: Hammer
description: Heavy and strong
sprite: assets/items/weapons/hammer.png
type: WEAPON
damage: 14
damage_critical: 36
durability: 120

- 21:
name: Katana
description: Swift and deadly
sprite: assets/items/weapons/katana.png
type: WEAPON
damage: 36
damage_critical: 54
durability: 30

- 22:
name: Pickaxe
description: Good for mining and fighting
sprite: assets/items/weapons/pickaxe.png
type: WEAPON
damage: 8
damage_critical: 18
durability: 240

- 23:
name: Stick
description: Simple but effective
sprite: assets/items/weapons/stick.png
type: WEAPON
damage: 1
damage_critical: 3
durability: 8

# Potions
- 24:
name: Empty potion
description: There's nothing in here
sprite: assets/items/potions/empty_pot.png
type: POTION
action:

- 25:
name: Heal potion
description: Gives you full health instantly
sprite: assets/items/potions/heal_pot.png
type: POTION
action: hp max

- 26:
name: Speed potion
description: Makes you walk faster for 30 seconds
sprite: assets/items/potions/speed_pot.png
type: POTION
action: effect speed 30

- 27:
name: Strength potion
description: Doubles your damages for 30 seconds
sprite: assets/items/potions/strength_pot.png
type: POTION
action: effect strength 30
Loading

0 comments on commit 730c9c9

Please sign in to comment.