Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wiebow committed Jul 23, 2022
1 parent fda6f70 commit 467de16
Show file tree
Hide file tree
Showing 78 changed files with 1,215 additions and 30 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
21 changes: 21 additions & 0 deletions addons/godot-git-plugin/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2016-2022 The Godot Engine community

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1,062 changes: 1,062 additions & 0 deletions addons/godot-git-plugin/THIRDPARTY.md

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions addons/godot-git-plugin/git_api.gdnlib
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[general]

singleton=true
load_once=true
symbol_prefix="godot_"
reloadable=false

[entry]

OSX.64="res://addons/godot-git-plugin/osx/release/libgitapi.dylib"
Windows.64="res://addons/godot-git-plugin/win64/release/libgitapi.dll"
X11.64="res://addons/godot-git-plugin/x11/release/libgitapi.so"

[dependencies]

OSX.64=[ ]
Windows.64=[ ]
X11.64=[ ]
9 changes: 9 additions & 0 deletions addons/godot-git-plugin/git_api.gdns
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[gd_resource type="NativeScript" load_steps=2 format=2]

[ext_resource path="res://addons/godot-git-plugin/git_api.gdnlib" type="GDNativeLibrary" id=1]

[resource]
resource_name = "GitAPI"
class_name = "GitAPI"
library = ExtResource( 1 )
script_class_name = "GitAPI"
Binary file not shown.
7 changes: 7 additions & 0 deletions addons/godot-git-plugin/plugin.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[plugin]

name="Godot Git Plugin"
description="This plugin lets you interact with Git without leaving the Godot editor. More information can be found at https://github.com/godotengine/godot-git-plugin/wiki"
author="ChronicallySerious"
version="v1.2.3"
script="git_api.gdns"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added addons/godot-git-plugin/x11/release/libgitapi.so
Binary file not shown.
Empty file modified audio/bullet.wav.import
100644 → 100755
Empty file.
Empty file modified audio/explosion.wav.import
100644 → 100755
Empty file.
Empty file modified audio/life.wav
100644 → 100755
Empty file.
Empty file modified audio/life.wav.import
100644 → 100755
Empty file.
Empty file modified audio/low_boom.wav
100644 → 100755
Empty file.
Empty file modified audio/low_boom.wav.import
100644 → 100755
Empty file.
Empty file modified audio/saucer_loop.wav
100644 → 100755
Empty file.
Empty file modified audio/saucer_loop.wav.import
100644 → 100755
Empty file.
Empty file modified audio/stageup.wav.import
100644 → 100755
Empty file.
Empty file modified audio/warp.wav.import
100644 → 100755
Empty file.
Empty file modified autoload/Global.gd
100644 → 100755
Empty file.
12 changes: 6 additions & 6 deletions autoload/Switcher.gd
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var current_scene = null
# Called when the node enters the scene tree for the first time.
func _ready():
root = get_tree().get_root()

# the last item in the tree is the current scene
# so get path to that node.
current_scene = root.get_child(root.get_child_count() - 1)
Expand All @@ -22,18 +22,18 @@ func goto_scene(path):


func _deferred_goto_scene(path):

# get rid of current scene
current_scene.free()

# load the new scene
var scene = ResourceLoader.load(path)

# instance the new scene
current_scene = scene.instance()

# add it to the scene root
root.add_child(current_scene)
# optional
get_tree().set_current_scene(current_scene)

Empty file modified explosion/ExplosionLarge.gd
100644 → 100755
Empty file.
Empty file modified explosion/ExplosionLarge.tscn
100644 → 100755
Empty file.
Empty file modified explosion/particle.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified explosion/particle.png.import
100644 → 100755
Empty file.
18 changes: 18 additions & 0 deletions gui/Fader.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
extends CanvasLayer


signal fade_finished

# Declare member variables here. Examples:
# var a = 2
# var b = "text"

func start_fadein() -> void:
$FadeRect/FadeAnimation.play("fade_in")

