Skip to content

Commit

Permalink
init for #9
Browse files Browse the repository at this point in the history
  • Loading branch information
MIfeanyi committed Sep 29, 2017
1 parent 6ba162c commit 4851037
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
3 changes: 1 addition & 2 deletions player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ func _fixed_process(delta):
tutorial.display("decend to begin...")
hero.control = LOCKED
elif(other.is_in_group("stairs")):
#LOAD level 2
#LOAD level 2
pass
#TODO: enable player to proceed down stairs.

if Input.is_action_pressed("ui_right"):
hero.pos += Vector2(1,0)
Expand Down
20 changes: 20 additions & 0 deletions tilesets/Manager.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
extends Node

enum STATE {LOADING,LOADED,RESET}

var level =["level1.scn"]
var current_level = 0
var level_scene

func _ready():
# lOAD TUTORIAL LEVEL
# Initialization here
pass
func _next_level(param1):
if(param1!=null):
#load specific level ie. level_sceene = get_node(level[param1]), current_level = param1
pass
else:
#increment ie. current_level
pass
pass
9 changes: 9 additions & 0 deletions tilesets/Manager.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=1]

[ext_resource path="res://tilesets/Manager.gd" type="Script" id=1]

[node name="Manager" type="Node"]

script/script = ExtResource( 1 )


0 comments on commit 4851037

Please sign in to comment.