Skip to content

Commit

Permalink
Added boilerplate ball script and BrickBuster scene
Browse files Browse the repository at this point in the history
  • Loading branch information
claucambra committed Mar 2, 2021
1 parent 74aa872 commit 60c38fb
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .import/ball.png-9a4ca347acb7532f6ae347744a6b04f7.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="c779e5d79d3b5d4848ba0bf05a2401e7"
dest_md5="12bae607901a67b130ae55390807b75b"

Binary file not shown.
3 changes: 3 additions & 0 deletions .import/icon.png-487276ed1e3a0c39cad0279d744ee560.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
dest_md5="2ded9e7f9060e2b530aab678b135fc5b"

Binary file not shown.
16 changes: 16 additions & 0 deletions Ball.gd
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions BrickBuster.tscn
Original file line number Diff line number Diff line change
@@ -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 )
Binary file added ball.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions ball.png.import
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions default_env.tres
Original file line number Diff line number Diff line change
@@ -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 )
9 changes: 9 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 60c38fb

Please sign in to comment.