Hang
This commit is contained in:
2
mkenv.sh
2
mkenv.sh
@@ -1,2 +1,2 @@
|
|||||||
python -m venv venv
|
python -m venv venv
|
||||||
./venv/bin/pip install arcade
|
./venv/bin/pip install arcade pygame
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
python -m venv venv
|
python -m venv venv
|
||||||
.\venv\Scripts\pip install arcade
|
.\venv\Scripts\pip install arcade pygame
|
||||||
|
|||||||
BIN
res/mus/fnafsux.wav
Normal file
BIN
res/mus/fnafsux.wav
Normal file
Binary file not shown.
@@ -1,4 +1,7 @@
|
|||||||
import arcade
|
import arcade
|
||||||
|
import pygame
|
||||||
|
|
||||||
|
pygame.mixer.init()
|
||||||
|
|
||||||
sprites = {
|
sprites = {
|
||||||
"cursor" : arcade.load_texture("res/sprite/handcursor.png"),
|
"cursor" : arcade.load_texture("res/sprite/handcursor.png"),
|
||||||
@@ -7,3 +10,7 @@ sprites = {
|
|||||||
"balthasar": arcade.load_spritesheet("res/sprite/balthasar.png"),
|
"balthasar": arcade.load_spritesheet("res/sprite/balthasar.png"),
|
||||||
"overworld": arcade.load_spritesheet("res/sprite/overworld_sheet.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.none
|
||||||
import gamestates.title
|
import gamestates.title
|
||||||
import gamestates.overworld
|
import gamestates.overworld
|
||||||
|
import gamestates.battle
|
||||||
|
|
||||||
gamestates = {
|
gamestates = {
|
||||||
"none": gamestates.none,
|
"none": gamestates.none,
|
||||||
"title": gamestates.title,
|
"title": gamestates.title,
|
||||||
"overworld": gamestates.overworld
|
"overworld": gamestates.overworld,
|
||||||
|
"battle": gamestates.battle
|
||||||
}
|
}
|
||||||
gamestate = "none"
|
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
|
# Azért létezik ez a "none" gamestate hogy meghívja az elsö gamestate init() funkcióját
|
||||||
def update(game, dt):
|
def update(game, dt):
|
||||||
gamestate.switch_gamestate(game, "overworld")
|
gamestate.switch_gamestate(game, "battle")
|
||||||
|
|||||||
Reference in New Issue
Block a user