Added nearly all basic features.
Added bounce physics, collision layers, masks, and names, pins (and the extra bouncy GiantPin), walls, cup physics, a sample level, and a score system with an accompanying auto-updating GUI label.
This commit is contained in:
22
Obstacles/GiantPin.tscn
Normal file
22
Obstacles/GiantPin.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Art/Pinball2.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id=2]
|
||||
bounce = 0.8
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 37.0
|
||||
|
||||
[node name="GiantPin" type="StaticBody2D"]
|
||||
physics_material_override = SubResource( 2 )
|
||||
__meta__ = {
|
||||
"_editor_description_": "The Pinball2.png image used for this scene's $Sprite node is licensed ONLY for personal use. This image needs to be replaced before shipping."
|
||||
}
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
scale = Vector2( 0.1, 0.1 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
18
Obstacles/Pin.tscn
Normal file
18
Obstacles/Pin.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Art/Pinball2.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 7.0
|
||||
|
||||
[node name="Pin" type="StaticBody2D"]
|
||||
__meta__ = {
|
||||
"_editor_description_": "The Pinball2.png image used for this scene's $Sprite node is licensed ONLY for personal use. This image needs to be replaced before shipping."
|
||||
}
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
scale = Vector2( 0.02, 0.02 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
Reference in New Issue
Block a user