diff --git a/GameTheme.gd b/GameTheme.gd index 5f28209..39ab1ff 100644 --- a/GameTheme.gd +++ b/GameTheme.gd @@ -81,11 +81,13 @@ func set_screen_filter_alpha(alpha: float): screen_filter = Color(screen_filter.r, screen_filter.g, screen_filter.b, new_alpha) emit_signal("screen_filter_changed") +var radial_values_initialized := false func init_radial_values(): for i in range(Rules.COLS): var angle = deg2rad(fposmod(Rules.FIRST_COLUMN_ANGLE_DEG + (i * Rules.COLS_ANGLE_DEG), 360.0)) RADIAL_COL_ANGLES.push_back(angle) RADIAL_UNIT_VECTORS.push_back(Vector2(cos(angle), sin(angle))) + radial_values_initialized = true func color_array_text(alpha: float) -> PoolColorArray: diff --git a/Receptors.gd b/Receptors.gd index 9c19b66..2e362c7 100644 --- a/Receptors.gd +++ b/Receptors.gd @@ -133,7 +133,7 @@ func update_ring_mesh_1arg(arg1): func _ready(): var receptor_array_image := Image.new() - receptor_array_image.create(8, 8, false, Image.FORMAT_RH) + receptor_array_image.create(8, 8, false, Image.FORMAT_RF) receptor_array_image.lock() for i in Rules.COLS: receptor_array_image.set_pixel(i%8, i/8, Color(GameTheme.RADIAL_COL_ANGLES[i], 0.0, 0.0)) diff --git a/project.godot b/project.godot index 4e50b08..575adb1 100644 --- a/project.godot +++ b/project.godot @@ -47,6 +47,7 @@ gdscript/warnings/integer_division=false window/size/width=1920 window/size/height=1080 window/size/fullscreen=true +window/vsync/use_vsync=false window/handheld/orientation="sensor" window/stretch/mode="2d" window/stretch/aspect="keep_height"