Initial commit: Godot idle game project setup with basic player movement

This commit is contained in:
MegaProxy 2025-08-06 21:52:35 +00:00
commit ef38f19f04
7 changed files with 130 additions and 0 deletions

10
scenes/Main.tscn Normal file
View file

@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://b4ncr5x8y7kmt"]
[ext_resource type="Script" path="res://scripts/Main.gd" id="1_0xvmr"]
[ext_resource type="PackedScene" uid="uid://dxqwp3y8r4ktm" path="res://scenes/Player.tscn" id="2_1yx8k"]
[node name="Main" type="Node2D"]
script = ExtResource("1_0xvmr")
[node name="Player" parent="." instance=ExtResource("2_1yx8k")]
position = Vector2(640, 360)

18
scenes/Player.tscn Normal file
View file

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://dxqwp3y8r4ktm"]
[ext_resource type="Script" path="res://scripts/Player.gd" id="1_hqxmv"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_1"]
size = Vector2(64, 64)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1"]
size = Vector2(64, 64)
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_hqxmv")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("PlaceholderTexture2D_1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_1")