This commit is contained in:
markojozsef
2026-09-27 12:30:59 +02:00
parent 372c55caac
commit 57cd65b6c5
7 changed files with 32 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
python -m venv venv
./venv/bin/pip install arcade
./venv/bin/pip install arcade pygame

View File

@@ -1,2 +1,2 @@
python -m venv venv
.\venv\Scripts\pip install arcade
.\venv\Scripts\pip install arcade pygame

BIN
res/mus/fnafsux.wav Normal file

Binary file not shown.

View File

@@ -1,4 +1,7 @@
import arcade
import pygame
pygame.mixer.init()
sprites = {
"cursor" : arcade.load_texture("res/sprite/handcursor.png"),
@@ -7,3 +10,7 @@ sprites = {
"balthasar": arcade.load_spritesheet("res/sprite/balthasar.png"),
"overworld": arcade.load_spritesheet("res/sprite/overworld_sheet.png"),
}
sounds = {
"mus_fnafsux": pygame.mixer.Sound("res/mus/fnafsux.wav")
}

View File

@@ -1,11 +1,13 @@
import gamestates.none
import gamestates.title
import gamestates.overworld
import gamestates.battle
gamestates = {
"none": gamestates.none,
"title": gamestates.title,
"overworld": gamestates.overworld
"overworld": gamestates.overworld,
"battle": gamestates.battle
}
gamestate = "none"

19
src/gamestates/battle.py Normal file
View File

@@ -0,0 +1,19 @@
import arcade
import assets
import controls
import text
text = text.TextRenderer(100, 186, 210)
battle_music = None
def switch(game):
global battle_music
battle_music = assets.sounds["mus_fnafsux"].play(loops=True)
text.reset("ASDF")
text.type_all()
def update(game, dt):
pass
def draw(game):
text.render()

View File

@@ -2,4 +2,4 @@ import gamestate
# Azért létezik ez a "none" gamestate hogy meghívja az elsö gamestate init() funkcióját
def update(game, dt):
gamestate.switch_gamestate(game, "overworld")
gamestate.switch_gamestate(game, "battle")