diff --git a/.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.md5 b/.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.md5 new file mode 100644 index 0000000..e686723 --- /dev/null +++ b/.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.md5 @@ -0,0 +1,3 @@ +source_md5="c779e5d79d3b5d4848ba0bf05a2401e7" +dest_md5="12bae607901a67b130ae55390807b75b" + diff --git a/.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.stex b/.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.stex new file mode 100644 index 0000000..a883498 Binary files /dev/null and b/.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.stex differ diff --git a/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 b/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 new file mode 100644 index 0000000..7b61c3e --- /dev/null +++ b/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5 @@ -0,0 +1,3 @@ +source_md5="47313fa4c47a9963fddd764e1ec6e4a8" +dest_md5="2ded9e7f9060e2b530aab678b135fc5b" + diff --git a/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 0000000..3ca6461 Binary files /dev/null and b/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/Ball.gd b/Ball.gd new file mode 100644 index 0000000..0a3f791 --- /dev/null +++ b/Ball.gd @@ -0,0 +1,16 @@ +extends Area2D + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + +export var speed = 200 + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/BrickBuster.tscn b/BrickBuster.tscn new file mode 100644 index 0000000..c8a41cf --- /dev/null +++ b/BrickBuster.tscn @@ -0,0 +1,21 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://ball.png" type="Texture" id=1] +[ext_resource path="res://Ball.gd" type="Script" id=2] + +[sub_resource type="CircleShape2D" id=1] + +[node name="BrickBuster" type="Node2D"] + +[node name="Ball" type="Area2D" parent="."] +script = ExtResource( 2 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Sprite" type="Sprite" parent="Ball"] +texture = ExtResource( 1 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Ball"] +scale = Vector2( 0.45, 0.45 ) +shape = SubResource( 1 ) diff --git a/ball.png b/ball.png new file mode 100644 index 0000000..465d352 Binary files /dev/null and b/ball.png differ diff --git a/ball.png.import b/ball.png.import new file mode 100644 index 0000000..a5df6b6 --- /dev/null +++ b/ball.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ball.png" +dest_files=[ "res://.import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/default_env.tres b/default_env.tres index 98f26a7..20207a4 100644 --- a/default_env.tres +++ b/default_env.tres @@ -1,5 +1,7 @@ [gd_resource type="Environment" load_steps=2 format=2] + [sub_resource type="ProceduralSky" id=1] + [resource] background_mode = 2 background_sky = SubResource( 1 ) diff --git a/project.godot b/project.godot index 43cf233..3eecca6 100644 --- a/project.godot +++ b/project.godot @@ -16,8 +16,17 @@ _global_script_class_icons={ [application] config/name="BrickBuster" +run/main_scene="res://BrickBuster.tscn" config/icon="res://icon.png" +[display] + +window/size/width=720 +window/size/height=1280 +window/handheld/orientation="portrait" +window/stretch/mode="2d" +window/stretch/aspect="keep" + [rendering] quality/driver/driver_name="GLES2"