level graphics
This commit is contained in:
parent
8577de2c04
commit
a563a3967f
17 changed files with 183 additions and 205 deletions
276
src/game.tscn
276
src/game.tscn
File diff suppressed because one or more lines are too long
25
src/level/Rain.cs
Normal file
25
src/level/Rain.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
namespace Dancer;
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public sealed partial class Rain : Sprite2D
|
||||
{
|
||||
[Export] private float Speed { get; set; } = 10;
|
||||
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
SetProcess(true);
|
||||
}
|
||||
|
||||
public void OnProcess(double delta)
|
||||
{
|
||||
Position += new Vector2(0, Speed * (float)delta);
|
||||
var textureHeight = Texture.GetHeight();
|
||||
if (Position.Y > textureHeight)
|
||||
{
|
||||
Position -= new Vector2(0, textureHeight);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1
src/level/Rain.cs.uid
Normal file
1
src/level/Rain.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cbf6cfj3awmbw
|
||||
BIN
src/level/background.aseprite
(Stored with Git LFS)
BIN
src/level/background.aseprite
(Stored with Git LFS)
Binary file not shown.
BIN
src/level/background.png
(Stored with Git LFS)
BIN
src/level/background.png
(Stored with Git LFS)
Binary file not shown.
BIN
src/level/neon_box.aseprite
(Stored with Git LFS)
BIN
src/level/neon_box.aseprite
(Stored with Git LFS)
Binary file not shown.
BIN
src/level/neon_box.png
(Stored with Git LFS)
BIN
src/level/neon_box.png
(Stored with Git LFS)
Binary file not shown.
BIN
src/level/neon_box_selector.aseprite
(Stored with Git LFS)
BIN
src/level/neon_box_selector.aseprite
(Stored with Git LFS)
Binary file not shown.
BIN
src/level/neon_box_selector.png
(Stored with Git LFS)
BIN
src/level/neon_box_selector.png
(Stored with Git LFS)
Binary file not shown.
|
|
@ -1,40 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://blxf2nkqshyl3"
|
||||
path="res://.godot/imported/neon_box_selector.png-ec786c82749b9d4e37049312ccdd5853.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/level/neon_box_selector.png"
|
||||
dest_files=["res://.godot/imported/neon_box_selector.png-ec786c82749b9d4e37049312ccdd5853.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
src/level/rain.aseprite
(Stored with Git LFS)
Normal file
BIN
src/level/rain.aseprite
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src/level/rain.png
(Stored with Git LFS)
Normal file
BIN
src/level/rain.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dnf4vmvsf5wcy"
|
||||
path="res://.godot/imported/neon_box.png-76139051a2693599cac99f64e1977c99.ctex"
|
||||
uid="uid://ccsdy0nrbcbv2"
|
||||
path="res://.godot/imported/rain.png-80d3ff9a4ff8ad737a81a98c40d39d1a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/level/neon_box.png"
|
||||
dest_files=["res://.godot/imported/neon_box.png-76139051a2693599cac99f64e1977c99.ctex"]
|
||||
source_file="res://src/level/rain.png"
|
||||
dest_files=["res://.godot/imported/rain.png-80d3ff9a4ff8ad737a81a98c40d39d1a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
BIN
src/level/tiles.aseprite
(Stored with Git LFS)
BIN
src/level/tiles.aseprite
(Stored with Git LFS)
Binary file not shown.
BIN
src/level/tiles.png
(Stored with Git LFS)
BIN
src/level/tiles.png
(Stored with Git LFS)
Binary file not shown.
|
|
@ -347,7 +347,8 @@ auto_translate_mode = 1
|
|||
collision_layer = 128
|
||||
collision_mask = 65
|
||||
floor_constant_speed = true
|
||||
floor_max_angle = 0.24783675
|
||||
floor_max_angle = 0.87441
|
||||
floor_snap_length = 3.0
|
||||
script = ExtResource("1_244u8")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=84142517]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue