commit f0657fbfa6f40536ca25e67e3454a49f7599b808 Author: Martin Felis Date: Sat Jun 12 17:48:58 2021 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3caccf9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.import/* +.*.swp diff --git a/DebugLayer.gd b/DebugLayer.gd new file mode 100644 index 0000000..f55cd3f --- /dev/null +++ b/DebugLayer.gd @@ -0,0 +1,39 @@ +extends Node2D + +var NavTarget + +func _ready(): + NavTarget = get_node("NavTarget") + +func draw_nav_target_box(): + var rect = Rect2 (NavTarget.GridCoords * Globals.GRID_SIZE, Vector2(Globals.GRID_SIZE, Globals.GRID_SIZE)) + draw_rect (rect, "#99000044", true) + +func _process(_delta): + update() + +func _draw(): + var offset = -Vector2(Globals.WIDTH, Globals.HEIGHT) * 0.5 + draw_nav_target_box() + + draw_set_transform(offset, 0, Vector2.ONE) + + # outer bounds + draw_line(Vector2(0,0), Vector2(Globals.WIDTH, 0), Globals.GRID_COLOR) + draw_line(Vector2(0,Globals.HEIGHT), Vector2(Globals.WIDTH, Globals.HEIGHT), Globals.GRID_COLOR) + + draw_line(Vector2(0,0), Vector2(0, Globals.HEIGHT), Globals.GRID_COLOR) + draw_line(Vector2(Globals.WIDTH,0), Vector2(Globals.WIDTH, Globals.HEIGHT), Globals.GRID_COLOR) + + # inner lines + var columns = floor (Globals.WIDTH / Globals.GRID_SIZE) + var rows = floor (Globals.HEIGHT / Globals.GRID_SIZE) + + for x in range (columns): + draw_line (Vector2(x * Globals.GRID_SIZE, 0), Vector2(x * Globals.GRID_SIZE, Globals.HEIGHT), Globals.GRID_COLOR) + + for y in range (rows): + draw_line (Vector2(0, y * Globals.GRID_SIZE), Vector2(Globals.WIDTH, y * Globals.GRID_SIZE), Globals.GRID_COLOR) + + draw_line(Vector2(0, Globals.HEIGHT * 0.5), Vector2(Globals.WIDTH, Globals.HEIGHT * 0.5), "#aa0000", 3) + draw_line(Vector2(Globals.WIDTH * 0.5, 0), Vector2(Globals.WIDTH * 0.5, Globals.HEIGHT), "#00aa00", 3) diff --git a/DigSite.tscn b/DigSite.tscn new file mode 100644 index 0000000..64995a7 --- /dev/null +++ b/DigSite.tscn @@ -0,0 +1,16 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://assets/digsite.svg" type="Texture" id=1] +[ext_resource path="res://assets/treasure.svg" type="Texture" id=2] + +[node name="DigSite" type="Node2D"] + +[node name="treasure" type="Sprite" parent="."] +position = Vector2( -2.6727, -19.5998 ) +z_index = 3 +texture = ExtResource( 2 ) + +[node name="digsite" type="Sprite" parent="."] +visible = false +z_index = 3 +texture = ExtResource( 1 ) diff --git a/GameCamera.gd b/GameCamera.gd new file mode 100644 index 0000000..b089a47 --- /dev/null +++ b/GameCamera.gd @@ -0,0 +1,24 @@ +extends Camera2D + +var Widgets + +# Called when the node enters the scene tree for the first time. +func _ready(): + Widgets = get_node("Widgets") + pass # Replace with function body. + +func _process(_delta): + var win_size = OS.get_window_safe_area().size + Widgets.margin_left = -win_size.x * 0.5 + Widgets.margin_top = -win_size.y * 0.5 + pass + +func screenToWorld(pos): + var screen_size = OS.get_window_safe_area().size + print ("pos", pos) + print ("Screen size: ", screen_size) + var camera_coords = pos - screen_size * 0.5 + print ("Camera coords: ", camera_coords) + var world_coords = camera_coords + self.transform.origin + print ("world coords: ", world_coords) + return world_coords diff --git a/GameScene.gd b/GameScene.gd new file mode 100644 index 0000000..5e159d6 --- /dev/null +++ b/GameScene.gd @@ -0,0 +1,59 @@ +extends Node2D + +var Player +var Level +var GameCamera +var DebugLayer +var NavTarget +var DebugLabel +var DigSite +var DiggedSites = {} + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + +# Called when the node enters the scene tree for the first time. +func _ready(): + Player = get_node("Player") + Level = get_node("Level") + GameCamera = get_node("GameCamera") + DebugLayer = get_node("DebugLayer") + NavTarget = get_node("DebugLayer/NavTarget") + DebugLabel = GameCamera.get_node("Widgets/HBoxContainer/DebugLabel") + DigSite = preload("res://DigSite.tscn") + Globals.DebugLabel = DebugLabel + + Player.connect("DigSiteReached", self, "handle_dig_site_reached") + Player.connect("DigStop", self, "handle_dig_stop") + + +func handle_dig_site_reached(dig_grid_coords): + if not DiggedSites.has(dig_grid_coords): + print ("Starting digging at ", dig_grid_coords) + var new_digsite = DigSite.instance() + new_digsite.transform.origin = dig_grid_coords + print ("digsite world:", new_digsite.transform.origin) + Level.add_child(new_digsite) + DiggedSites[dig_grid_coords] = true + Player.start_dig() + + +func handle_dig_stop(): + print ("Stopping digging") + + +func _process(delta): + Globals.ClearDebugLabel() + GameCamera.transform.origin = Player.transform.origin + + +func _input(event): + if event is InputEventMouseButton: + if event.button_index == BUTTON_LEFT and event.pressed: + var event_world_pos = GameCamera.screenToWorld(event.position) + NavTarget.transform.origin = event_world_pos + Player.NavTarget = Globals.WorldToGridCenter(event_world_pos) + DebugLabel.text = str(event_world_pos) + if event.button_index == BUTTON_WHEEL_UP and event.pressed: + print("Wheel up") diff --git a/GameScene.tscn b/GameScene.tscn new file mode 100644 index 0000000..84dae41 --- /dev/null +++ b/GameScene.tscn @@ -0,0 +1,81 @@ +[gd_scene load_steps=11 format=2] + +[ext_resource path="res://assets/island.svg" type="Texture" id=1] +[ext_resource path="res://Player.gd" type="Script" id=2] +[ext_resource path="res://assets/water.svg" type="Texture" id=3] +[ext_resource path="res://assets/pirate.svg" type="Texture" id=4] +[ext_resource path="res://GameScene.gd" type="Script" id=5] +[ext_resource path="res://assets/pirate_with_shovel.svg" type="Texture" id=6] +[ext_resource path="res://DebugLayer.gd" type="Script" id=7] +[ext_resource path="res://GameCamera.gd" type="Script" id=8] +[ext_resource path="res://NavTarget.gd" type="Script" id=9] +[ext_resource path="res://DigSite.tscn" type="PackedScene" id=10] + +[node name="GameScene" type="Node2D"] +script = ExtResource( 5 ) + +[node name="DebugLayer" type="Node2D" parent="."] +z_index = 2 +script = ExtResource( 7 ) + +[node name="NavTarget" type="Node2D" parent="DebugLayer"] +z_index = 5 +script = ExtResource( 9 ) + +[node name="Level" type="Node2D" parent="."] +z_index = -10 + +[node name="Water" type="Sprite" parent="Level"] +scale = Vector2( 1098, 303 ) +texture = ExtResource( 3 ) + +[node name="island" type="Sprite" parent="Level"] +z_index = 1 +texture = ExtResource( 1 ) + +[node name="DigSite" parent="Level" instance=ExtResource( 10 )] +visible = false +z_index = 3 + +[node name="GameCamera" type="Camera2D" parent="."] +current = true +script = ExtResource( 8 ) + +[node name="Widgets" type="Control" parent="GameCamera"] +margin_left = 8.0 +margin_right = 40.0 +margin_bottom = 40.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="HBoxContainer" type="HBoxContainer" parent="GameCamera/Widgets"] +margin_right = 40.0 +margin_bottom = 40.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="DebugLabel" type="Label" parent="GameCamera/Widgets/HBoxContainer"] +self_modulate = Color( 0, 0, 0, 1 ) +margin_top = 4.0 +margin_right = 109.0 +margin_bottom = 35.0 +text = "Blabuiaeuiaeuiae +" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Player" type="Node2D" parent="."] +z_index = -5 +script = ExtResource( 2 ) + +[node name="PirateSprite" type="Sprite" parent="Player"] +texture = ExtResource( 4 ) + +[node name="PirateWithShovelSprite" type="Sprite" parent="Player"] +texture = ExtResource( 6 ) + +[node name="ShovelTargetOffset" type="Node2D" parent="Player"] +position = Vector2( 88, 74 ) diff --git a/Globals.gd b/Globals.gd new file mode 100644 index 0000000..0716f4d --- /dev/null +++ b/Globals.gd @@ -0,0 +1,41 @@ +extends Node + +const WIDTH=1024 +const HEIGHT=1024 +const GRID_SIZE=float(64.0) +const GRID_COLOR="#000000" +const SHOVEL_DURATION=1 + +var DebugLabel = null + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +func ClearDebugLabel(): + if DebugLabel == null: + return + + DebugLabel.text = "" + +func DebugLabelAdd(text): + if DebugLabel == null: + return + + DebugLabel.text = DebugLabel.text + text + "\n" + +func WorldToGridCoord(world_pos): + return Vector2( + floor (world_pos.x / Globals.GRID_SIZE), + floor (world_pos.y / Globals.GRID_SIZE) + ) + +func WorldToGridCenter(world_pos): + return WorldToGridCoord(world_pos) * GRID_SIZE + Vector2(GRID_SIZE, GRID_SIZE) * 0.5 + +func GridCenterToWorldCoord(grid_coord): + return grid_coord * GRID_SIZE + Vector2(GRID_SIZE, GRID_SIZE) * 0.5 + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/Island.tscn b/Island.tscn new file mode 100644 index 0000000..fe875d2 --- /dev/null +++ b/Island.tscn @@ -0,0 +1,26 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://assets/island.svg" type="Texture" id=1] +[ext_resource path="res://Player.gd" type="Script" id=2] +[ext_resource path="res://assets/water.svg" type="Texture" id=3] +[ext_resource path="res://assets/pirate.svg" type="Texture" id=4] + +[node name="Node2D" type="Node2D"] + +[node name="Sprite" type="Sprite" parent="."] +scale = Vector2( 1098, 303 ) +texture = ExtResource( 3 ) + +[node name="island" type="Sprite" parent="."] +position = Vector2( 485, 278 ) +texture = ExtResource( 1 ) + +[node name="Player" type="Node2D" parent="."] +script = ExtResource( 2 ) + +[node name="pirate" type="Sprite" parent="Player"] +position = Vector2( 228, 207 ) +texture = ExtResource( 4 ) + +[node name="Camera2D" type="Camera2D" parent="."] +current = true diff --git a/Level.gd b/Level.gd new file mode 100644 index 0000000..ea52656 --- /dev/null +++ b/Level.gd @@ -0,0 +1,10 @@ +extends Node2D + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/NavTarget.gd b/NavTarget.gd new file mode 100644 index 0000000..ad45a89 --- /dev/null +++ b/NavTarget.gd @@ -0,0 +1,16 @@ +extends Node2D + +var GridCoords = Vector2.ZERO + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +func _process(_delta): + GridCoords = Globals.WorldToGridCoord(self.transform.origin) + + Globals.DebugLabelAdd(str("GridCoords: ", GridCoords)) + Globals.DebugLabelAdd(str("Nav Origin: ", self.transform.origin)) + +func _draw(): + draw_circle (Vector2.ZERO, 5, "#ff0000") diff --git a/Player.gd b/Player.gd new file mode 100644 index 0000000..c033348 --- /dev/null +++ b/Player.gd @@ -0,0 +1,82 @@ +extends Node2D + +enum PlayerState { + IDLE, + WALKING, + SHOVEL +} + +signal DigSiteReached +signal DigStop + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" +var speed = 200 +var isInteracting = false +var ShovelSprite +var shovel_offset = Vector2.ZERO +var NavTarget = Vector2.ZERO +var State = PlayerState.IDLE +var ShovelTimer = 0 + +# Called when the node enters the scene tree for the first time. +func _ready(): + ShovelSprite = get_node("PirateWithShovelSprite") + var ShovelTargetOffset = get_node("ShovelTargetOffset") + shovel_offset = ShovelTargetOffset.transform.origin - self.transform.origin + +func start_dig(): + self.State = PlayerState.SHOVEL + self.ShovelTimer = Globals.SHOVEL_DURATION + +func update_state(delta): + if State == PlayerState.SHOVEL: + ShovelTimer = ShovelTimer - delta + if ShovelTimer < 0: + emit_signal ("DigStop") + ShovelTimer = 0 + State = PlayerState.IDLE + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + update_state(delta) + + Globals.DebugLabelAdd(str("Player.NavTarget: ", NavTarget)) + + var direction = Vector2.ZERO + + if Input.is_action_pressed("walk_left"): + direction.x = direction.x - 1 + + if Input.is_action_pressed("walk_right"): + direction.x = direction.x + 1 + + if Input.is_action_pressed("walk_up"): + direction.y = direction.y - 1 + + if Input.is_action_pressed("walk_down"): + direction.y = direction.y + 1 + + direction = direction.normalized() + + var movement_target = NavTarget - shovel_offset + var vec_to_target = movement_target - self.transform.origin + var dist_to_target = vec_to_target.length() + + Globals.DebugLabelAdd(str("Direction: ", direction)) + + if dist_to_target > speed * delta: + direction = (vec_to_target).normalized() + var velocity = direction * speed + self.transform.origin = self.transform.origin + velocity * delta + self.State = PlayerState.WALKING + else: + direction = Vector2.ZERO + self.transform.origin = movement_target + + if self.State == PlayerState.WALKING: + emit_signal ("DigSiteReached", Globals.WorldToGridCenter(NavTarget)) + + ShovelSprite.visible = State == PlayerState.SHOVEL + diff --git a/assets/digsite.svg b/assets/digsite.svg new file mode 100644 index 0000000..f67cc1b --- /dev/null +++ b/assets/digsite.svg @@ -0,0 +1,102 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/assets/digsite.svg.import b/assets/digsite.svg.import new file mode 100644 index 0000000..ca262c7 --- /dev/null +++ b/assets/digsite.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/digsite.svg-3d544b72e8538c493ff2c7b0ea3cbdfe.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/digsite.svg" +dest_files=[ "res://.import/digsite.svg-3d544b72e8538c493ff2c7b0ea3cbdfe.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/assets/island.svg b/assets/island.svg new file mode 100644 index 0000000..a58a69c --- /dev/null +++ b/assets/island.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/island.svg.import b/assets/island.svg.import new file mode 100644 index 0000000..bb90f00 --- /dev/null +++ b/assets/island.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/island.svg-e09d289820221828f73255b2ef99765b.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/island.svg" +dest_files=[ "res://.import/island.svg-e09d289820221828f73255b2ef99765b.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/assets/pirate.svg b/assets/pirate.svg new file mode 100644 index 0000000..9c800ed --- /dev/null +++ b/assets/pirate.svg @@ -0,0 +1,154 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/pirate.svg.import b/assets/pirate.svg.import new file mode 100644 index 0000000..ff815a6 --- /dev/null +++ b/assets/pirate.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/pirate.svg-b5137b2528ef058c6c14f8ea13b79308.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/pirate.svg" +dest_files=[ "res://.import/pirate.svg-b5137b2528ef058c6c14f8ea13b79308.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/assets/pirate_with_shovel.svg b/assets/pirate_with_shovel.svg new file mode 100644 index 0000000..a65786c --- /dev/null +++ b/assets/pirate_with_shovel.svg @@ -0,0 +1,178 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/pirate_with_shovel.svg.import b/assets/pirate_with_shovel.svg.import new file mode 100644 index 0000000..1cab7b6 --- /dev/null +++ b/assets/pirate_with_shovel.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/pirate_with_shovel.svg-923e9589b9df5155880262d305572474.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/pirate_with_shovel.svg" +dest_files=[ "res://.import/pirate_with_shovel.svg-923e9589b9df5155880262d305572474.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/assets/treasure.svg b/assets/treasure.svg new file mode 100644 index 0000000..585283f --- /dev/null +++ b/assets/treasure.svg @@ -0,0 +1,141 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/treasure.svg.import b/assets/treasure.svg.import new file mode 100644 index 0000000..a0069aa --- /dev/null +++ b/assets/treasure.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/treasure.svg-4bfa43428d947d30919c959f060e57d8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/treasure.svg" +dest_files=[ "res://.import/treasure.svg-4bfa43428d947d30919c959f060e57d8.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/assets/water.svg b/assets/water.svg new file mode 100644 index 0000000..4545059 --- /dev/null +++ b/assets/water.svg @@ -0,0 +1,68 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/water.svg.import b/assets/water.svg.import new file mode 100644 index 0000000..0bcc4bc --- /dev/null +++ b/assets/water.svg.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/water.svg-da03a482c42144629df10051327cffaf.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/water.svg" +dest_files=[ "res://.import/water.svg-da03a482c42144629df10051327cffaf.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/default_env.tres b/default_env.tres new file mode 100644 index 0000000..20207a4 --- /dev/null +++ b/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..c98fbb6 Binary files /dev/null and b/icon.png differ diff --git a/icon.png.import b/icon.png.import new file mode 100644 index 0000000..96cbf46 --- /dev/null +++ b/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..6c562d8 --- /dev/null +++ b/project.godot @@ -0,0 +1,58 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=4 + +[application] + +config/name="LilPirateTreasureHunt" +config/icon="res://icon.png" + +[autoload] + +Globals="*res://Globals.gd" + +[global] + +view=false + +[input] + +walk_left={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":85,"unicode":0,"echo":false,"script":null) + ] +} +walk_right={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null) + ] +} +walk_up={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":86,"unicode":0,"echo":false,"script":null) + ] +} +walk_down={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":73,"unicode":0,"echo":false,"script":null) + ] +} +interact={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null) + ] +} + +[physics] + +common/enable_pause_aware_picking=true + +[rendering] + +environment/default_environment="res://default_env.tres"