Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 2D Assets/KNATIVE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions 2D Assets/KNATIVE.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c5hqlla5086kp"
path="res://.godot/imported/KNATIVE.png-1c9e246b573182a59d4c482c09479981.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://2D Assets/KNATIVE.png"
dest_files=["res://.godot/imported/KNATIVE.png-1c9e246b573182a59d4c482c09479981.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
Binary file removed 2D Assets/background.png
Binary file not shown.
Binary file added 2D Assets/ending.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions 2D Assets/ending.jpeg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://cfc04cd3iv4u4"
path="res://.godot/imported/ending.jpeg-cc91ba35ff23f6451ab6d9ae2e9ce354.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://2D Assets/ending.jpeg"
dest_files=["res://.godot/imported/ending.jpeg-cc91ba35ff23f6451ab6d9ae2e9ce354.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
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://dd48vnhqsgspy"
path="res://.godot/imported/freepik__the-style-is-candid-image-photography-with-natural__30183.jpeg-20280ef225d021334e84ff21d3898ec1.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://2D Assets/freepik__the-style-is-candid-image-photography-with-natural__30183.jpeg"
dest_files=["res://.godot/imported/freepik__the-style-is-candid-image-photography-with-natural__30183.jpeg-20280ef225d021334e84ff21d3898ec1.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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://yuq0dajc4nuq"
path="res://.godot/imported/freepik__the-style-is-candid-image-photography-with-natural__30184.jpeg-ccc16a1e1dbcb67489b2a4450efe7918.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://2D Assets/freepik__the-style-is-candid-image-photography-with-natural__30184.jpeg"
dest_files=["res://.godot/imported/freepik__the-style-is-candid-image-photography-with-natural__30184.jpeg-ccc16a1e1dbcb67489b2a4450efe7918.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
42 changes: 42 additions & 0 deletions ConveyerFilter.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
extends Node2D

var selected
var events = []
var destination
var conveyer
var dragging
var sendingEnd = false
var can_send = false
var started = false

func setup(conveyer) -> void:
self.conveyer = conveyer
self.can_send = false
self.sendingEnd = false
self.started = false
self.events = []

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if self.can_send and not self.started and self.destination != null:
self.send_event()
pass

func create_conveyor():
conveyer.set_point_position(0, selected.get_position())
conveyer.set_point_position(1, destination)

func send_event():
print("sending events!")
self.started = true
for n in events.size():
events[n].sending = true
var tween = get_tree().create_tween()
print("event sent ", n);
tween.tween_property(events[n], "position", destination, 2).set_trans(tween.TRANS_LINEAR)
await tween.finished
29 changes: 29 additions & 0 deletions Scenes/Ending.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[gd_scene load_steps=4 format=3 uid="uid://mx78xm0g2in6"]

[ext_resource type="Texture2D" uid="uid://cfc04cd3iv4u4" path="res://2D Assets/ending.jpeg" id="1_amf8d"]
[ext_resource type="Script" path="res://Scenes/ending.gd" id="2_8gxw0"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_qico7"]
size = Vector2(16.0908, 12.5)

[node name="Node2D" type="Node2D"]

[node name="Panel" type="Panel" parent="."]
z_index = -2
mouse_filter = 2

[node name="TextureRect" type="TextureRect" parent="Panel"]
layout_mode = 0
offset_right = 1920.0
offset_bottom = 1080.0
scale = Vector2(1.03659, 0.994286)
texture = ExtResource("1_amf8d")

[node name="Area2D" type="Area2D" parent="."]
script = ExtResource("2_8gxw0")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(995, 692)
rotation = 3.14159
scale = Vector2(28.8962, -7.6)
shape = SubResource("RectangleShape2D_qico7")
9 changes: 9 additions & 0 deletions Scenes/ending.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends Area2D

func _ready():
connect("input_event", _on_input_event)

func _on_input_event(viewport, event, shape_idx):
if event is InputEventMouseButton and event.pressed:
get_tree().change_scene_to_file("res://Scenes/level_0.tscn")

9 changes: 9 additions & 0 deletions Scenes/level_0.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends Area2D

func _ready():
connect("input_event", _on_input_event)

func _on_input_event(viewport, event, shape_idx):
if event is InputEventMouseButton and event.pressed:
get_tree().change_scene_to_file("res://Scenes/level_1.tscn")

27 changes: 27 additions & 0 deletions Scenes/level_0.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=3 uid="uid://tcf7s20dd0hd"]

[ext_resource type="Texture2D" uid="uid://yuq0dajc4nuq" path="res://2D Assets/freepik__the-style-is-candid-image-photography-with-natural__30184.jpeg" id="1_tg3r0"]
[ext_resource type="Script" path="res://Scenes/level_0.gd" id="2_xgp5r"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_sdx6f"]

[node name="Node2D" type="Node2D"]

[node name="Panel" type="Panel" parent="."]
z_index = -2
mouse_filter = 2

[node name="TextureRect" type="TextureRect" parent="Panel"]
layout_mode = 0
offset_right = 1920.0
offset_bottom = 1080.0
scale = Vector2(1.03659, 0.994286)
texture = ExtResource("1_tg3r0")

[node name="Area2D" type="Area2D" parent="."]
script = ExtResource("2_xgp5r")

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(1006, 576)
scale = Vector2(-28.8962, 7.6)
shape = SubResource("RectangleShape2D_sdx6f")
Loading