Merge pull request 'Book_CrtFix' (#13) from Book_CrtFix into dev
Reviewed-on: https://code.booklordofthe.dev///Booklordofthedings/GMTK-2024/pulls/13
This commit is contained in:
commit
c074d5b826
7 changed files with 60 additions and 20 deletions
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cxbalfjqtp06t"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dii1q3f5dj72y"]
|
||||
|
||||
[ext_resource type="Shader" path="res://shaders/crt.gdshader" id="2_wxq0n"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_c8ly2"]
|
||||
shader = ExtResource("2_wxq0n")
|
||||
shader_parameter/crt_curve = 0.02
|
||||
shader_parameter/crt_scan_line_color = 0.347
|
||||
shader_parameter/aperture_grille_rate = 0.4
|
||||
shader_parameter/crt_curve = 0.01
|
||||
shader_parameter/crt_scan_line_color = 0.178
|
||||
shader_parameter/aperture_grille_rate = 0.141
|
||||
shader_parameter/rf_switch_esque_blur = 1.0
|
||||
shader_parameter/white_noise_rate = 0.0
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://o8wdfgnlp0ud"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cfnmiqovwwhry" path="res://player.tscn" id="1_nvifn"]
|
||||
[ext_resource type="PackedScene" uid="uid://cxbalfjqtp06t" path="res://canvas_layer.tscn" id="2_1gnwx"]
|
||||
[ext_resource type="PackedScene" uid="uid://snxpqx0ony7s" path="res://player.tscn" id="1_nvifn"]
|
||||
[ext_resource type="PackedScene" uid="uid://dii1q3f5dj72y" path="res://canvas_layer.tscn" id="2_1gnwx"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyealb63c8uqg" path="res://temp_assets/background_commision.png" id="2_qherw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsu1bvlb0s8dp" path="res://temp_assets/Screenshot (1).png" id="3_es5ys"]
|
||||
|
||||
|
@ -13,20 +13,21 @@ size = Vector2(1928.3, 529.623)
|
|||
[node name="Player" parent="." instance=ExtResource("1_nvifn")]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
z_index = -1
|
||||
texture = ExtResource("2_qherw")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
scale = Vector2(1e-05, 1e-05)
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
||||
[node name="Ground" type="Sprite2D" parent="."]
|
||||
position = Vector2(38, 807)
|
||||
scale = Vector2(1.06, 1.06)
|
||||
texture = ExtResource("3_es5ys")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Sprite2D2"]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Ground"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite2D2/StaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground/StaticBody2D"]
|
||||
position = Vector2(1.88681, -274.811)
|
||||
shape = SubResource("RectangleShape2D_dqhmf")
|
||||
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cfnmiqovwwhry"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://snxpqx0ony7s"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_otvu6"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6gxkpy33b88g" path="res://temp_assets/player.png" id="2_d4ig1"]
|
||||
[ext_resource type="Texture2D" uid="uid://qcx482jc7pqr" path="res://textures/Virus_Player.png" id="2_b0xe3"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jqi2f"]
|
||||
radius = 16.0
|
||||
height = 32.0
|
||||
radius = 9.0
|
||||
height = 22.0
|
||||
|
||||
[node name="Player" type="Node2D"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
script = ExtResource("1_otvu6")
|
||||
speed = 250
|
||||
jump_count = 1
|
||||
jump_strength = 600
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
|
||||
texture = ExtResource("2_d4ig1")
|
||||
texture = ExtResource("2_b0xe3")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CapsuleShape2D_jqi2f")
|
||||
|
|
|
@ -3,7 +3,7 @@ extends CharacterBody2D
|
|||
@export var speed = 340;
|
||||
@export var gravity = 50;
|
||||
@export var jump_count = 2;
|
||||
@export var jump_strength = 700;
|
||||
@export var jump_strength = 100
|
||||
|
||||
var jump_count_current = 2;
|
||||
var input_direction = 0 #To keep track of which direction we where moving in last frame
|
||||
|
@ -24,14 +24,16 @@ func get_input():
|
|||
|
||||
velocity.x = input_direction * speed
|
||||
|
||||
if is_on_floor():
|
||||
jump_count_current = jump_count
|
||||
|
||||
if Input.is_action_just_pressed("player_jump") and jump_count_current > 0:
|
||||
velocity.y = -1 * jump_strength
|
||||
jump_count_current = jump_count_current-1
|
||||
elif Input.is_action_pressed("player_jump"): #Fall less fast if we keep holding the button
|
||||
velocity.y += -1 * 20
|
||||
velocity.y += -1 * 25
|
||||
|
||||
if is_on_floor():
|
||||
jump_count_current = jump_count
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
get_input()
|
||||
|
|
|
@ -8,12 +8,12 @@ uniform sampler2D screen_texture : hint_screen_texture;
|
|||
|
||||
// ブラウン管のガラスの曲がり具合(フラットなやつは0.0でいいかな)
|
||||
uniform float crt_curve : hint_range( 0.0, 1.0 ) = 0.02;
|
||||
// 走査線の濃さ
|
||||
// 走査線の濃さ
|
||||
uniform float crt_scan_line_color : hint_range( 0.0, 1.0 ) = 0.347;
|
||||
// 光量
|
||||
uniform float aperture_grille_rate : hint_range( 0.0, 1.0 ) = 0.4;
|
||||
// RFスイッチ的ブラー
|
||||
uniform float rf_switch_esque_blur : hint_range( 0.0, 1.0 ) = 1.0;
|
||||
uniform float rf_switch_esque_blur : hint_range( 0.0, 1.0 ) = 1;
|
||||
// 白色ノイズ
|
||||
uniform float white_noise_rate : hint_range( 0.0, 1.0 ) = 0.0;
|
||||
|
||||
|
|
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 580 B |
34
gmtk_2024/textures/Virus_Player.png.import
Normal file
34
gmtk_2024/textures/Virus_Player.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://qcx482jc7pqr"
|
||||
path="res://.godot/imported/Virus_Player.png-4c00daa1e7b5018c0db649deca9e637e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://textures/Virus_Player.png"
|
||||
dest_files=["res://.godot/imported/Virus_Player.png-4c00daa1e7b5018c0db649deca9e637e.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
Reference in a new issue