Hang
This commit is contained in:
1 parent
372c55caac
commit
57cd65b6c5
7 files changed
+32
-4
No files matched your search
@@ -1,2 +1,2 @@
|
||||
python -m venv venv
|
||||
./venv/bin/pip install arcade
|
||||
./venv/bin/pip install arcade pygame
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
python -m venv venv
|
||||
.\venv\Scripts\pip install arcade
|
||||
.\venv\Scripts\pip install arcade pygame
|
||||
Binary file not shown.
@@ -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")
|
||||
}
|
||||
+3
-1
@@ -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"
|
||||
|
||||
|
||||
@@ -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