space invaders WIP
This commit is contained in:
parent
119f7f9625
commit
04417dffbd
3 changed files with 88 additions and 0 deletions
54
games/space invaders/space_invaders.tscn
Normal file
54
games/space invaders/space_invaders.tscn
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bkabgl6p44c5b"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dqorec3q3h3pp" path="res://sprites/asteroidsShip.png" id="1_8m3yy"]
|
||||
[ext_resource type="Texture2D" uid="uid://by327tfhk6xrs" path="res://sprites/invadersBarrier.png" id="2_jsxp6"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_4laqq"]
|
||||
interpolation_mode = 1
|
||||
offsets = PackedFloat32Array(0, 0.882845)
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ceqm6"]
|
||||
frequency = 0.0683
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_k5cbn"]
|
||||
width = 640
|
||||
height = 360
|
||||
color_ramp = SubResource("Gradient_4laqq")
|
||||
noise = SubResource("FastNoiseLite_ceqm6")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_jdxs5"]
|
||||
radius = 24.1868
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gagve"]
|
||||
size = Vector2(56, 28)
|
||||
|
||||
[node name="SpaceInvaders" type="Node"]
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("NoiseTexture2D_k5cbn")
|
||||
|
||||
[node name="Ship" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(336, 319)
|
||||
rotation = -1.5708
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Ship"]
|
||||
texture = ExtResource("1_8m3yy")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ship"]
|
||||
shape = SubResource("CircleShape2D_jdxs5")
|
||||
|
||||
[node name="Barrier" type="StaticBody2D" parent="."]
|
||||
position = Vector2(334, 264)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Barrier"]
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("2_jsxp6")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Barrier"]
|
||||
position = Vector2(0, 2)
|
||||
shape = SubResource("RectangleShape2D_gagve")
|
||||
BIN
sprites/invadersBarrier.png
Normal file
BIN
sprites/invadersBarrier.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 442 B |
34
sprites/invadersBarrier.png.import
Normal file
34
sprites/invadersBarrier.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://by327tfhk6xrs"
|
||||
path="res://.godot/imported/invadersBarrier.png-b85128c466f9ef5f0f9cc856acd4dc5e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sprites/invadersBarrier.png"
|
||||
dest_files=["res://.godot/imported/invadersBarrier.png-b85128c466f9ef5f0f9cc856acd4dc5e.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue