Skip to content

Commit

Permalink
fix the fucking Mm problem
Browse files Browse the repository at this point in the history
  • Loading branch information
agar3s committed Dec 1, 2018
1 parent bfd39ce commit 1e8b809
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 10 deletions.
2 changes: 1 addition & 1 deletion MiMo/Common/Led/Led.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[gd_scene load_steps=7 format=2]

[ext_resource path="res://MiMo/Common/Led/Assets/led_indicator_off_dithering.png" type="Texture" id=1]
[ext_resource path="res://Mimo/Common/Led/Led.gd" type="Script" id=2]
[ext_resource path="res://MiMo/Common/Led/Led.gd" type="Script" id=2]
[ext_resource path="res://MiMo/Common/Led/Assets/led_indicator_on_dithering.png" type="Texture" id=3]
[ext_resource path="res://MiMo/Common/Led/Assets/led_indicator_red_dithering.png" type="Texture" id=4]
[ext_resource path="res://AudioDeviceSystem/RandomDevice/RandomDevice.tscn" type="PackedScene" id=5]
Expand Down
12 changes: 6 additions & 6 deletions MiMo/IO/Led_Bar/Led_Bar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ extends Container

func _ready():
var spacing = (rect_size.x - ($Led_01.position.x*2))/8
for i in range(1, 8):
var led = $Led_01.duplicate()
led.name = "Led_0" + str(i + 1)
led.position.x += i*spacing
add_child(led)
led.add_to_group("leds")
#for i in range(1, 8):
# var led = $Led_01.duplicate()
# led.name = "Led_0" + str(i + 1)
# led.position.x += i*spacing
# add_child(led)
# led.add_to_group("leds")


func turn_on_led(index, status):
Expand Down
44 changes: 43 additions & 1 deletion MiMo/IO/Led_Bar/Led_Bar.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=3 format=2]

[ext_resource path="res://Mimo/IO/Led_Bar/Led_Bar.gd" type="Script" id=1]
[ext_resource path="res://MiMo/IO/Led_Bar/Led_Bar.gd" type="Script" id=1]
[ext_resource path="res://MiMo/Common/Led/Led.tscn" type="PackedScene" id=2]

[node name="Container" type="Container"]
Expand All @@ -25,4 +25,46 @@ position = Vector2( 46, 10 )
centered = false
_sections_unfolded = [ "Transform" ]

[node name="Led_02" parent="." index="1" instance=ExtResource( 2 )]

position = Vector2( 99, 10 )
centered = false
_sections_unfolded = [ "Transform" ]

[node name="Led_03" parent="." index="2" instance=ExtResource( 2 )]

position = Vector2( 149, 10 )
centered = false
_sections_unfolded = [ "Transform" ]

[node name="Led_04" parent="." index="3" instance=ExtResource( 2 )]

position = Vector2( 199, 10 )
centered = false
_sections_unfolded = [ "Transform" ]

[node name="Led_05" parent="." index="4" instance=ExtResource( 2 )]

position = Vector2( 245, 10 )
centered = false
_sections_unfolded = [ "Transform" ]

[node name="Led_06" parent="." index="5" instance=ExtResource( 2 )]

position = Vector2( 294, 10 )
centered = false
_sections_unfolded = [ "Transform" ]

[node name="Led_07" parent="." index="6" instance=ExtResource( 2 )]

position = Vector2( 341, 10 )
centered = false
_sections_unfolded = [ "Transform" ]

[node name="Led_08" parent="." index="7" instance=ExtResource( 2 )]

position = Vector2( 389, 10 )
centered = false
_sections_unfolded = [ "Transform" ]


2 changes: 1 addition & 1 deletion MiMo/MiMo.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tracks/0/keys = {
offsets = PoolRealArray( 0, 0.25, 0.5, 0.75, 1 )
colors = PoolColorArray( 0.160784, 0.152941, 0.560784, 0.756902, 0.160784, 0.152941, 0.560784, 1, 0.160784, 0.152941, 0.560784, 1, 0.160784, 0.152941, 0.560784, 1, 0.160784, 0.152941, 0.560784, 0.745843 )

[node name="MiMo" type="Node2D"]
[node name="MiMo" type="Node2D" index="0"]

light_mask = 0
position = Vector2( 0, 3.1604 )
Expand Down
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config_version=3
[application]

config/name="machinaria"
run/main_scene="res://MiMo/MiMo.tscn"
run/main_scene="res://Interlude/Platanal.tscn"
config/icon="res://icon.png"

[autoload]
Expand Down

0 comments on commit 1e8b809

Please sign in to comment.