new filestructure

This commit is contained in:
Harmony Monroe 2020-12-16 13:09:49 -05:00
parent d4d10865df
commit 083891eef1
107 changed files with 333 additions and 681 deletions

2
.gitignore vendored
View file

@ -13,4 +13,4 @@ data_*/
# custom
*.import
Export/
Build/
[Bb]uild/

View file

@ -1,75 +0,0 @@
{ "frames": {
"box 0.aseprite": {
"frame": { "x": 0, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
},
"box 1.aseprite": {
"frame": { "x": 16, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 40
},
"box 2.aseprite": {
"frame": { "x": 32, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 40
},
"box 3.aseprite": {
"frame": { "x": 48, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 40
},
"box 4.aseprite": {
"frame": { "x": 64, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 40
},
"box 5.aseprite": {
"frame": { "x": 80, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 40
},
"box 6.aseprite": {
"frame": { "x": 96, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
}
},
"meta": {
"app": "http://www.aseprite.org/",
"version": "1.2.21-x64",
"image": "box.png",
"format": "RGBA8888",
"size": { "w": 112, "h": 16 },
"scale": "1",
"frameTags": [
{ "name": "hit", "from": 0, "to": 6, "direction": "forward" }
],
"layers": [
{ "name": "Layer 1", "opacity": 255, "blendMode": "normal" }
],
"slices": [
]
}
}

View file

@ -1,91 +0,0 @@
{ "frames": {
"explode 0.aseprite": {
"frame": { "x": 0, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 1.aseprite": {
"frame": { "x": 32, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 2.aseprite": {
"frame": { "x": 64, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 3.aseprite": {
"frame": { "x": 96, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 4.aseprite": {
"frame": { "x": 128, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 5.aseprite": {
"frame": { "x": 160, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 6.aseprite": {
"frame": { "x": 192, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 7.aseprite": {
"frame": { "x": 224, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
},
"explode 8.aseprite": {
"frame": { "x": 256, "y": 0, "w": 32, "h": 32 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
"sourceSize": { "w": 32, "h": 32 },
"duration": 50
}
},
"meta": {
"app": "http://www.aseprite.org/",
"version": "1.2.24-x64",
"image": "explode.png",
"format": "RGBA8888",
"size": { "w": 288, "h": 32 },
"scale": "1",
"frameTags": [
{ "name": "Loop", "from": 0, "to": 8, "direction": "forward" }
],
"layers": [
{ "name": "Layer 1", "opacity": 255, "blendMode": "normal" }
],
"slices": [
]
}
}

View file

@ -1,59 +0,0 @@
{ "frames": {
"explode2 0.aseprite": {
"frame": { "x": 0, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
},
"explode2 1.aseprite": {
"frame": { "x": 16, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
},
"explode2 2.aseprite": {
"frame": { "x": 32, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
},
"explode2 3.aseprite": {
"frame": { "x": 48, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
},
"explode2 4.aseprite": {
"frame": { "x": 64, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
}
},
"meta": {
"app": "http://www.aseprite.org/",
"version": "1.2.24-x64",
"image": "explode2.png",
"format": "RGBA8888",
"size": { "w": 80, "h": 16 },
"scale": "1",
"frameTags": [
{ "name": "Loop", "from": 0, "to": 4, "direction": "forward" }
],
"layers": [
{ "name": "Layer 1", "opacity": 255, "blendMode": "normal" }
],
"slices": [
]
}
}

View file

@ -1,136 +0,0 @@
{ "frames": {
"player (Layer) 0.aseprite": {
"frame": { "x": 0, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 400
},
"player (Layer) 1.aseprite": {
"frame": { "x": 8, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 200
},
"player (Layer) 2.aseprite": {
"frame": { "x": 16, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 200
},
"player (Layer) 3.aseprite": {
"frame": { "x": 24, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 100
},
"player (Layer) 4.aseprite": {
"frame": { "x": 32, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 200
},
"player (Layer) 5.aseprite": {
"frame": { "x": 40, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 100
},
"player (Layer) 6.aseprite": {
"frame": { "x": 48, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 100
},
"player (Layer) 7.aseprite": {
"frame": { "x": 56, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 400
},
"player (Layer) 8.aseprite": {
"frame": { "x": 64, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 200
},
"player (Layer) 9.aseprite": {
"frame": { "x": 72, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 200
},
"player (Layer) 10.aseprite": {
"frame": { "x": 80, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 100
},
"player (Layer) 11.aseprite": {
"frame": { "x": 88, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 200
},
"player (Layer) 12.aseprite": {
"frame": { "x": 96, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 100
},
"player (Layer) 13.aseprite": {
"frame": { "x": 104, "y": 0, "w": 8, "h": 24 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 8, "h": 24 },
"sourceSize": { "w": 8, "h": 24 },
"duration": 100
}
},
"meta": {
"app": "http://www.aseprite.org/",
"version": "1.2.24-x64",
"image": "player.png",
"format": "RGBA8888",
"size": { "w": 112, "h": 24 },
"scale": "1",
"frameTags": [
{ "name": "idle", "from": 0, "to": 1, "direction": "forward" },
{ "name": "run", "from": 2, "to": 5, "direction": "forward" },
{ "name": "jump", "from": 6, "to": 6, "direction": "forward" },
{ "name": "box_idle", "from": 7, "to": 8, "direction": "forward" },
{ "name": "box_run", "from": 9, "to": 12, "direction": "forward" },
{ "name": "box_jump", "from": 13, "to": 13, "direction": "forward" }
],
"layers": [
{ "name": "Layer", "opacity": 255, "blendMode": "normal" }
],
"slices": [
]
}
}

View file

@ -1,59 +0,0 @@
{ "frames": {
"portal 0.aseprite": {
"frame": { "x": 0, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 300
},
"portal 1.aseprite": {
"frame": { "x": 16, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 200
},
"portal 2.aseprite": {
"frame": { "x": 32, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 100
},
"portal 3.aseprite": {
"frame": { "x": 48, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 200
},
"portal 4.aseprite": {
"frame": { "x": 64, "y": 0, "w": 16, "h": 16 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 16, "h": 16 },
"sourceSize": { "w": 16, "h": 16 },
"duration": 300
}
},
"meta": {
"app": "http://www.aseprite.org/",
"version": "1.2.24-x64",
"image": "portal.png",
"format": "RGBA8888",
"size": { "w": 80, "h": 16 },
"scale": "1",
"frameTags": [
{ "name": "Loop", "from": 0, "to": 4, "direction": "pingpong" }
],
"layers": [
{ "name": "Layer 1", "opacity": 255, "blendMode": "normal" }
],
"slices": [
]
}
}

View file

@ -1,74 +0,0 @@
extends CanvasLayer
var node_timer : Label
var node_death : Label
var pause : Control
var is_paused := false
var pause_list : Label
var cursor := 0
var menu_items := ["resume", "options", "exit"]
func _ready():
node_timer = $Timer/Label
node_death = $Death
pause = $Pause
pause.visible = false
pause_list = $Pause/List
pause_list.text = ""
for i in menu_items:
pause_list.text += i + "\n"
func _process(delta):
if is_paused:
var btny = btn.p("down") - btn.p("up")
if btny:
cursor = clamp(cursor + btny, 0, menu_items.size() - 1)
pause_list.text = ""
for i in menu_items.size():
if cursor == i:
pause_list.text += "> "
pause_list.text += menu_items[i] + "\n"
func _input(event):
if dev.is_open:
return
if Input.is_action_just_pressed("pause"):
toggle_pause()
if Input.is_action_just_pressed("jump"):
toggle_pause()
func toggle_pause():
is_paused = !is_paused
pause.visible = is_paused
get_tree().paused = is_paused
if is_paused:
pass
else:
pass
func set_time(arg):
var _min = str(int(arg / 60))
if _min.length() == 1:
_min = "0" + _min
var _sec = str(int(arg) % 60)
if _sec.length() == 1:
_sec = "0" + _sec
#var _msec = str(fmod(arg, 1))
#_msec = _msec.substr(1, 2)
node_timer.text = _min + ":" + _sec

View file

@ -1,5 +0,0 @@
extends Control
func _ready():
pass

View file

@ -1,6 +1,6 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://Font/m3x6.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://assets/font/m3x6.ttf" type="DynamicFontData" id=1]
[resource]
extra_spacing_top = -5

View file

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 189 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 322 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 627 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 322 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 86 B

After

Width:  |  Height:  |  Size: 86 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 847 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 310 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 234 B

After

Width:  |  Height:  |  Size: 234 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 139 B

After

Width:  |  Height:  |  Size: 139 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 209 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 127 B

Before After
Before After

View file

@ -12,7 +12,7 @@ _global_script_classes=[ {
"base": "Node2D",
"class": "Actor",
"language": "GDScript",
"path": "res://Script/Actor/Actor.gd"
"path": "res://src/actor/Actor.gd"
}, {
"base": "Node",
"class": "AsepriteImportData",
@ -27,12 +27,12 @@ _global_script_classes=[ {
"base": "Actor",
"class": "Box",
"language": "GDScript",
"path": "res://Script/Actor/Box.gd"
"path": "res://src/actor/Box.gd"
}, {
"base": "Actor",
"class": "Door",
"language": "GDScript",
"path": "res://Script/Actor/Door.gd"
"path": "res://src/actor/Door.gd"
}, {
"base": "Node",
"class": "EditorTheme",
@ -42,32 +42,32 @@ _global_script_classes=[ {
"base": "Actor",
"class": "Exit",
"language": "GDScript",
"path": "res://Script/Actor/Exit.gd"
"path": "res://src/actor/Exit.gd"
}, {
"base": "Actor",
"class": "Passthrough",
"language": "GDScript",
"path": "res://Script/Actor/Passthrough.gd"
"path": "res://src/actor/Passthrough.gd"
}, {
"base": "Node2D",
"class": "Stage",
"language": "GDScript",
"path": "res://Script/Stage/Stage.gd"
"path": "res://src/stage/Stage.gd"
}, {
"base": "Actor",
"class": "Switch",
"language": "GDScript",
"path": "res://Script/Actor/Switch.gd"
"path": "res://src/actor/Switch.gd"
}, {
"base": "Actor",
"class": "SwitchBlock",
"language": "GDScript",
"path": "res://Script/Actor/SwitchBlock.gd"
"path": "res://src/actor/SwitchBlock.gd"
}, {
"base": "Actor",
"class": "Treadmill",
"language": "GDScript",
"path": "res://Script/Actor/Treadmill.gd"
"path": "res://src/actor/Treadmill.gd"
} ]
_global_script_class_icons={
"Actor": "",
@ -87,16 +87,16 @@ _global_script_class_icons={
[application]
config/name="gdBox"
run/main_scene="res://Scene/select.tscn"
run/main_scene="res://src/menu/select.tscn"
config/icon="res://icon.png"
[autoload]
btn="*res://Script/AutoLoad/btn.gd"
dev="*res://Scene/AutoLoad/DevConsole.tscn"
Shared="*res://Script/AutoLoad/Shared.gd"
HUD="*res://Scene/AutoLoad/HUD.tscn"
Pause="*res://Scene/AutoLoad/Pause.tscn"
btn="*res://src/autoload/btn.gd"
dev="*res://src/autoload/DevConsole.tscn"
Shared="*res://src/autoload/Shared.gd"
HUD="*res://src/autoload/HUD.tscn"
Pause="*res://src/autoload/Pause.tscn"
[display]

View file

@ -1,8 +1,11 @@
[gd_scene load_steps=11 format=2]
[ext_resource path="res://Map/1-6.tscn" type="PackedScene" id=1]
[ext_resource path="res://DefaultMaterial.material" type="Material" id=2]
[ext_resource path="res://Material.material" type="Material" id=3]
[ext_resource path="res://src/map/1-6.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/3d/DefaultMaterial.material" type="Material" id=2]
[ext_resource path="res://assets/3d/Material.material" type="Material" id=3]

View file

@ -1,9 +1,8 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Script/Actor/Box.gd" type="Script" id=1]
[ext_resource path="res://Image/box.png" type="Texture" id=2]
[ext_resource path="res://Audio/SFX/hit10.wav" type="AudioStream" id=3]
[ext_resource path="res://assets/image/box.png" type="Texture" id=1]
[ext_resource path="res://assets/audio/sfx/hit10.wav" type="AudioStream" id=2]
[ext_resource path="res://src/actor/Box.gd" type="Script" id=3]
[sub_resource type="Animation" id=1]
resource_name = "hit"
@ -39,7 +38,7 @@ tracks/1/keys = {
]]
z_index = 4
z_as_relative = false
script = ExtResource( 1 )
script = ExtResource( 3 )
tag = "box"
is_moving = true
is_solid = true
@ -49,12 +48,12 @@ is_using_tread = true
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 4, 4 )
texture = ExtResource( 2 )
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 96, 0, 16, 16 )
[node name="AudioHit" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
stream = ExtResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/hit = SubResource( 1 )

View file

@ -1,8 +1,11 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Image/door.png" type="Texture" id=1]
[ext_resource path="res://Script/Actor/Door.gd" type="Script" id=2]
[ext_resource path="res://Font/m3x6.tres" type="DynamicFont" id=3]
[ext_resource path="res://assets/image/door.png" type="Texture" id=1]
[ext_resource path="res://src/actor/Door.gd" type="Script" id=2]
[ext_resource path="res://assets/font/m3x6.tres" type="DynamicFont" id=3]
[node name="Door" type="Node2D" groups=[

View file

@ -1,10 +1,13 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Image/portal.png" type="Texture" id=1]
[ext_resource path="res://Script/Actor/Exit.gd" type="Script" id=2]
[ext_resource path="res://Image/pixel.png" type="Texture" id=3]
[ext_resource path="res://Image/star.png" type="Texture" id=4]
[ext_resource path="res://Script/ExitStar.gd" type="Script" id=5]
[ext_resource path="res://assets/image/portal.png" type="Texture" id=1]
[ext_resource path="res://src/actor/Exit.gd" type="Script" id=2]
[ext_resource path="res://assets/image/pixel.png" type="Texture" id=3]
[ext_resource path="res://assets/image/star.png" type="Texture" id=4]
[ext_resource path="res://src/actor/ExitStar.gd" type="Script" id=5]
[sub_resource type="Animation" id=1]
length = 1.6

View file

@ -1,8 +1,11 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Script/Actor/Passthrough.gd" type="Script" id=1]
[ext_resource path="res://crate.png" type="Texture" id=2]
[ext_resource path="res://Audio/SFX/hit0.wav" type="AudioStream" id=3]
[ext_resource path="res://src/actor/Passthrough.gd" type="Script" id=1]
[ext_resource path="res://assets/image/crate.png" type="Texture" id=2]
[ext_resource path="res://assets/audio/sfx/hit0.wav" type="AudioStream" id=3]
[node name="Passthrough" type="Node2D" groups=[

View file

@ -36,9 +36,9 @@ var node_audio_throw : AudioStreamPlayer2D
var node_camera_game : Camera2D
var scene_box = preload("res://Scene/Actor/Box.tscn")
var scene_explosion = preload("res://Scene/Explosion.tscn")
var scene_explosion2 = preload("res://Scene/Explosion2.tscn")
var scene_box = preload("res://src/actor/Box.tscn")
var scene_explosion = preload("res://src/fx/Explosion.tscn")
var scene_explosion2 = preload("res://src/fx/Explosion2.tscn")
# Called when the node enters the scene tree for the first time.
func _ready():

View file

@ -1,11 +1,14 @@
[gd_scene load_steps=13 format=2]
[ext_resource path="res://Script/Actor/Player.gd" type="Script" id=1]
[ext_resource path="res://Audio/SFX/player_jump.wav" type="AudioStream" id=2]
[ext_resource path="res://Image/player.png" type="Texture" id=3]
[ext_resource path="res://Audio/SFX/btn3.wav" type="AudioStream" id=4]
[ext_resource path="res://Audio/SFX/sfx10.wav" type="AudioStream" id=5]
[ext_resource path="res://Audio/SFX/box_drop.wav" type="AudioStream" id=6]
[ext_resource path="res://src/actor/Player.gd" type="Script" id=1]
[ext_resource path="res://assets/audio/sfx/player_jump.wav" type="AudioStream" id=2]
[ext_resource path="res://assets/image/player.png" type="Texture" id=3]
[ext_resource path="res://assets/audio/sfx/btn3.wav" type="AudioStream" id=4]
[ext_resource path="res://assets/audio/sfx/sfx10.wav" type="AudioStream" id=5]
[ext_resource path="res://assets/audio/sfx/box_drop.wav" type="AudioStream" id=6]
[sub_resource type="Animation" id=1]
length = 0.6

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Image/crate_tiles.png" type="Texture" id=1]
[ext_resource path="res://Script/Actor/Actor.gd" type="Script" id=2]
[ext_resource path="res://assets/image/crate_tiles.png" type="Texture" id=1]
[ext_resource path="res://src/actor/Actor.gd" type="Script" id=2]
[node name="Spike" type="Node2D" groups=[

View file

@ -1,8 +1,11 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://crate.png" type="Texture" id=1]
[ext_resource path="res://Script/Actor/Switch.gd" type="Script" id=2]
[ext_resource path="res://Audio/SFX/btn3.wav" type="AudioStream" id=3]
[ext_resource path="res://assets/image/crate.png" type="Texture" id=1]
[ext_resource path="res://src/actor/Switch.gd" type="Script" id=2]
[ext_resource path="res://assets/audio/sfx/btn3.wav" type="AudioStream" id=3]
[node name="Switch" type="Node2D" groups=[

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://crate.png" type="Texture" id=1]
[ext_resource path="res://Script/Actor/SwitchBlock.gd" type="Script" id=2]
[ext_resource path="res://assets/image/crate.png" type="Texture" id=1]
[ext_resource path="res://src/actor/SwitchBlock.gd" type="Script" id=2]
[node name="SwitchBlock" type="Node2D" groups=[

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Scene/Actor/SwitchBlock.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/SwitchBlock.tscn" type="PackedScene" id=1]
[node name="SwitchBlockBlue" instance=ExtResource( 1 )]

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Scene/Actor/Switch.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/Switch.tscn" type="PackedScene" id=1]
[node name="SwitchBlue" instance=ExtResource( 1 )]

View file

@ -1,8 +1,11 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Script/Actor/Treadmill.gd" type="Script" id=1]
[ext_resource path="res://Image/tread.png" type="Texture" id=2]
[ext_resource path="res://Shader/scrollx.shader" type="Shader" id=3]
[ext_resource path="res://src/actor/Treadmill.gd" type="Script" id=1]
[ext_resource path="res://assets/image/tread.png" type="Texture" id=2]
[ext_resource path="res://src/shader/scrollx.shader" type="Shader" id=3]
[sub_resource type="ShaderMaterial" id=2]

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://Script/AutoLoad/DevConsole.gd" type="Script" id=2]
[ext_resource path="res://assets/font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://src/autoload/DevConsole.gd" type="Script" id=2]

32
src/autoload/HUD.gd Normal file
View file

@ -0,0 +1,32 @@
extends CanvasLayer
var node_timer : Label
var node_death : Label
func _ready():
node_timer = $Timer/Label
node_death = $Death
func _process(delta):
pass
func _input(event):
if dev.is_open:
return
func set_time(arg):
var _min = str(int(arg / 60))
if _min.length() == 1:
_min = "0" + _min
var _sec = str(int(arg) % 60)
if _sec.length() == 1:
_sec = "0" + _sec
#var _msec = str(fmod(arg, 1))
#_msec = _msec.substr(1, 2)
node_timer.text = _min + ":" + _sec

View file

@ -1,8 +1,11 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://Image/timer.png" type="Texture" id=2]
[ext_resource path="res://Script/AutoLoad/HUD.gd" type="Script" id=3]
[ext_resource path="res://assets/font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/image/timer.png" type="Texture" id=2]
[ext_resource path="res://src/autoload/HUD.gd" type="Script" id=3]

50
src/autoload/Pause.gd Normal file
View file

@ -0,0 +1,50 @@
extends Control
var is_paused := false
var menu_list : Label
var cursor := 0
var menu_items := ["resume", "options", "exit"]
func _ready():
visible = false
menu_list = $List
menu_list.text = ""
for i in menu_items:
menu_list.text += i + "\n"
func _process(delta):
if is_paused:
var btny = btn.p("down") - btn.p("up")
if btny:
cursor = clamp(cursor + btny, 0, menu_items.size() - 1)
menu_list.text = ""
for i in menu_items.size():
if cursor == i:
menu_list.text += "> "
menu_list.text += menu_items[i] + "\n"
func _input(event):
if dev.is_open:
return
if Input.is_action_just_pressed("pause"):
toggle_pause()
if Input.is_action_just_pressed("jump"):
toggle_pause()
func toggle_pause():
is_paused = !is_paused
visible = is_paused
get_tree().paused = is_paused
if is_paused:
pass
else:
pass

View file

@ -1,10 +1,8 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://Image/9slice.png" type="Texture" id=2]
[ext_resource path="res://Script/AutoLoad/Pause.gd" type="Script" id=3]
[ext_resource path="res://assets/font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/image/9slice.png" type="Texture" id=2]
[ext_resource path="res://src/autoload/Pause.gd" type="Script" id=3]
[node name="Pause" type="Control"]
script = ExtResource( 3 )

View file

@ -1,8 +1,8 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Image/explode.png" type="Texture" id=1]
[ext_resource path="res://Script/Explosion.gd" type="Script" id=2]
[ext_resource path="res://Audio/SFX/Randomize7.wav" type="AudioStream" id=3]
[ext_resource path="res://src/fx/Explosion.gd" type="Script" id=1]
[ext_resource path="res://assets/image/explode.png" type="Texture" id=2]
[ext_resource path="res://assets/audio/sfx/Randomize7.wav" type="AudioStream" id=3]
[sub_resource type="Animation" id=1]
length = 0.45
@ -49,10 +49,10 @@ tracks/2/keys = {
[node name="Explosion" type="Node2D"]
z_index = 11
z_as_relative = false
script = ExtResource( 2 )
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 32, 32 )

View file

@ -1,8 +1,8 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Image/explode2.png" type="Texture" id=1]
[ext_resource path="res://Script/Explosion2.gd" type="Script" id=2]
[ext_resource path="res://Audio/SFX/portal2.wav" type="AudioStream" id=3]
[ext_resource path="res://assets/image/explode2.png" type="Texture" id=1]
[ext_resource path="res://assets/audio/sfx/portal2.wav" type="AudioStream" id=2]
[ext_resource path="res://src/fx/Explosion2.gd" type="Script" id=3]
[sub_resource type="Animation" id=1]
length = 0.5
@ -49,7 +49,7 @@ tracks/2/keys = {
[node name="Explosion2" type="Node2D"]
z_index = 11
z_as_relative = false
script = ExtResource( 2 )
script = ExtResource( 3 )
lerp_speed = 0.2
[node name="Sprite" type="Sprite" parent="."]
@ -62,5 +62,5 @@ autoplay = "Loop"
anims/Loop = SubResource( 1 )
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
stream = ExtResource( 2 )
attenuation = 0.0544094

View file

@ -1,12 +1,15 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]
[node name="Stage" type="Node2D"]
script = ExtResource( 1 )

View file

@ -1,12 +1,15 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]
[node name="Stage" type="Node2D"]
script = ExtResource( 1 )

View file

@ -1,13 +1,16 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Scene/Actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=3]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=7]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=3]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]
[node name="Stage" type="Node2D"]
script = ExtResource( 3 )

View file

@ -1,13 +1,16 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Scene/Actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=5]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=5]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]
[node name="Stage" type="Node2D"]
script = ExtResource( 5 )

View file

@ -1,13 +1,16 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Scene/Actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=5]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=5]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]
[node name="Stage" type="Node2D"]
script = ExtResource( 5 )

View file

@ -1,13 +1,16 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Scene/Actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=7]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=8]
[ext_resource path="res://src/actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=8]
[node name="Stage" type="Node2D"]
script = ExtResource( 8 )

View file

@ -1,13 +1,16 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Scene/Actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=7]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=8]
[ext_resource path="res://src/actor/Box.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=8]
[node name="Stage" type="Node2D"]
script = ExtResource( 8 )

View file

@ -1,12 +1,15 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]

View file

@ -1,17 +1,20 @@
[gd_scene load_steps=13 format=2]
[ext_resource path="res://Scene/Actor/SwitchBlock.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Actor/SwitchBlue.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://Scene/Actor/Switch.tscn" type="PackedScene" id=9]
[ext_resource path="res://Scene/Actor/SwitchBlockBlue.tscn" type="PackedScene" id=10]
[ext_resource path="res://Scene/Actor/Passthrough.tscn" type="PackedScene" id=11]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=12]
[ext_resource path="res://src/actor/SwitchBlock.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/actor/SwitchBlue.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/actor/Switch.tscn" type="PackedScene" id=9]
[ext_resource path="res://src/actor/SwitchBlockBlue.tscn" type="PackedScene" id=10]
[ext_resource path="res://src/actor/Passthrough.tscn" type="PackedScene" id=11]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=12]

View file

@ -1,13 +1,16 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Scene/Actor/Treadmill.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://Script/Stage/Stage.gd" type="Script" id=10]
[ext_resource path="res://src/actor/Treadmill.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=8]
[ext_resource path="res://src/stage/Stage.gd" type="Script" id=10]

View file

@ -1,12 +1,15 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Scene/Stage/SpikeTileMap.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scene/Actor/Exit.tscn" type="PackedScene" id=3]
[ext_resource path="res://Scene/Stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scene/Actor/Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://Scene/Stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://Scene/Stage/GameCamera.tscn" type="PackedScene" id=7]
[ext_resource path="res://Script/Hub.gd" type="Script" id=8]
[ext_resource path="res://src/stage/SpikeTileMap.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/actor/Exit.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/stage/SolidTileMap.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/actor/Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/stage/DetailTileMap.tscn" type="PackedScene" id=6]
[ext_resource path="res://src/stage/GameCamera.tscn" type="PackedScene" id=7]
[ext_resource path="res://src/stage/Hub.gd" type="Script" id=8]
[node name="Hub" type="Node2D"]
script = ExtResource( 8 )

View file

@ -5,6 +5,7 @@ extends Node2D
var label_list : RichTextLabel
var label_info : RichTextLabel
var map_path := "res://src/map/"
var map_list : String
var maps : PoolStringArray = []
var cursor := 0
@ -20,7 +21,7 @@ func _ready():
map_list = ""
var dir = Directory.new()
if dir.open("res://Map") == OK:
if dir.open(map_path) == OK:
dir.list_dir_begin(true, true)
var file_name = dir.get_next()
while file_name:
@ -42,7 +43,7 @@ func _process(delta):
if btn.p("action"):
Shared.map_name = maps[cursor]
get_tree().change_scene("res://Map/" + maps[cursor] + ".tscn")
get_tree().change_scene(map_path + maps[cursor] + ".tscn")
func scroll(arg = 0):
@ -54,7 +55,7 @@ func scroll(arg = 0):
func info():
label_info.text = str(cursor) + " / " + maps[cursor] + "\n"
for i in Shared.stage_data:
if i.has("file") and i.file == "res://Map/" + maps[cursor] + ".tscn":
if i.has("file") and i.file == map_path + maps[cursor] + ".tscn":
for j in i.size():
label_info.text += str(i.keys()[j]) + ": " + str(i.values()[j]) + "\n"
break
@ -63,8 +64,8 @@ func view_map():
for i in viewport.get_children():
i.queue_free()
if ResourceLoader.exists("res://Map/" + maps[cursor] + ".tscn"):
var m = load("res://Map/" + maps[cursor] + ".tscn").instance()
if ResourceLoader.exists(map_path + maps[cursor] + ".tscn"):
var m = load(map_path + maps[cursor] + ".tscn").instance()
viewport.add_child(m)
for i in get_tree().get_nodes_in_group("player"):
i.set_process(false) # dont process player

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://Script/MapSelect.gd" type="Script" id=2]
[ext_resource path="res://assets/font/m3x6.tres" type="DynamicFont" id=1]
[ext_resource path="res://src/menu/MapSelect.gd" type="Script" id=2]
[node name="Node2D" type="Node2D"]
position = Vector2( 1, 1 )

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Image/crate_tiles.png" type="Texture" id=1]
[ext_resource path="res://Image/bricks.png" type="Texture" id=2]
[ext_resource path="res://assets/image/crate_tiles.png" type="Texture" id=1]
[ext_resource path="res://assets/image/bricks.png" type="Texture" id=2]
[sub_resource type="TileSet" id=1]
0/name = "crate_tiles.png 0"

Some files were not shown because too many files have changed in this diff Show more