Fixed my dumb mistakes
This commit is contained in:
parent
95140d071d
commit
1741293959
|
@ -302,6 +302,11 @@ points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 )
|
||||||
0/autotile/z_index_map = [ ]
|
0/autotile/z_index_map = [ ]
|
||||||
0/occluder_offset = Vector2( 0, 0 )
|
0/occluder_offset = Vector2( 0, 0 )
|
||||||
0/navigation_offset = Vector2( 0, 0 )
|
0/navigation_offset = Vector2( 0, 0 )
|
||||||
|
0/shape_offset = Vector2( 0, 0 )
|
||||||
|
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
0/shape = SubResource( 48 )
|
||||||
|
0/shape_one_way = false
|
||||||
|
0/shape_one_way_margin = 1.0
|
||||||
0/shapes = [ {
|
0/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
|
|
|
@ -35,7 +35,7 @@ config/icon="res://icon.png"
|
||||||
UserData="*res://addons/github-integration/scripts/user_data.gd"
|
UserData="*res://addons/github-integration/scripts/user_data.gd"
|
||||||
IconLoaderGithub="*res://addons/github-integration/scripts/IconLoaderGithub.gd"
|
IconLoaderGithub="*res://addons/github-integration/scripts/IconLoaderGithub.gd"
|
||||||
RestHandler="*res://addons/github-integration/scripts/RestHandler.gd"
|
RestHandler="*res://addons/github-integration/scripts/RestHandler.gd"
|
||||||
globals="*res://script/globals.gd"
|
Globals="*res://script/globals.gd"
|
||||||
|
|
||||||
[debug]
|
[debug]
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
extends Sprite
|
extends Sprite
|
||||||
|
|
||||||
onready var ShootDelay : Timer = $ShootDelay
|
onready var ShootDelay : Timer = $ShootDelay
|
||||||
onready var ProjectileSpawn : Timer = $ProjectileSpawn
|
onready var ProjectileSpawn : Position2D = $ProjectileSpawn
|
||||||
onready var Player = get_parent().get_parent()
|
onready var Player = get_parent().get_parent()
|
||||||
|
|
||||||
export var projectile_ps = globals.WHITE_PROJECTILE_PS
|
var projectile_ps = Globals.WHITE_PROJECTILE_PS
|
||||||
|
|
||||||
func fire_projectile(rot):
|
func fire_projectile(rot):
|
||||||
if ShootDelay.is_stopped() and Player.energy != 0:
|
if ShootDelay.is_stopped() and Player.energy != 0:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
const TILE_SIZE = 16
|
const TILE_SIZE = 16
|
||||||
const WHITE_PROJECTILE_PS = preload("res://magic/projectiles/WhiteProjectile.tscn")
|
var WHITE_PROJECTILE_PS = preload("res://magic/projectiles/WhiteProjectile.tscn")
|
||||||
|
|
Loading…
Reference in a new issue