cooking in progress, will work on "story" after lunch
This commit is contained in:
parent
d9f91fa650
commit
2cfb73b94d
13 changed files with 165 additions and 22 deletions
28
game_logic.gd
Normal file
28
game_logic.gd
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
extends Control
|
||||
|
||||
enum Gamemode{
|
||||
Story,
|
||||
Endless
|
||||
}
|
||||
|
||||
#mode settings
|
||||
@export var max_lives = 3
|
||||
@export var lives = 3
|
||||
@export var platformer_game : PackedScene
|
||||
@export var games : Array[PackedScene]
|
||||
@export_group("Node References")
|
||||
@export var main_camera : Camera2D
|
||||
@export var outer_channels : Array[Channel]
|
||||
@export var main_channel : Channel
|
||||
var gamemode : Gamemode = Gamemode.Story #will be set by manager/menu option
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
if(gamemode == Gamemode.Story):
|
||||
main_camera.zoom = Vector2(3.1,3.1)
|
||||
main_channel.start_channel(platformer_game)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue