Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
adding an obstacle
Browse files Browse the repository at this point in the history
  • Loading branch information
ekokind committed Jun 17, 2021
1 parent 09f6393 commit d243445
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
9 changes: 6 additions & 3 deletions World.tscn
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=5 format=2]

[ext_resource path="res://player.tscn" type="PackedScene" id=1]
[ext_resource path="res://player.gd" type="Script" id=2]
[ext_resource path="res://assets/textures/prof_platy_background.png" type="Texture" id=3]
[ext_resource path="res://rock1.tscn" type="PackedScene" id=4]

[node name="World" type="Node2D"]

[node name="Sprite" type="Sprite" parent="."]
[node name="Background" type="Sprite" parent="."]
position = Vector2( 129.456, 257.004 )
scale = Vector2( 0.0605065, 0.0605065 )
texture = ExtResource( 3 )

[node name="player" parent="." instance=ExtResource( 1 )]
[node name="platy" parent="." instance=ExtResource( 1 )]
position = Vector2( 129.107, 321.288 )
script = ExtResource( 2 )

[node name="rock1" parent="." instance=ExtResource( 4 )]
14 changes: 14 additions & 0 deletions rock1.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=2]

[ext_resource path="res://assets/textures/rock1.png" type="Texture" id=1]

[sub_resource type="CircleShape2D" id=1]
radius = 100.601

[node name="rock1" type="RigidBody2D"]

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

0 comments on commit d243445

Please sign in to comment.