mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-12 05:22:23 +02:00
Added a simple basic template with a player control script and basic collision detection. Ideal coding style guidelines enforced.
25 lines
585 B
Plaintext
25 lines
585 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Player/Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://icon.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 6.0
|
|
height = 5.0
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
FRICTION = 270
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
scale = Vector2( 0.5, 0.5 )
|
|
texture = ExtResource( 2 )
|
|
offset = Vector2( 0, -18 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
rotation = 1.5708
|
|
shape = SubResource( 1 )
|