+ cosmic runner update & export setup.

This commit is contained in:
Dooho Yi 2023-10-24 16:55:24 +09:00
parent d45c3307b9
commit 9a3392fdc7
8 changed files with 256 additions and 15 deletions

View file

@ -19,24 +19,25 @@ func _ready():
$main.set_freq(rand_range(100, 300))
$main.set_gain(gain1)
# many 'sub' surrounds 'main' like satellites
for i in range(18):
var s = sub.instance()
$main.add_child(s)
s.set_size(rand_range(0.2, 1.2))
s.set_color(Color.black)
var d = polar2cartesian(rand_range(20, 54), rand_range(0, 2*PI))
s.translate(Vector3(d.x, rand_range(-2, 2), d.y))
s.audible_range_max = range2
s.set_freq(rand_range(200, 2000))
s.set_gain(gain2)
# listen 'player_transform_updated' event
Events.connect("player_transform_updated", self, "_on_Events_player_transform_updated")
#
_rot_speed_origin = $main._rot_speed
func _spawn(nsatellites, yrange):
# many 'sub' surrounds 'main' like satellites
for i in range(nsatellites):
var s = sub.instance()
$main.add_child(s)
s.set_size(rand_range(0.2, 1.2))
s.set_color(Color.black)
var d = polar2cartesian(rand_range(20, 54), rand_range(0, 2*PI))
s.translate(Vector3(d.x, rand_range(yrange[0], yrange[1]), d.y))
s.audible_range_max = range2
s.set_freq(rand_range(200, 2000))
s.set_gain(gain2)
func _on_Events_player_transform_updated(playerpos, playerheading):
var mypos = $main.get_global_translation()
var mypos2d = Vector2(mypos.x, mypos.z)

Binary file not shown.

View file

@ -9,20 +9,23 @@ func _ready():
$Region._rot_speed_origin = rand_range(0.002, 0.005)
$Region.ratio = 3
$Region/main.audible_range_max = 30
$Region._spawn(18, [-2, 2])
for c in $Region/main.get_children():
if c.is_in_group('sounders'):
c.set_freq(rand_range(20, 200))
$Region3._rot_speed_origin = rand_range(-0.01, -0.1)
$Region3._spawn(18, [-2, 2])
for c in $Region3/main.get_children():
if c.is_in_group('sounders'):
c.set_freq(rand_range(200, 2000))
$Region2._rot_speed_origin = rand_range(0.01, 0.1)
$Region2._spawn(150, [-20, 20])
for c in $Region2/main.get_children():
if c.is_in_group('sounders'):
c.set_freq(rand_range(2000, 20000))
$Region2.gain1 = 5
$Region2.gain2 = 0.05
$Region2.gain2 = 0.01
$Region2.ratio = 3
# $Region2/main.set_freq(rand_range(20, 80))

73
cosmic/export_presets.cfg Normal file
View file

@ -0,0 +1,73 @@
[preset.0]
name="Mac OSX"
platform="Mac OSX"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="./Sands and Waves (cosmic runner).dmg"
script_export_mode=1
script_encryption_key=""
[preset.0.options]
custom_template/debug=""
custom_template/release=""
application/name=""
application/info="Made with Godot Engine"
application/icon=""
application/identifier="org.sandreceive.cosmicrunner"
application/signature=""
application/app_category="Games"
application/short_version="1.0"
application/version="1.0"
application/copyright=""
display/high_res=false
privacy/microphone_usage_description=""
privacy/camera_usage_description=""
privacy/location_usage_description=""
privacy/address_book_usage_description=""
privacy/calendar_usage_description=""
privacy/photos_library_usage_description=""
privacy/desktop_folder_usage_description=""
privacy/documents_folder_usage_description=""
privacy/downloads_folder_usage_description=""
privacy/network_volumes_usage_description=""
privacy/removable_volumes_usage_description=""
codesign/enable=true
codesign/identity=""
codesign/timestamp=false
codesign/hardened_runtime=false
codesign/replace_existing_signature=true
codesign/entitlements/custom_file=""
codesign/entitlements/allow_jit_code_execution=false
codesign/entitlements/allow_unsigned_executable_memory=false
codesign/entitlements/allow_dyld_environment_variables=false
codesign/entitlements/disable_library_validation=true
codesign/entitlements/audio_input=false
codesign/entitlements/camera=false
codesign/entitlements/location=false
codesign/entitlements/address_book=false
codesign/entitlements/calendars=false
codesign/entitlements/photos_library=false
codesign/entitlements/apple_events=false
codesign/entitlements/debugging=false
codesign/entitlements/app_sandbox/enabled=false
codesign/entitlements/app_sandbox/network_server=false
codesign/entitlements/app_sandbox/network_client=false
codesign/entitlements/app_sandbox/device_usb=false
codesign/entitlements/app_sandbox/device_bluetooth=false
codesign/entitlements/app_sandbox/files_downloads=0
codesign/entitlements/app_sandbox/files_pictures=0
codesign/entitlements/app_sandbox/files_music=0
codesign/entitlements/app_sandbox/files_movies=0
codesign/custom_options=PoolStringArray( )
notarization/enable=false
notarization/apple_id_name=""
notarization/apple_id_password=""
notarization/apple_team_id=""
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false

