terrain and background
This commit is contained in:
parent
e49c3288b0
commit
0a347671b5
BIN
assets/graphics/terrains/backgrounds/forestbackground.png
Normal file
BIN
assets/graphics/terrains/backgrounds/forestbackground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dordo7deet5y0"
|
||||||
|
path="res://.godot/imported/forestbackground.png-f42d75295504b2d17acc59ff8840ec7f.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/graphics/terrains/backgrounds/forestbackground.png"
|
||||||
|
dest_files=["res://.godot/imported/forestbackground.png-f42d75295504b2d17acc59ff8840ec7f.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
|
BIN
assets/graphics/terrains/backgrounds/sky.png
Normal file
BIN
assets/graphics/terrains/backgrounds/sky.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 584 B |
34
assets/graphics/terrains/backgrounds/sky.png.import
Normal file
34
assets/graphics/terrains/backgrounds/sky.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cukevm4avtgnp"
|
||||||
|
path="res://.godot/imported/sky.png-51a4e0a575be38e95f86ed632e1f79b6.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/graphics/terrains/backgrounds/sky.png"
|
||||||
|
dest_files=["res://.godot/imported/sky.png-51a4e0a575be38e95f86ed632e1f79b6.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
|
BIN
assets/graphics/terrains/backgrounds/trees.png
Normal file
BIN
assets/graphics/terrains/backgrounds/trees.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
34
assets/graphics/terrains/backgrounds/trees.png.import
Normal file
34
assets/graphics/terrains/backgrounds/trees.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cg03sfie3jb4h"
|
||||||
|
path="res://.godot/imported/trees.png-48cbb9e027f2fcbb533617bea5488df9.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/graphics/terrains/backgrounds/trees.png"
|
||||||
|
dest_files=["res://.godot/imported/trees.png-48cbb9e027f2fcbb533617bea5488df9.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
|
390
scenes/game.tscn
390
scenes/game.tscn
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://bvat1vqwtua2p" path="res://assets/graphics/player/run/player run 48x48.png" id="3_y36hw"]
|
[ext_resource type="Texture2D" uid="uid://bvat1vqwtua2p" path="res://assets/graphics/player/run/player run 48x48.png" id="3_y36hw"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_uvblg"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_uvblg"]
|
||||||
radius = 32.5576
|
radius = 17.172
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cdvw1"]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cdvw1"]
|
||||||
atlas = ExtResource("2_yfuca")
|
atlas = ExtResource("2_yfuca")
|
||||||
@ -179,6 +179,7 @@ PUSH_FORCE = 100
|
|||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
scale = Vector2(0.7, 1)
|
||||||
shape = SubResource("CircleShape2D_uvblg")
|
shape = SubResource("CircleShape2D_uvblg")
|
||||||
debug_color = Color(0.872789, 0.000463018, 0.842707, 0.42)
|
debug_color = Color(0.872789, 0.000463018, 0.842707, 0.42)
|
||||||
|
|
||||||
@ -195,13 +196,12 @@ position = Vector2(35, -10)
|
|||||||
position = Vector2(-35, -10)
|
position = Vector2(-35, -10)
|
||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="."]
|
[node name="Camera2D" type="Camera2D" parent="."]
|
||||||
position = Vector2(0, -75)
|
offset = Vector2(0, -30)
|
||||||
zoom = Vector2(0.5, 0.5)
|
|
||||||
|
|
||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
texture_filter = 1
|
texture_filter = 1
|
||||||
position = Vector2(-1, -4)
|
position = Vector2(-1, -4)
|
||||||
scale = Vector2(2.22855, 2.22855)
|
scale = Vector2(1.29167, 1.29167)
|
||||||
sprite_frames = SubResource("SpriteFrames_52pno")
|
sprite_frames = SubResource("SpriteFrames_52pno")
|
||||||
animation = &"playerJump"
|
animation = &"playerJump"
|
||||||
autoplay = "playerIdle"
|
autoplay = "playerIdle"
|
||||||
|
BIN
scenes/trees.png
Normal file
BIN
scenes/trees.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
34
scenes/trees.png.import
Normal file
34
scenes/trees.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dvo3fyb2k6saf"
|
||||||
|
path="res://.godot/imported/trees.png-aae64ae71e38b889bacd9a989dc53946.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://scenes/trees.png"
|
||||||
|
dest_files=["res://.godot/imported/trees.png-aae64ae71e38b889bacd9a989dc53946.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
|
@ -1,7 +1,7 @@
|
|||||||
extends Node2D
|
extends Node2D
|
||||||
|
|
||||||
var timer:= Timer.new()
|
var timer:= Timer.new()
|
||||||
@export var secondCount= 30
|
@export var secondCount= 90
|
||||||
|
|
||||||
var totalCrates := 0
|
var totalCrates := 0
|
||||||
|
|
||||||
|
@ -37,8 +37,7 @@ func makeBullet(position, speed):
|
|||||||
myBullet.setSpeed(speed)
|
myBullet.setSpeed(speed)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
func onBulletHit(bullet, body):
|
func onBulletHit(bullet, body):
|
||||||
bullet.position = Vector2(-100, -100)
|
bullet.position = Vector2(-100, -100)
|
||||||
bullet.setSpeed(0)
|
bullet.setSpeed(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user