online multiplayer chess game (note server currently down)
better clrs
| -rw-r--r-- | export_presets.cfg | 32 | ||||
| -rw-r--r-- | ui/StartMenu.gd | 6 | ||||
| -rw-r--r-- | ui/StartMenu.tscn | 2 |
3 files changed, 35 insertions, 5 deletions
diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..4e6aeaf --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,32 @@ +[preset.0] + +name="Mac OSX" +platform="Mac OSX" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="../mosx.zip" +script_export_mode=1 +script_encryption_key="" + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +application/name="chess" +application/info="proudly made by chess(bendn)" +application/icon="res://icon.png" +application/identifier="bendn.chess" +application/signature="" +application/app_category="Games" +application/short_version="1.0" +application/version="1.102932084.912892.928192.928912" +application/copyright="mit" +display/high_res=false +privacy/camera_usage_description="" +privacy/microphone_usage_description="" +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false diff --git a/ui/StartMenu.gd b/ui/StartMenu.gd index 299ae72..9228cc3 100644 --- a/ui/StartMenu.gd +++ b/ui/StartMenu.gd @@ -36,12 +36,10 @@ func _on_Timer_timeout(): clr.r = rand(clr.r) clr.b = rand(clr.b) clr.g = rand(clr.g) - tween.interpolate_property( - colorrect, "color", colorrect.color, clr, timer_length, Tween.TRANS_ELASTIC, Tween.EASE_IN_OUT - ) + tween.interpolate_property(colorrect, "color", colorrect.color, clr, timer_length, Tween.TRANS_ELASTIC) tween.start() timer.start(timer_length) func rand(clr): - return rand_range(0, 1 - clr) + return clamp(clr + rand_range(0, .1) if randi() % 2 else clr - rand_range(0, .1), 0, 1) diff --git a/ui/StartMenu.tscn b/ui/StartMenu.tscn index 5a970d2..5f39e84 100644 --- a/ui/StartMenu.tscn +++ b/ui/StartMenu.tscn @@ -10,7 +10,7 @@ anchor_bottom = 1.0 theme = ExtResource( 1 ) script = ExtResource( 2 ) timer_length = 2.8 -nice_colors = [ Color( 0.784314, 0.427451, 0.427451, 1 ), Color( 0.913725, 0.847059, 0.403922, 1 ), Color( 0.380392, 0.741176, 0.647059, 1 ), Color( 0.321569, 0.368627, 0.858824, 1 ), Color( 0.843137, 0.133333, 0.133333, 1 ), Color( 0.109804, 0.160784, 0.564706, 1 ), Color( 0.376471, 0.796078, 0.317647, 1 ), Color( 0.8, 0.364706, 0.588235, 1 ), Color( 0.972549, 0.85098, 0.294118, 1 ), Color( 0.164706, 0.0862745, 0.247059, 1 ) ] +nice_colors = [ Color( 0.784314, 0.427451, 0.427451, 1 ), Color( 0.913725, 0.847059, 0.403922, 1 ), Color( 0.380392, 0.741176, 0.647059, 1 ), Color( 0.321569, 0.368627, 0.858824, 1 ), Color( 0.843137, 0.133333, 0.133333, 1 ), Color( 0.109804, 0.160784, 0.564706, 1 ), Color( 0.376471, 0.796078, 0.317647, 1 ), Color( 0.8, 0.364706, 0.588235, 1 ), Color( 0.984314, 0.858824, 0.282353, 1 ), Color( 0.164706, 0.0862745, 0.247059, 1 ) ] [node name="ColorRect" type="ColorRect" parent="."] anchor_right = 1.0 |