View file

@ -6,7 +6,7 @@ export (int, 1, 12) var preset = 1
export (bool) var use_embeded_patch = false
export (String, MULTILINE) var patch = ""
var _my_patch = "res://main.pd"
var _my_patch = "user://main.pd"
var _my_id = 0
var _rot_speed = 0.1

View file

@ -36,6 +36,89 @@ collision_mask = 0
physics_material_override = SubResource( 3 )
gravity_scale = 0.0
script = ExtResource( 1 )
use_embeded_patch = true
patch = "#N canvas 190 223 456 518 12;
#X floatatom 21 198 5 0 0 0 - - - 0;
#X obj 21 22 r fromGodot\\$0;
#X obj 21 46 list trim;
#X obj 199 467 dac~ 1 2;
#X obj 199 407 *~;
#X obj 189 264 line~;
#X msg 189 240 \\$1 100;
#X obj 189 127 unpack f f;
#X floatatom 189 177 5 0 0 0 - - - 0;
#X obj 21 256 noise~;
#X obj 21 286 bp~ 500 1000;
#X obj 21 70 route freq gain panvol;
#X obj 21 316 *~;
#X obj 132 310 switch~;
#X obj 132 286 tgl 19 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0 1;
#X obj 132 262 change;
#X text 89 155 switch on/off before 0 to stop startup pops, f 12;
#X obj 189 216 max 0;
#X obj 132 238 > -0.3;
#X obj 303 253 hsl 100 20 -1 1 0 0 empty empty empty -2 -10 0 12 #fcfcfc #000000 #000000 0 1;
#X obj 300 349 line~;
#X msg 300 325 \\$1 100;
#X obj 300 278 expr ($f1 + 1)/8;
#X floatatom 300 302 5 0 0 0 - - - 0;
#N canvas 68 97 450 300 pan2~ 0;
#X obj 51 98 cos~;
#X obj 111 98 cos~;
#X obj 33 128 *~;
#X obj 93 128 *~;
#X obj 33 158 outlet~;
#X obj 93 158 outlet~;
#X obj 33 24 inlet~;
#X obj 111 24 inlet~;
#X obj 111 74 +~ 0.75;
#X connect 0 0 2 1;
#X connect 1 0 3 1;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 6 0 2 0;
#X connect 6 0 3 0;
#X connect 7 0 8 0;
#X connect 7 0 0 0;
#X connect 8 0 1 0;
#X restore 199 437 pd pan2~;
#X floatatom 296 159 5 0 0 0 - - - 0;
#X obj 296 182 sin;
#X floatatom 296 206 5 0 0 0 - - - 0;
#X obj 203 336 *~;
#X connect 0 0 10 1;
#X connect 1 0 2 0;
#X connect 2 0 11 0;
#X connect 4 0 24 0;
#X connect 5 0 28 0;
#X connect 5 0 28 1;
#X connect 6 0 5 0;
#X connect 7 0 8 0;
#X connect 7 1 25 0;
#X connect 8 0 17 0;
#X connect 8 0 18 0;
#X connect 9 0 10 0;
#X connect 10 0 12 0;
#X connect 11 0 0 0;
#X connect 11 1 12 1;
#X connect 11 2 7 0;
#X connect 12 0 4 0;
#X connect 14 0 13 0;
#X connect 15 0 14 0;
#X connect 17 0 6 0;
#X connect 18 0 15 0;
#X connect 19 0 22 0;
#X connect 20 0 24 1;
#X connect 21 0 20 0;
#X connect 22 0 23 0;
#X connect 23 0 21 0;
#X connect 24 0 3 0;
#X connect 24 1 3 1;
#X connect 25 0 26 0;
#X connect 26 0 27 0;
#X connect 27 0 19 0;
#X connect 28 0 4 1;
"
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 5 )

