made launch rigid more generic
This commit is contained in:
parent
65a4fd8742
commit
40e10663d6
7 changed files with 158 additions and 19 deletions
|
@ -1,13 +0,0 @@
|
|||
extends RigidBody2D
|
||||
|
||||
#MINUMUM AND MAXIMUM IMPULSE
|
||||
var impulse_min = 100
|
||||
var impulse_max = 300
|
||||
|
||||
var rot = 0
|
||||
|
||||
func _ready():
|
||||
#SHOOT OFF AT A RANDOM DIRECTION
|
||||
var impulse_strength = rand_range(impulse_min, impulse_max)
|
||||
var angle = rand_range(-360,360)
|
||||
apply_central_impulse(Vector2(cos(angle), sin(angle)) * impulse_strength)
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource path="res://graphics/enemy/boss/scrump_gore/eyestalk.png" type="Texture" id=1]
|
||||
[ext_resource path="res://graphics/enemy/boss/scrump_gore/eye.png" type="Texture" id=2]
|
||||
[ext_resource path="res://graphics/enemy/boss/scrump_gore/headupper.png" type="Texture" id=3]
|
||||
[ext_resource path="res://objects/enemy/boss/boss1_gore.gd" type="Script" id=4]
|
||||
[ext_resource path="res://scripts/launch_rigid.gd" type="Script" id=4]
|
||||
[ext_resource path="res://graphics/enemy/boss/scrump_gore/headlower.png" type="Texture" id=5]
|
||||
[ext_resource path="res://graphics/enemy/boss/scrump_gore/tentacle5.png" type="Texture" id=6]
|
||||
[ext_resource path="res://graphics/enemy/boss/scrump_gore/tentacle3.png" type="Texture" id=7]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue