minor stuff
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dpsuhnumiv82j"
|
||||||
|
path="res://.godot/imported/bg-2-1.png-5097df23ce250700d0d91ce99bc5a171.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/bg-2-1.png"
|
||||||
|
dest_files=["res://.godot/imported/bg-2-1.png-5097df23ce250700d0d91ce99bc5a171.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
|
||||||
@@ -19,7 +19,6 @@ config/icon="res://assets/icon.png"
|
|||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/mode=3
|
|
||||||
window/stretch/mode="viewport"
|
window/stretch/mode="viewport"
|
||||||
window/stretch/aspect="keep_height"
|
window/stretch/aspect="keep_height"
|
||||||
window/vsync/vsync_mode=0
|
window/vsync/vsync_mode=0
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ lock_rotation = true
|
|||||||
script = ExtResource("1_o30u3")
|
script = ExtResource("1_o30u3")
|
||||||
|
|
||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
|
z_index = 3
|
||||||
position = Vector2(8, -8)
|
position = Vector2(8, -8)
|
||||||
sprite_frames = SubResource("SpriteFrames_xnecu")
|
sprite_frames = SubResource("SpriteFrames_xnecu")
|
||||||
autoplay = "default"
|
autoplay = "default"
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
[gd_scene load_steps=5 format=3 uid="uid://daaajdv7ve15a"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dth47lmb44qk8" path="res://assets/items.png" id="1_cnc0s"]
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jjx8i"]
|
||||||
|
atlas = ExtResource("1_cnc0s")
|
||||||
|
region = Rect2(94, 0, 16, 24)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8phfu"]
|
||||||
|
atlas = ExtResource("1_cnc0s")
|
||||||
|
region = Rect2(154, 8, 16, 8)
|
||||||
|
|
||||||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_1s1v4"]
|
||||||
|
animations = [{
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_jjx8i")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"default",
|
||||||
|
"speed": 5.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_8phfu")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"down",
|
||||||
|
"speed": 5.0
|
||||||
|
}]
|
||||||
|
|
||||||
|
[node name="jump_thing" type="Node2D"]
|
||||||
|
|
||||||
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
|
position = Vector2(8, -12)
|
||||||
|
sprite_frames = SubResource("SpriteFrames_1s1v4")
|
||||||
File diff suppressed because one or more lines are too long
+4
-1
@@ -16,7 +16,8 @@ extends CharacterBody2D
|
|||||||
|
|
||||||
|
|
||||||
const SPEED = 130.0
|
const SPEED = 130.0
|
||||||
const JUMPt_velocity = -360.0
|
var JUMPt_velocity = -360.0
|
||||||
|
var org_jump_veloc : int
|
||||||
var on_pipe = false
|
var on_pipe = false
|
||||||
var right_pipe = false
|
var right_pipe = false
|
||||||
var left_pipe = false
|
var left_pipe = false
|
||||||
@@ -69,6 +70,7 @@ func _unhandled_input(event):
|
|||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
color_rect.visible = false
|
color_rect.visible = false
|
||||||
|
org_jump_veloc = JUMPt_velocity
|
||||||
pipedetector_ground.position.y = 0
|
pipedetector_ground.position.y = 0
|
||||||
collision_shape_2d.shape.height = 15
|
collision_shape_2d.shape.height = 15
|
||||||
|
|
||||||
@@ -85,6 +87,7 @@ func _process(delta):
|
|||||||
if on_pipe and (Input.is_action_just_pressed("crawl") or crawl) and is_on_floor() or right_pipe and (Input.is_action_pressed("move_right") or t_velocity > 0):
|
if on_pipe and (Input.is_action_just_pressed("crawl") or crawl) and is_on_floor() or right_pipe and (Input.is_action_pressed("move_right") or t_velocity > 0):
|
||||||
pipe_sound.play()
|
pipe_sound.play()
|
||||||
crawl = false
|
crawl = false
|
||||||
|
on_pause = true
|
||||||
t_velocity = 0
|
t_velocity = 0
|
||||||
color_rect.visible = true
|
color_rect.visible = true
|
||||||
pipe_timer.start()
|
pipe_timer.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user