added large asteroids

large asteroids now spawn, none rotate based on resource yet. also would like to add a little bounce to the them.
This commit is contained in:
Red3Tango 2023-12-10 13:41:18 -07:00
parent 131d4b83d4
commit 62a8db361a
4 changed files with 50 additions and 2 deletions

BIN
assets/astroids/meteorBrown_big4.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bby2p103wns0y"
path="res://.godot/imported/meteorBrown_big4.png-a337a5e39c68b3e63c005539acb96139.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/astroids/meteorBrown_big4.png"
dest_files=["res://.godot/imported/meteorBrown_big4.png-a337a5e39c68b3e63c005539acb96139.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -0,0 +1,10 @@
[gd_resource type="Resource" script_class="AsteroidResource" load_steps=3 format=3 uid="uid://b1j18tfnt1jqn"]
[ext_resource type="Script" path="res://assets/resources/asteroid.gd" id="1_f4kaj"]
[ext_resource type="Texture2D" uid="uid://bby2p103wns0y" path="res://assets/astroids/meteorBrown_big4.png" id="2_wotvc"]
[resource]
script = ExtResource("1_f4kaj")
speed_min_max = Vector2(20, 40)
rotate_min_max = Vector2(0, 0)
visual = ExtResource("2_wotvc")

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=3 uid="uid://2bt2o4cubtt8"]
[gd_scene load_steps=10 format=3 uid="uid://2bt2o4cubtt8"]
[ext_resource type="PackedScene" uid="uid://datrfa6c2wb48" path="res://prefabs/player/player.tscn" id="1_jp6gs"]
[ext_resource type="Script" path="res://scenes/core/game.gd" id="1_x2lme"]
@ -6,6 +6,7 @@
[ext_resource type="Texture2D" uid="uid://y54xyx62w73n" path="res://assets/textures/blue.png" id="3_36qv7"]
[ext_resource type="Resource" uid="uid://c2kv26lsbmknn" path="res://prefabs/asteroid/asteroid_med.tres" id="3_dgk3m"]
[ext_resource type="Script" path="res://scenes/core/background.gd" id="3_frl2i"]
[ext_resource type="Resource" uid="uid://b1j18tfnt1jqn" path="res://prefabs/asteroid/asteroid_big.tres" id="4_6m3lj"]
[sub_resource type="CanvasTexture" id="CanvasTexture_0rvhq"]
diffuse_texture = ExtResource("3_36qv7")
@ -20,7 +21,7 @@ point_count = 5
[node name="Game" type="Node2D"]
process_mode = 1
script = ExtResource("1_x2lme")
asteroid_types = Array[Resource("res://assets/resources/asteroid.gd")]([ExtResource("2_c3re8"), ExtResource("3_dgk3m")])
asteroid_types = Array[Resource("res://assets/resources/asteroid.gd")]([ExtResource("2_c3re8"), ExtResource("3_dgk3m"), ExtResource("4_6m3lj")])
[node name="Player" parent="." instance=ExtResource("1_jp6gs")]
z_index = 1