func start_fadeout() -> void:
$FadeRect/FadeAnimation.play("fade_out")


func _on_FadeAnimation_animation_finished(anim_name):
emit_signal("fade_finished", anim_name)
Empty file modified gui/Fader.tscn
100644 → 100755
Empty file.
Empty file modified gui/LabeledCounter.tscn
100644 → 100755
Empty file.
Empty file modified gui/PlayGUI.gd
100644 → 100755
Empty file.
Empty file modified gui/PlayGUI.tscn
100644 → 100755
Empty file.
Empty file modified gui/warp.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified gui/warp.png.import
100644 → 100755
Empty file.
Empty file modified icon.png.import
100644 → 100755
Empty file.
Empty file modified main/Main.gd
100644 → 100755
Empty file.
Empty file modified objects/BaseObject.gd
100644 → 100755
Empty file.
Empty file modified objects/BaseObject.tscn
100644 → 100755
Empty file.
Empty file modified objects/ScoreFlash.gd
100644 → 100755
Empty file.
Empty file modified objects/ScoreFlash.tscn
100644 → 100755
Empty file.
Empty file modified objects/asteroid/Asteroid.gd
100644 → 100755
Empty file.
Empty file modified objects/asteroid/Asteroid.tscn
100644 → 100755
Empty file.
Empty file modified objects/asteroid/rocks_big.png.import
100644 → 100755
Empty file.
Empty file modified objects/asteroid/rocks_med.png.import
100644 → 100755
Empty file.
Empty file modified objects/asteroid/rocks_sml.png.import
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions objects/bullets/PlayerBullet.gd
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func _physics_process(_delta) -> void:
# update life and remove self when life has run out.
life -= 1 # * delta
if life == 0:
queue_free()
queue_free()


func initialize( new_position: Vector2, new_degrees: float ) -> void:
Expand All @@ -29,7 +29,7 @@ func initialize( new_position: Vector2, new_degrees: float ) -> void:

func _on_PlayerBullet_area_entered(area):
if area.is_in_group("asteroids"):
queue_free()
queue_free()
elif area.is_in_group("saucer"):
queue_free()

Empty file modified objects/bullets/PlayerBullet.tscn
100644 → 100755
Empty file.
Empty file modified objects/bullets/SaucerBullet.gd
100644 → 100755
Empty file.
Empty file modified objects/bullets/SaucerBullet.tscn
100644 → 100755
Empty file.
Empty file modified objects/bullets/bullet.png.import
100644 → 100755
Empty file.
Empty file modified objects/player/Player.gd
100644 → 100755
Empty file.
Empty file modified objects/player/Player.tscn
100644 → 100755
Empty file.
Empty file modified objects/player/player.png.import
100644 → 100755
Empty file.
Empty file modified objects/saucer/Saucer.gd
100644 → 100755
Empty file.
Empty file modified objects/saucer/Saucer.tscn
100644 → 100755
Empty file.
Empty file modified objects/saucer/saucer.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified objects/saucer/saucer.png.import
100644 → 100755
Empty file.
Empty file modified objects/saucer/spaceEngineLow_002.ogg
100644 → 100755
Empty file.
Empty file modified objects/saucer/spaceEngineLow_002.ogg.import
100644 → 100755
Empty file.
50 changes: 30 additions & 20 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@

config_version=4

_global_script_classes=[ ]
_global_script_classes=[ {
"base": "",
"class": "GitAPI",
"language": "NativeScript",
"path": "res://addons/godot-git-plugin/git_api.gdns"
} ]
_global_script_class_icons={

"GitAPI": ""
}

[application]
Expand Down Expand Up @@ -38,6 +43,10 @@ window/vsync/vsync_via_compositor=true
window/stretch/mode="2d"
window/stretch/aspect="keep"

[gdnative]

singletons=[ "res://addons/godot-git-plugin/git_api.gdnlib" ]

