Hang
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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
19
src/gamestates/battle.py
Normal 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()
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user