A cooking game made in Godot

Initial commit

gearsco.de ef583c7f

+2
.gitattributes
··· 1 + # Normalize EOL for all files that Git considers text files. 2 + * text=auto eol=lf
+2
.gitignore
··· 1 + # Godot 4+ specific ignores 2 + .godot/
+1
icon.svg
··· 1 + <svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="124" height="124" rx="14" fill="#363d52" stroke="#212532" stroke-width="4"/><g transform="scale(.101) translate(122 122)"><g fill="#fff"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 813 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H447l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c3 34 55 34 58 0v-86c-3-34-55-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></g></svg>
+37
icon.svg.import
··· 1 + [remap] 2 + 3 + importer="texture" 4 + type="CompressedTexture2D" 5 + uid="uid://drkk08h5xutm2" 6 + path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" 7 + metadata={ 8 + "vram_texture": false 9 + } 10 + 11 + [deps] 12 + 13 + source_file="res://icon.svg" 14 + dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] 15 + 16 + [params] 17 + 18 + compress/mode=0 19 + compress/high_quality=false 20 + compress/lossy_quality=0.7 21 + compress/hdr_compression=1 22 + compress/normal_map=0 23 + compress/channel_pack=0 24 + mipmaps/generate=false 25 + mipmaps/limit=-1 26 + roughness/mode=0 27 + roughness/src_normal="" 28 + process/fix_alpha_border=true 29 + process/premult_alpha=false 30 + process/normal_map_invert_y=false 31 + process/hdr_as_srgb=false 32 + process/hdr_clamp_exposure=false 33 + process/size_limit=0 34 + detect_3d/compress_to=1 35 + svg/scale=1.0 36 + editor/scale_with_editor_scale=false 37 + editor/convert_colors_with_editor_theme=false
+8
main.tscn
··· 1 + [gd_scene load_steps=2 format=3 uid="uid://bdhboi1mq3tq7"] 2 + 3 + [ext_resource type="PackedScene" uid="uid://6xfwu8h4qqvr" path="res://player.tscn" id="1_gnn8a"] 4 + 5 + [node name="Node2D" type="Node2D"] 6 + 7 + [node name="CharacterBody2D" parent="." instance=ExtResource("1_gnn8a")] 8 + position = Vector2(422, 137)
+18
player.gd
··· 1 + extends CharacterBody2D 2 + 3 + 4 + const SPEED = 300.0 5 + 6 + func _physics_process(delta): 7 + 8 + # Get the input direction and handle the movement/deceleration. 9 + # As good practice, you should replace UI actions with custom gameplay actions. 10 + var direction = Input.get_vector("move_left", "move_right", "move_up", "move_down") 11 + if direction: 12 + velocity.x = direction.x * SPEED 13 + velocity.y = direction.y * SPEED 14 + else: 15 + velocity.x = move_toward(velocity.x, 0, SPEED) 16 + velocity.y = move_toward(velocity.y, 0, SPEED) 17 + 18 + move_and_slide()
player.png

This is a binary file and will not be displayed.

+34
player.png.import
··· 1 + [remap] 2 + 3 + importer="texture" 4 + type="CompressedTexture2D" 5 + uid="uid://bwfv68ug1uk7n" 6 + path="res://.godot/imported/player.png-2dd0af52de4b213777cd8c9df94c0978.ctex" 7 + metadata={ 8 + "vram_texture": false 9 + } 10 + 11 + [deps] 12 + 13 + source_file="res://player.png" 14 + dest_files=["res://.godot/imported/player.png-2dd0af52de4b213777cd8c9df94c0978.ctex"] 15 + 16 + [params] 17 + 18 + compress/mode=0 19 + compress/high_quality=false 20 + compress/lossy_quality=0.7 21 + compress/hdr_compression=1 22 + compress/normal_map=0 23 + compress/channel_pack=0 24 + mipmaps/generate=false 25 + mipmaps/limit=-1 26 + roughness/mode=0 27 + roughness/src_normal="" 28 + process/fix_alpha_border=true 29 + process/premult_alpha=false 30 + process/normal_map_invert_y=false 31 + process/hdr_as_srgb=false 32 + process/hdr_clamp_exposure=false 33 + process/size_limit=0 34 + detect_3d/compress_to=1
+21
player.tscn
··· 1 + [gd_scene load_steps=4 format=3 uid="uid://6xfwu8h4qqvr"] 2 + 3 + [ext_resource type="Script" path="res://player.gd" id="1_7jx3u"] 4 + [ext_resource type="Texture2D" uid="uid://bwfv68ug1uk7n" path="res://player.png" id="1_p0kvb"] 5 + 6 + [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_1430n"] 7 + radius = 56.0 8 + height = 168.0 9 + 10 + [node name="CharacterBody2D" type="CharacterBody2D"] 11 + position = Vector2(-36, -75) 12 + script = ExtResource("1_7jx3u") 13 + 14 + [node name="CollisionShape2D" type="CollisionShape2D" parent="."] 15 + position = Vector2(39, 78) 16 + shape = SubResource("CapsuleShape2D_1430n") 17 + 18 + [node name="Sprite2D" type="Sprite2D" parent="."] 19 + position = Vector2(44.75, 79.2939) 20 + scale = Vector2(0.476608, 0.476608) 21 + texture = ExtResource("1_p0kvb")
+43
project.godot
··· 1 + ; Engine configuration file. 2 + ; It's best edited using the editor UI and not directly, 3 + ; since the parameters that go here are not all obvious. 4 + ; 5 + ; Format: 6 + ; [section] ; section goes between [] 7 + ; param=value ; assign values to parameters 8 + 9 + config_version=5 10 + 11 + [application] 12 + 13 + config/name="Cooking game" 14 + run/main_scene="res://main.tscn" 15 + config/features=PackedStringArray("4.2", "Mobile") 16 + config/icon="res://icon.svg" 17 + 18 + [input] 19 + 20 + move_left={ 21 + "deadzone": 0.5, 22 + "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null) 23 + ] 24 + } 25 + move_right={ 26 + "deadzone": 0.5, 27 + "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null) 28 + ] 29 + } 30 + move_up={ 31 + "deadzone": 0.5, 32 + "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null) 33 + ] 34 + } 35 + move_down={ 36 + "deadzone": 0.5, 37 + "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null) 38 + ] 39 + } 40 + 41 + [rendering] 42 + 43 + renderer/rendering_method="mobile"