-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work-in-progress main menu and pause menu; bats can die now
- Loading branch information
Showing
19 changed files
with
89 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
extends VBoxContainer | ||
|
||
func _ready(): | ||
pass | ||
|
||
func _on_StartButton_pressed(): | ||
get_tree().change_scene("res://test_scene.scn") | ||
|
||
func _on_QuitButton_pressed(): | ||
get_tree().quit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
extends VBoxContainer | ||
|
||
func _ready(): | ||
pass | ||
|
||
func _draw(): | ||
draw_rect(Rect2(-2, -2, get_size().x+4, get_size().y+4), Color(255, 255, 255)) | ||
draw_rect(Rect2(-1, -1, get_size().x+2, get_size().y+2), Color(0, 0, 0)) | ||
|
||
func toggle(): | ||
if(get_index() != get_parent().get_child_count() - 1): | ||
get_parent().move_child(self, get_parent().get_child_count() - 1) | ||
show() | ||
var w = get_viewport().get_rect().size.x | ||
var h = get_viewport().get_rect().size.y | ||
var player = get_tree().get_nodes_in_group("players")[0] | ||
#var playerCam = get_parent().find_node("Player").find_node("Camera2D") | ||
var playerCam = player.find_node("Camera2D") | ||
var x = playerCam.get_camera_pos().x - (w / 4) | ||
var y = playerCam.get_camera_pos().y - (h / 4) | ||
set_pos(Vector2(x, y + 40)) | ||
|
||
func _on_YesButton_pressed(): | ||
get_tree().set_pause(false) | ||
get_tree().change_scene("res://Scenes/main_menu.scn") | ||
hide() | ||
|
||
func _on_NoButton_pressed(): | ||
get_tree().set_pause(false) | ||
hide() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
[application] | ||
|
||
name="Godot-Jam-Procedural" | ||
main_scene="res://test_scene.scn" | ||
main_scene="res://Scenes/main_menu.scn" | ||
icon="res://icon.png" | ||
|
||
[display] | ||
|
||
width=800 | ||
height=600 | ||
|
||
[input] | ||
|
||
UI_PAUSE=[key(Escape)] | ||
|
||
[render] | ||
|
||
default_clear_color=#ff000000 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<resource_file type="TileSet" subresource_count="2" version="2.0" version_name="Godot Engine v2.0.stable.official"> | ||
<ext_resource path="res://Sprites/dirtTile.png" type="Texture" index="0"></ext_resource> | ||
<main_resource> | ||
<string name="0/name"> "Tile1" </string> | ||
<resource name="0/texture" external="0"> </resource> | ||
<vector2 name="0/tex_offset"> 0, 0 </vector2> | ||
<resource name="0/material"></resource> <rect2 name="0/region"> 0, 0, 0, 0 </rect2> | ||
<vector2 name="0/occluder_offset"> 4, 4 </vector2> | ||
<resource name="0/occluder"></resource> <vector2 name="0/navigation_offset"> 4, 4 </vector2> | ||
<resource name="0/navigation"></resource> <vector2 name="0/shape_offset"> 0, 0 </vector2> | ||
<array name="0/shapes" len="0" shared="false"> | ||
</array> | ||
|
||
</main_resource> | ||
</resource_file> |