-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
801 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class_name Pin extends StaticBody2D | ||
|
||
var parent : PhysicsBody2D | ||
|
||
func _init(new_parent: PhysicsBody2D): | ||
parent = new_parent | ||
|
||
func _ready(): | ||
position = get_local_mouse_position() | ||
|
||
var sprite = Sprite2D.new() | ||
sprite.texture = load("res://objects/misc/peg.png") | ||
sprite.texture_filter = TEXTURE_FILTER_NEAREST | ||
|
||
var pin = PinJoint2D.new() | ||
pin.position = get_local_mouse_position() | ||
pin.node_a = get_path() | ||
pin.node_b = parent.get_path() | ||
pin.add_child(sprite) | ||
|
||
add_child(pin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class_name Weld extends Node2D | ||
|
||
func _ready(): | ||
var joint1 = PinJoint2D.new() | ||
joint1.node_a = Game.buffer[0][0] | ||
joint1.node_b = Game.buffer[1][0] | ||
joint1.global_position = Game.buffer[0][1] | ||
|
||
var joint2 = PinJoint2D.new() | ||
joint2.node_a = Game.buffer[1][0] | ||
joint2.node_b = Game.buffer[0][0] | ||
joint2.global_position = Game.buffer[1][1] | ||
|
||
add_child(joint1) | ||
add_child(joint2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://be0ix6l3exjnr" | ||
path="res://.godot/imported/Ramp.png-34138c3c9e4abc56f8d236c0e5eb7ffd.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://objects/misc/Ramp/Ramp.png" | ||
dest_files=["res://.godot/imported/Ramp.png-34138c3c9e4abc56f8d236c0e5eb7ffd.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 |
Oops, something went wrong.