View file

@ -6,7 +6,7 @@ export (int, 1, 12) var preset = 1
export (bool) var use_embeded_patch = false
export (String, MULTILINE) var patch = ""
var _my_patch = "res://osc.pd"
var _my_patch = "user://osc.pd"
var _my_id = 0
func set_size(size):

View file

@ -15,6 +15,87 @@ collision_mask = 0
physics_material_override = SubResource( 3 )
gravity_scale = 0.0
script = ExtResource( 1 )
use_embeded_patch = true
patch = "#N canvas 116 274 456 518 12;
#X obj 50 277 osc~ 440;
#X floatatom 21 198 5 0 0 0 - - - 0;
#X obj 21 22 r fromGodot\\$0;
#X obj 21 46 list trim;
#X obj 199 467 dac~ 1 2;
#X obj 199 407 *~;
#X obj 189 127 unpack f f;
#X obj 21 70 route freq gain panvol;
#X obj 50 301 *~;
#X obj 189 264 line~;
#X msg 189 240 \\$1 100;
#X floatatom 189 177 5 0 0 0 - - - 0;
#X obj 132 310 switch~;
#X obj 132 286 tgl 19 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0 1;
#X obj 132 262 change;
#X text 89 155 switch on/off before 0 to stop startup pops, f 12;
#X obj 189 216 max 0;
#X obj 303 253 hsl 100 20 -1 1 0 0 empty empty empty -2 -10 0 12 #fcfcfc #000000 #000000 0 1;
#X obj 300 349 line~;
#X msg 300 325 \\$1 100;
#X obj 300 278 expr ($f1 + 1)/8;
#X floatatom 300 302 5 0 0 0 - - - 0;
#N canvas 68 97 450 300 pan2~ 0;
#X obj 51 98 cos~;
#X obj 111 98 cos~;
#X obj 33 128 *~;
#X obj 93 128 *~;
#X obj 33 158 outlet~;
#X obj 93 158 outlet~;
#X obj 33 24 inlet~;
#X obj 111 24 inlet~;
#X obj 111 74 +~ 0.75;
#X connect 0 0 2 1;
#X connect 1 0 3 1;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 6 0 2 0;
#X connect 6 0 3 0;
#X connect 7 0 8 0;
#X connect 7 0 0 0;
#X connect 8 0 1 0;
#X restore 199 437 pd pan2~;
#X floatatom 296 159 5 0 0 0 - - - 0;
#X obj 296 182 sin;
#X floatatom 296 206 5 0 0 0 - - - 0;
#X obj 132 238 1;
#X obj 203 336 *~;
#X connect 0 0 8 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 3 0 7 0;
#X connect 5 0 22 0;
#X connect 6 0 11 0;
#X connect 6 1 23 0;
#X connect 7 0 1 0;
#X connect 7 1 8 1;
#X connect 7 2 6 0;
#X connect 8 0 5 0;
#X connect 9 0 27 0;
#X connect 9 0 27 1;
#X connect 10 0 9 0;
#X connect 11 0 16 0;
#X connect 11 0 26 0;
#X connect 13 0 12 0;
#X connect 14 0 13 0;
#X connect 16 0 10 0;
#X connect 17 0 20 0;
#X connect 18 0 22 1;
#X connect 19 0 18 0;
#X connect 20 0 21 0;
#X connect 21 0 19 0;
#X connect 22 0 4 0;
#X connect 22 1 4 1;
#X connect 23 0 24 0;
#X connect 24 0 25 0;
#X connect 25 0 17 0;
#X connect 26 0 14 0;
#X connect 27 0 5 1;
"
[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 1 )