add oldproject folder
BIN
assets/Image/arrow.png
Executable file
|
After Width: | Height: | Size: 106 B |
BIN
assets/Image/baker/attack_animation/baker_animation_archer_attack1.png
Executable file
|
After Width: | Height: | Size: 691 B |
BIN
assets/Image/baker/attack_animation/baker_animation_archer_attack2.png
Executable file
|
After Width: | Height: | Size: 736 B |
BIN
assets/Image/baker/attack_animation/baker_animation_archer_attack3.png
Executable file
|
After Width: | Height: | Size: 750 B |
BIN
assets/Image/baker/attack_animation/baker_animation_dwarf_attack1.png
Executable file
|
After Width: | Height: | Size: 402 B |
BIN
assets/Image/baker/attack_animation/baker_animation_dwarf_attack2.png
Executable file
|
After Width: | Height: | Size: 428 B |
BIN
assets/Image/baker/attack_animation/baker_animation_dwarf_attack3.png
Executable file
|
After Width: | Height: | Size: 448 B |
BIN
assets/Image/baker/attack_animation/baker_animation_magician_attack1.png
Executable file
|
After Width: | Height: | Size: 601 B |
BIN
assets/Image/baker/attack_animation/baker_animation_magician_attack2.png
Executable file
|
After Width: | Height: | Size: 594 B |
BIN
assets/Image/baker/attack_animation/baker_animation_magician_attack3.png
Executable file
|
After Width: | Height: | Size: 638 B |
BIN
assets/Image/baker/attack_animation/baker_animation_warrior_attack1.png
Executable file
|
After Width: | Height: | Size: 573 B |
BIN
assets/Image/baker/attack_animation/baker_animation_warrior_attack2.png
Executable file
|
After Width: | Height: | Size: 536 B |
BIN
assets/Image/baker/attack_animation/baker_animation_warrior_attack3.png
Executable file
|
After Width: | Height: | Size: 558 B |
BIN
assets/Image/baker/normal_animation/baker_archer1.png
Executable file
|
After Width: | Height: | Size: 709 B |
BIN
assets/Image/baker/normal_animation/baker_archer2.png
Executable file
|
After Width: | Height: | Size: 706 B |
BIN
assets/Image/baker/normal_animation/baker_archer3.png
Executable file
|
After Width: | Height: | Size: 707 B |
BIN
assets/Image/baker/normal_animation/baker_dwarf1.png
Executable file
|
After Width: | Height: | Size: 398 B |
BIN
assets/Image/baker/normal_animation/baker_dwarf2.png
Executable file
|
After Width: | Height: | Size: 421 B |
BIN
assets/Image/baker/normal_animation/baker_dwarf3.png
Executable file
|
After Width: | Height: | Size: 426 B |
BIN
assets/Image/baker/normal_animation/baker_magician1.png
Executable file
|
After Width: | Height: | Size: 596 B |
BIN
assets/Image/baker/normal_animation/baker_magician2.png
Executable file
|
After Width: | Height: | Size: 594 B |
BIN
assets/Image/baker/normal_animation/baker_magician3.png
Executable file
|
After Width: | Height: | Size: 572 B |
BIN
assets/Image/baker/normal_animation/baker_warrior1.png
Executable file
|
After Width: | Height: | Size: 556 B |
BIN
assets/Image/baker/normal_animation/baker_warrior2.png
Executable file
|
After Width: | Height: | Size: 556 B |
BIN
assets/Image/baker/normal_animation/baker_warrior3.png
Executable file
|
After Width: | Height: | Size: 560 B |
BIN
assets/Image/bg.png
Executable file
|
After Width: | Height: | Size: 121 KiB |
BIN
assets/Image/bread.png
Executable file
|
After Width: | Height: | Size: 46 KiB |
BIN
assets/Image/crosshair.png
Executable file
|
After Width: | Height: | Size: 168 B |
BIN
assets/Image/cursor-png-1127.png
Executable file
|
After Width: | Height: | Size: 216 B |
BIN
assets/Image/cursor_pointer.png
Executable file
|
After Width: | Height: | Size: 242 B |
BIN
assets/Image/heal.png
Executable file
|
After Width: | Height: | Size: 106 B |
BIN
assets/Image/menu.png
Executable file
|
After Width: | Height: | Size: 592 B |
BIN
assets/Image/menu_closed.png
Executable file
|
After Width: | Height: | Size: 293 B |
BIN
assets/Image/monstercookie/monstercookie1.png
Executable file
|
After Width: | Height: | Size: 900 B |
BIN
assets/Image/monstercookie/monstercookie2.png
Executable file
|
After Width: | Height: | Size: 899 B |
BIN
assets/Image/monstercookie/monstercookie3.png
Executable file
|
After Width: | Height: | Size: 892 B |
BIN
assets/Image/nope_cursor.png
Executable file
|
After Width: | Height: | Size: 166 B |
BIN
assets/Image/pointer.png
Executable file
|
After Width: | Height: | Size: 254 B |
BIN
assets/Image/socle.png
Executable file
|
After Width: | Height: | Size: 701 B |
BIN
assets/Image/weapon/bow.png
Executable file
|
After Width: | Height: | Size: 180 B |
BIN
assets/Image/weapon/crossbow.png
Executable file
|
After Width: | Height: | Size: 294 B |
BIN
assets/Image/weapon/healing_potion.png
Executable file
|
After Width: | Height: | Size: 189 B |
BIN
assets/Image/weapon/knife.png
Executable file
|
After Width: | Height: | Size: 212 B |
BIN
assets/Image/weapon/magic_stick.png
Executable file
|
After Width: | Height: | Size: 195 B |
BIN
assets/Image/weapon/sword.png
Executable file
|
After Width: | Height: | Size: 228 B |
BIN
assets/Music/boculezelta.mp3
Executable file
BIN
assets/Music/musique_2019.mp3
Executable file
BIN
assets/Music/phonk.mp3
Executable file
BIN
assets/Music/phonk/phonk.ogg
Executable file
BIN
assets/Music/phonk/phonk_boucle.ogg
Executable file
BIN
assets/Music/phonk/phonk_fin.mp3
Executable file
12
assets/Rect.py
Executable file
@@ -0,0 +1,12 @@
|
||||
import pygame
|
||||
from game.settings import*
|
||||
|
||||
class Page:
|
||||
def __init__(self, top, left, width, height, rgb = (0, 0, 0)):
|
||||
self.rgb = rgb
|
||||
self.width = width
|
||||
self.height = height
|
||||
self.draw = pygame.draw.rect(SCREEN, self.rgb, pygame.Rect(top, left, self.width, self.height))
|
||||
|
||||
def collision(self, x, y):
|
||||
return self.draw.collidepoint((x, y))
|
||||
11
assets/image.py
Executable file
@@ -0,0 +1,11 @@
|
||||
import pygame
|
||||
import os
|
||||
|
||||
class Image(pygame.sprite.Sprite):
|
||||
def __init__(self, image:str, size):
|
||||
self.image_path = os.path.join(os.path.dirname(f"{os.path.realpath(__file__)}"), f"image/{image}") # entrer les noms d'images ( + extension) du sprite
|
||||
self.load = pygame.transform.scale(pygame.image.load(self.image_path).convert_alpha(), size)
|
||||
|
||||
def get_collision(self, x, y):
|
||||
return self.load.get_rect().collidepoint(x, y)
|
||||
|
||||
15
assets/music.py
Executable file
@@ -0,0 +1,15 @@
|
||||
import pygame
|
||||
import os
|
||||
|
||||
class Music:
|
||||
def __init__(self, music:str, SOUND, replay = False):
|
||||
|
||||
self.music_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),f"Music/{music}") # entrer le nom de la musique ( + extension) de la musique
|
||||
self.load = pygame.mixer.music.load(self.music_path)
|
||||
self.load = pygame.mixer.music.set_volume(SOUND)
|
||||
|
||||
if replay: self.load = pygame.mixer.music.play(-1)
|
||||
else: self.load = pygame.mixer.music.play(1)
|
||||
|
||||
def get_time(self):
|
||||
return pygame.mixer.music.get_pos()
|
||||