[importer_defaults]

texture={
Expand Down Expand Up @@ -65,73 +74,73 @@ texture={

ui_cancel={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":1,"pressure":0.0,"pressed":false,"script":null)
]
}
ui_left={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
]
}
ui_right={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
]
}
ui_up={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
]
}
player_left={
"deadzone": 0.25,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":-1.0,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
player_right={
"deadzone": 0.25,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":0,"axis_value":1.0,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
player_thrust={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":7,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
player_fire={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777238,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777238,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
player_warp={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":3,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
game_pause={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":80,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":80,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
]
}
game_quit={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":81,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"unicode":0,"echo":false,"script":null)
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":81,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}

Expand All @@ -149,6 +158,7 @@ pointing/emulate_mouse_from_touch=false

[rendering]

quality/2d/use_pixel_snap=true
2d/snapping/use_gpu_pixel_snap=true
environment/default_clear_color=Color( 0, 0.0196078, 0.0784314, 1 )
environment/default_environment="res://default_env.tres"
quality/2d/use_pixel_snap=true
Empty file modified states/gameover/GameOverControl.gd
100644 → 100755
Empty file.
Empty file modified states/gameover/game_over.gd
100644 → 100755
Empty file.
Empty file modified states/gameover/game_over.tscn
100644 → 100755
Empty file.
Empty file modified states/pause/Pause.gd
100644 → 100755
Empty file.
Empty file modified states/pause/Pause.tscn
100644 → 100755
Empty file.
Empty file modified states/pause/PauseControl.gd
100644 → 100755
Empty file.
Empty file modified states/play/Camera.gd
100644 → 100755
Empty file.
Empty file modified states/play/PlayScene.gd
100644 → 100755
Empty file.
Empty file modified states/play/PlayScene.tscn
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions states/title/TitleScene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ func _generate_title_rocks() -> void:
# called when the fader is finished
func _on_Fader_fade_finished(anim_name):
Switcher.goto_scene("res://states/play/PlayScene.tscn")

1 change: 1 addition & 0 deletions states/title/TitleScene.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ __meta__ = {
[node name="TitleTextLayer" parent="TitlesCanvasLayer" instance=ExtResource( 2 )]

[node name="Fader" parent="." instance=ExtResource( 4 )]

[connection signal="fade_finished" from="Fader" to="." method="_on_Fader_fade_finished"]
2 changes: 1 addition & 1 deletion states/title/TitleText.gd
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func _ready():


func _on_LabelCycleTimer_timeout():

#cycle through the labels
if inst.visible == true:
inst.visible = false
Expand Down
3 changes: 2 additions & 1 deletion states/title/TitleText.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ __meta__ = {
}

[node name="FireToPlayLabel" type="Label" parent="."]
modulate = Color( 1, 0.388235, 0.278431, 1 )
modulate = Color( 1, 1, 0, 1 )
margin_top = 550.0
margin_right = 800.0
margin_bottom = 566.0
Expand Down Expand Up @@ -193,4 +193,5 @@ autostart = true
__meta__ = {
"_editor_description_": "time between text cycles"
}

[connection signal="timeout" from="LabelCycleTimer" to="." method="_on_LabelCycleTimer_timeout"]
Empty file modified states/title/logo.png.import
100644 → 100755
Empty file.
18 changes: 18 additions & 0 deletions test.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
extends Node2D


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# 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):

#position.x += 1

19 changes: 19 additions & 0 deletions test.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]

[ext_resource path="res://states/title/logo.png" type="Texture" id=1]
[ext_resource path="res://test.gd" type="Script" id=2]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 232, 120 )

[node name="Node2D" type="Node2D"]
script = ExtResource( 2 )

[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 408, 240 )
scale = Vector2( 7.11914, 23.0926 )
texture = ExtResource( 1 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 408, 232 )
shape = SubResource( 1 )

0 comments on commit 467de16

Please sign in to comment.