aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/sfx/select.wavbin0 -> 8684 bytes
-rw-r--r--assets/sprites/player-Sheet.pngbin0 -> 728 bytes
-rw-r--r--assets/sprites/player.asepritebin0 -> 1833 bytes
-rw-r--r--assets/sprites/player.pngbin0 -> 315 bytes
-rw-r--r--assets/sprites/player_animation.jfxproject985
-rw-r--r--assets/sprites/player_back.asepritebin0 -> 764 bytes
-rw-r--r--assets/sprites/render.pngbin0 -> 1131 bytes
-rw-r--r--config.wren3
-rw-r--r--game_state.wren1
-rw-r--r--levels/menu.wren25
-rw-r--r--main.wren4
-rw-r--r--screens/credit_screen.wren13
-rw-r--r--screens/menu_screen.wren105
13 files changed, 1107 insertions, 29 deletions
diff --git a/assets/sfx/select.wav b/assets/sfx/select.wav
new file mode 100644
index 0000000..6a841ee
--- /dev/null
+++ b/assets/sfx/select.wav
Binary files differ
diff --git a/assets/sprites/player-Sheet.png b/assets/sprites/player-Sheet.png
new file mode 100644
index 0000000..46ae120
--- /dev/null
+++ b/assets/sprites/player-Sheet.png
Binary files differ
diff --git a/assets/sprites/player.aseprite b/assets/sprites/player.aseprite
new file mode 100644
index 0000000..034ba6f
--- /dev/null
+++ b/assets/sprites/player.aseprite
Binary files differ
diff --git a/assets/sprites/player.png b/assets/sprites/player.png
new file mode 100644
index 0000000..4bbc6d8
--- /dev/null
+++ b/assets/sprites/player.png
Binary files differ
diff --git a/assets/sprites/player_animation.jfxproject b/assets/sprites/player_animation.jfxproject
new file mode 100644
index 0000000..fc287ef
--- /dev/null
+++ b/assets/sprites/player_animation.jfxproject
@@ -0,0 +1,985 @@
+3
+LAYER[0]
+13
+0
+0
+0.20
+0
+0
+0.01
+1
+1
+0
+0
+1
+0
+0
+0
+0.10
+0
+0
+1
+0
+1
+0.45
+0
+0
+16744576
+16744576
+0
+0
+0
+10
+1
+60
+0
+0
+0
+0
+0
+0
+
+
+
+
+0
+1
+4
+0
+0
+5
+10
+5
+10
+2
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+1
+1
+1
+0
+0
+0
+0.50
+0
+0
+0
+1
+0
+16777215
+62207
+2366702
+986014
+3552822
+0
+1
+0
+120
+240
+0
+0
+1
+1
+1
+0
+--
+512
+512
+0
+0
+-1
+-1
+1
+-1
+-1
+-1
+0
+LAYER[2]
+13
+0
+0
+0.10
+0.50
+0.50
+0.10
+1
+1
+0
+0
+1
+0
+0
+0
+1
+0
+0
+1
+0
+0
+1
+0
+0
+16744576
+16744576
+0
+0
+10
+40
+1
+60
+0
+0
+0
+0
+0
+0
+
+
+
+
+0
+1
+4
+0
+0
+5
+10
+5
+10
+1
+4
+0
+0
+0
+360
+4
+0
+270
+270
+0
+0
+1
+10
+0
+0
+0.20
+10
+0.80
+0
+function update()##end
+linear
+InOut
+PingPong
+0
+1
+1
+0
+1
+0
+0
+1
+1
+1
+0
+0
+0
+0.50
+0
+0
+0
+1
+0
+16777215
+62207
+2366702
+986014
+3552822
+0
+1
+0
+120
+240
+0
+0
+1
+1
+1
+0
+--
+512
+512
+0
+0
+-1
+-1
+1
+-1
+-1
+-1
+0
+LAYER[3]
+13
+0
+0
+0.10
+0.50
+0.50
+0.10
+1
+1
+0
+0
+1
+0
+0
+0
+1
+0
+0
+1
+0
+0
+1
+0
+0
+16744576
+16744576
+0
+0
+10
+40
+1
+60
+0
+0
+0
+0
+0
+0
+
+
+
+
+0
+1
+4
+0
+0
+5
+10
+5
+10
+1
+4
+0
+0
+0
+360
+4
+0
+270
+270
+0
+0
+1
+10
+0
+0
+0.20
+10
+0.80
+0
+function update()##end
+linear
+InOut
+PingPong
+0
+1
+1
+0
+1
+0
+0
+1
+1
+1
+0
+0
+0
+0.50
+0
+0
+0
+1
+0
+16777215
+62207
+2366702
+986014
+3552822
+0
+1
+0
+120
+240
+0
+0
+1
+1
+1
+0
+--
+512
+512
+0
+0
+-1
+-1
+1
+-1
+-1
+-1
+0
+LAYER[4]
+13
+0
+0
+0.10
+0.50
+0.50
+0.10
+1
+1
+0
+0
+1
+0
+0
+0
+1
+0
+0
+1
+0
+0
+1
+0
+0
+16744576
+16744576
+0
+0
+10
+40
+1
+60
+0
+0
+0
+0
+0
+0
+
+
+
+
+0
+1
+4
+0
+0
+5
+10
+5
+10
+1
+4
+0
+0
+0
+360
+4
+0
+270
+270
+0
+0
+1
+10
+0
+0
+0.20
+10
+0.80
+0
+function update()##end
+linear
+InOut
+PingPong
+0
+1
+1
+0
+1
+0
+0
+1
+1
+1
+0
+0
+0
+0.50
+0
+0
+0
+1
+0
+16777215
+62207
+2366702
+986014
+3552822
+0
+1
+0
+120
+240
+0
+0
+1
+1
+1
+0
+--
+512
+512
+0
+0
+-1
+-1
+1
+-1
+-1
+-1
+0
+LAYER[5]
+13
+0
+0
+0.10
+0.50
+0.50
+0.10
+1
+1
+0
+0
+1
+0
+0
+0
+1
+0
+0
+1
+0
+0
+1
+0
+0
+16744576
+16744576
+0
+0
+10
+40
+1
+60
+0
+0
+0
+0
+0
+0
+
+
+
+
+0
+1
+4
+0
+0
+5
+10
+5
+10
+1
+4
+0
+0
+0
+360
+4
+0
+270
+270
+0
+0
+1
+10
+0
+0
+0.20
+10
+0.80
+0
+function update()##end
+linear
+InOut
+PingPong
+0
+1
+1
+0
+1
+0
+0
+1
+1
+1
+0
+0
+0
+0.50
+0
+0
+0
+1
+0
+16777215
+62207
+2366702
+986014
+3552822
+0
+1
+0
+120
+240
+0
+0
+1
+1
+1
+0
+--
+512
+512
+0
+0
+-1
+-1
+1
+-1
+-1
+-1
+0
+LAYER[6]
+13
+0
+0
+0.10
+0.50
+0.50
+0.10
+1
+1
+0
+0
+1
+0
+0
+0
+1
+0
+0
+1
+0
+0
+1
+0
+0
+16744576
+16744576
+0
+0
+10
+40
+1
+60
+0
+0
+0
+0
+0
+0
+
+
+
+
+0
+1
+4
+0
+0
+5
+10
+5
+10
+1
+4
+0
+0
+0
+360
+4
+0
+270
+270
+0
+0
+1
+10
+0
+0
+0.20
+10
+0.80
+0
+function update()##end
+linear
+InOut
+PingPong
+0
+1
+1
+0
+1
+0
+0
+1
+1
+1
+0
+0
+0
+0.50
+0
+0
+0
+1
+0
+16777215
+62207
+2366702
+986014
+3552822
+0
+1
+0
+120
+240
+0
+0
+1
+1
+1
+0
+--
+512
+512
+0
+0
+-1
+-1
+1
+-1
+-1
+-1
+0
+LAYER[7]
+13
+0
+0
+0.10
+0.50
+0.50
+0.10
+1
+1
+0
+0
+1
+0
+0
+0
+1
+0
+0
+1
+0
+0
+1
+0
+0
+16744576
+16744576
+0
+0
+10
+40
+1
+60
+0
+0
+0
+0
+0
+0
+
+
+
+
+0
+1
+4
+0
+0
+5
+10
+5
+10
+1
+4
+0
+0
+0
+360
+4
+0
+270
+270
+0
+0
+1
+10
+0
+0
+0.20
+10
+0.80
+0
+function update()##end
+linear
+InOut
+PingPong
+0
+1
+1
+0
+1
+0
+0
+1
+1
+1
+0
+0
+0
+0.50
+0
+0
+0
+1
+0
+16777215
+62207
+2366702
+986014
+3552822
+0
+1
+0
+120
+240
+0
+0
+1
+1
+1
+0
+--
+512
+512
+0
+0
+-1
+-1
+1
+-1
+-1
+-1
+0
diff --git a/assets/sprites/player_back.aseprite b/assets/sprites/player_back.aseprite
new file mode 100644
index 0000000..d5f57eb
--- /dev/null
+++ b/assets/sprites/player_back.aseprite
Binary files differ
diff --git a/assets/sprites/render.png b/assets/sprites/render.png
new file mode 100644
index 0000000..5e6363a
--- /dev/null
+++ b/assets/sprites/render.png
Binary files differ
diff --git a/config.wren b/config.wren
index eb085c1..64278c7 100644
--- a/config.wren
+++ b/config.wren
@@ -38,7 +38,6 @@ class Config {
}
setupFonts() {
- Font.load("font_medium", "assets/fonts/lunchds.ttf", 20)
- Font.load("font_small", "assets/fonts/lunchds.ttf", 16)
+ Font.load("font_title", "assets/fonts/lunchds.ttf", 20)
}
} \ No newline at end of file
diff --git a/game_state.wren b/game_state.wren
index 4794fb7..9390261 100644
--- a/game_state.wren
+++ b/game_state.wren
@@ -5,6 +5,7 @@ class GameState {
construct new() {
AudioEngine.load("menu_music","assets/musics/04 All of Us - Menu.ogg")
AudioEngine.load("level1_bg","assets/musics/01 A Night Of Dizzy Spells.ogg")
+ AudioEngine.load("select","assets/sfx/select.wav")
_fullScreen = false
}
diff --git a/levels/menu.wren b/levels/menu.wren
deleted file mode 100644
index dcc24e9..0000000
--- a/levels/menu.wren
+++ /dev/null
@@ -1,25 +0,0 @@
-import "graphics" for Canvas, Color
-import "./controls" for Controls
-import "config" for Config
-import "levels/level1" for Level1
-import "audio" for AudioEngine
-import "font" for Font
-
-class Menu {
- construct new(gameState) {
- __gameState = gameState
- var channel = AudioEngine.play("menu_music")
- channel.volume = 0.5
- Canvas.font = "font_medium"
- }
-
- update() {
- if(Controls.isKeyDown(Config.KeyboardConstants["SELECT"])) {
- __gameState.switch(Level1)
- }
- }
-
- draw(dt) {
- Canvas.print("REBIRTH",Config.W/2 - 40,Config.H/2 - 20, Color.white)
- }
-} \ No newline at end of file
diff --git a/main.wren b/main.wren
index 9e94aa3..d166950 100644
--- a/main.wren
+++ b/main.wren
@@ -6,7 +6,7 @@ import "math" for Math
import "config" for Config
import "./controls" for Controls
import "./game_state" for GameState
-import "./levels/menu" for Menu
+import "./screens/menu_screen" for MenuScreen
class Main {
construct new() {
@@ -15,7 +15,7 @@ class Main {
init() {
Config.new()
__gameState = GameState.new()
- __gameState.switch(Menu)
+ __gameState.switch(MenuScreen)
}
update() {
diff --git a/screens/credit_screen.wren b/screens/credit_screen.wren
new file mode 100644
index 0000000..3b54d2b
--- /dev/null
+++ b/screens/credit_screen.wren
@@ -0,0 +1,13 @@
+class CreditScreen {
+ construct new() {
+
+ }
+
+ update() {
+
+ }
+
+ draw(dt) {
+
+ }
+} \ No newline at end of file
diff --git a/screens/menu_screen.wren b/screens/menu_screen.wren
new file mode 100644
index 0000000..e065765
--- /dev/null
+++ b/screens/menu_screen.wren
@@ -0,0 +1,105 @@
+import "graphics" for Canvas, Color
+import "./controls" for Controls
+import "config" for Config
+import "levels/level1" for Level1
+import "screens/credit_screen" for CreditScreen
+import "audio" for AudioEngine
+import "font" for Font
+import "math" for Math
+
+class MenuScreen {
+ construct new(gameState) {
+ __gameState = gameState
+ // var channel = AudioEngine.play("menu_music")
+ // channel.volume = 0.5
+ _selectedMenuIdx = 0
+ _prevMenuIdx = 0
+ _fadeFrame = 255
+ _menuItems = [
+ {
+ "name": "Start",
+ "selected": true,
+ "class": Level1,
+ "font": Font.default,
+ "padding": 20
+ },
+ {
+ "name": "Credits",
+ "selected": false,
+ "class": CreditScreen,
+ "font": Font.default,
+ "padding": 40
+ }
+ ]
+
+ }
+
+ update() {
+ if(Controls.isKeyDown(Config.KeyboardConstants["SELECT"])) {
+ __gameState.switch(Level1)
+ }
+
+ if(Controls.justPressed(Config.KeyboardConstants["UP"])) {
+ _prevMenuIdx = _selectedMenuIdx
+ if((_selectedMenuIdx-1) < 0) {
+ _selectedMenuIdx = (_menuItems.count - 1)
+ } else {
+ _selectedMenuIdx = _selectedMenuIdx - 1
+ }
+ AudioEngine.play("select")
+ }
+
+ if(Controls.justPressed(Config.KeyboardConstants["DOWN"])) {
+ _prevMenuIdx = _selectedMenuIdx
+ if((_selectedMenuIdx+1) > (_menuItems.count - 1)) {
+ _selectedMenuIdx = 0
+ } else {
+ _selectedMenuIdx = _selectedMenuIdx + 1
+ }
+ AudioEngine.play("select")
+ }
+
+ if(_prevMenuIdx!=_selectedMenuIdx) {
+ _menuItems[_prevMenuIdx]["selected"] = false
+ _menuItems[_selectedMenuIdx]["selected"] = true
+ }
+
+ // _fadeFrame = (_fadeFrame+3) > 255 ? 0 : _fadeFrame + 3
+
+ _fadeFrame = Math.floor(127 + (127 * Math.cos(System.clock)))
+ System.print(_fadeFrame)
+ }
+
+ draw(dt) {
+
+ drawTitle()
+
+ for(menuItem in _menuItems) {
+ drawMenu(menuItem)
+ }
+
+ drawBlinker()
+ }
+
+ drawTitle() {
+ Canvas.print("REBIRTH",Config.W/2 - 40,Config.H/2 - 20, Color.white, "font_title")
+ }
+
+ drawMenu(menuItem) {
+ var x = Config.W/2 - ((menuItem["name"].count * 8)/2)
+ var y = Config.H/2 + menuItem["padding"]
+ Canvas.print(menuItem["name"],x ,y , menuItem["selected"] ? Color.red : Color.white, menuItem["font"])
+ if(menuItem["selected"]) {
+ Canvas.print(">",x - 10 ,y , Color.red, menuItem["font"])
+ }
+ // Canvas.print("Credits", Config.W/2 - 28, Config.H/2 + 40, Color.white, Font.default)
+ }
+
+ drawBlinker() {
+ Canvas.print("Press X to start",Config.W/2 - 64,Config.H/2 + 100, Color.new(255, 255, 255, _fadeFrame), Font.default)
+ }
+}
+
+/*
+(Character length * 8 ) / 2
+*/ \ No newline at end of file