It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
49
Objects/Beach/Waves/MainWaterWave.gd
Normal file
49
Objects/Beach/Waves/MainWaterWave.gd
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
extends Node2D
|
||||
|
||||
var speed = 85
|
||||
var minSpeed = -50
|
||||
|
||||
var decelDelay = 2.6
|
||||
var decel = 82
|
||||
|
||||
var fadeDelay = 2.2
|
||||
var fadeSpeed = 0.2
|
||||
var fadeAccel = 0.13
|
||||
|
||||
var opacity = 0
|
||||
|
||||
var fadingIn = true
|
||||
var fadeInSpeed = 0.9
|
||||
|
||||
func _ready():
|
||||
set_opacities(opacity)
|
||||
|
||||
func _process(delta):
|
||||
if decelDelay <= 0:
|
||||
if speed > minSpeed:
|
||||
speed -= decel * delta
|
||||
else:
|
||||
decelDelay -= delta
|
||||
|
||||
if fadingIn:
|
||||
opacity += fadeInSpeed * delta
|
||||
if opacity >= 1:
|
||||
opacity = 1
|
||||
fadingIn = false
|
||||
elif fadeDelay <= 0:
|
||||
opacity -= fadeSpeed * delta
|
||||
fadeSpeed += fadeAccel * delta
|
||||
else:
|
||||
fadeDelay -= delta
|
||||
|
||||
set_opacities(opacity)
|
||||
translate(Vector2(0, speed * -1) * delta)
|
||||
|
||||
func set_opacities(opacity):
|
||||
$Water.modulate.a = opacity
|
||||
$Foam.modulate.a = opacity + 0.15
|
||||
if $Foam.modulate.a > 1:
|
||||
$Foam.modulate.a = 1
|
||||
|
||||
if !fadingIn and opacity <= 0:
|
||||
queue_free()
|
||||
BIN
Objects/Beach/Waves/MainWaterWave.png
Normal file
BIN
Objects/Beach/Waves/MainWaterWave.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
34
Objects/Beach/Waves/MainWaterWave.png.import
Normal file
34
Objects/Beach/Waves/MainWaterWave.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://01b6ly2vtwix"
|
||||
path="res://.godot/imported/MainWaterWave.png-198ed7d4fa82bc47b9371679c046850d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Beach/Waves/MainWaterWave.png"
|
||||
dest_files=["res://.godot/imported/MainWaterWave.png-198ed7d4fa82bc47b9371679c046850d.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
|
||||
21
Objects/Beach/Waves/MainWaterWave.tscn
Normal file
21
Objects/Beach/Waves/MainWaterWave.tscn
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://b0cxphl7xaj1y"]
|
||||
|
||||
[ext_resource type="Script" path="res://Objects/Beach/Waves/MainWaterWave.gd" id="1_3o5km"]
|
||||
[ext_resource type="Texture2D" uid="uid://01b6ly2vtwix" path="res://Objects/Beach/Waves/MainWaterWave.png" id="2_iokaj"]
|
||||
[ext_resource type="Texture2D" uid="uid://ky1qqjmt78q6" path="res://Objects/Beach/Waves/MainWaterWaveFoam.png" id="3_hlabi"]
|
||||
|
||||
[node name="MainWaterWave" type="Node2D"]
|
||||
script = ExtResource("1_3o5km")
|
||||
|
||||
[node name="Water" type="Sprite2D" parent="."]
|
||||
position = Vector2(-1, 165)
|
||||
texture = ExtResource("2_iokaj")
|
||||
|
||||
[node name="Foam" type="Sprite2D" parent="."]
|
||||
position = Vector2(32.5, 1)
|
||||
texture = ExtResource("3_hlabi")
|
||||
|
||||
[node name="Foam2" type="Sprite2D" parent="Foam"]
|
||||
self_modulate = Color(0.290196, 0.72549, 0.815686, 1)
|
||||
show_behind_parent = true
|
||||
texture = ExtResource("3_hlabi")
|
||||
BIN
Objects/Beach/Waves/MainWaterWave2.png
Normal file
BIN
Objects/Beach/Waves/MainWaterWave2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
34
Objects/Beach/Waves/MainWaterWave2.png.import
Normal file
34
Objects/Beach/Waves/MainWaterWave2.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b2krd5xmd2vcs"
|
||||
path="res://.godot/imported/MainWaterWave2.png-7f2eadbb06038f79df5610f7d33348d4.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Beach/Waves/MainWaterWave2.png"
|
||||
dest_files=["res://.godot/imported/MainWaterWave2.png-7f2eadbb06038f79df5610f7d33348d4.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
|
||||
18
Objects/Beach/Waves/MainWaterWave2.tscn
Normal file
18
Objects/Beach/Waves/MainWaterWave2.tscn
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://c72dmxdxmnvmr"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b0cxphl7xaj1y" path="res://Objects/Beach/Waves/MainWaterWave.tscn" id="1_jk2o5"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2krd5xmd2vcs" path="res://Objects/Beach/Waves/MainWaterWave2.png" id="2_7orbh"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfouma1tkdr8l" path="res://Objects/Beach/Waves/MainWaterWaveFoam2.png" id="3_m1u00"]
|
||||
|
||||
[node name="MainWaterWave" instance=ExtResource("1_jk2o5")]
|
||||
|
||||
[node name="Water" parent="." index="0"]
|
||||
position = Vector2(62, 162)
|
||||
texture = ExtResource("2_7orbh")
|
||||
|
||||
[node name="Foam" parent="." index="1"]
|
||||
position = Vector2(31, -1)
|
||||
texture = ExtResource("3_m1u00")
|
||||
|
||||
[node name="Foam2" parent="Foam" index="0"]
|
||||
texture = ExtResource("3_m1u00")
|
||||
BIN
Objects/Beach/Waves/MainWaterWaveFoam.png
Normal file
BIN
Objects/Beach/Waves/MainWaterWaveFoam.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2 KiB |
34
Objects/Beach/Waves/MainWaterWaveFoam.png.import
Normal file
34
Objects/Beach/Waves/MainWaterWaveFoam.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ky1qqjmt78q6"
|
||||
path="res://.godot/imported/MainWaterWaveFoam.png-ec7c368fd87ca6108587f83d030cdd87.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Beach/Waves/MainWaterWaveFoam.png"
|
||||
dest_files=["res://.godot/imported/MainWaterWaveFoam.png-ec7c368fd87ca6108587f83d030cdd87.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
Objects/Beach/Waves/MainWaterWaveFoam2.png
Normal file
BIN
Objects/Beach/Waves/MainWaterWaveFoam2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2 KiB |
34
Objects/Beach/Waves/MainWaterWaveFoam2.png.import
Normal file
34
Objects/Beach/Waves/MainWaterWaveFoam2.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bfouma1tkdr8l"
|
||||
path="res://.godot/imported/MainWaterWaveFoam2.png-3c7587e0e432fcea3cf46c22d01ca122.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Beach/Waves/MainWaterWaveFoam2.png"
|
||||
dest_files=["res://.godot/imported/MainWaterWaveFoam2.png-3c7587e0e432fcea3cf46c22d01ca122.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