commit 09ade10207c750c2f61215f58c4a9d6f1345a208 Author: the me Date: Sun Aug 7 14:14:04 2022 -0700 :D diff --git a/eastern flames/eastern flames.yyp b/eastern flames/eastern flames.yyp new file mode 100644 index 0000000..52eb7b0 --- /dev/null +++ b/eastern flames/eastern flames.yyp @@ -0,0 +1,114 @@ +{ + "resources": [ + {"id":{"name":"draw_sprite_at","path":"scripts/draw_sprite_at/draw_sprite_at.yy",},"order":8,}, + {"id":{"name":"array_sum","path":"scripts/array_sum/array_sum.yy",},"order":7,}, + {"id":{"name":"clampneg","path":"scripts/clampneg/clampneg.yy",},"order":8,}, + {"id":{"name":"array_remove","path":"scripts/array_remove/array_remove.yy",},"order":6,}, + {"id":{"name":"lerp_angle","path":"scripts/lerp_angle/lerp_angle.yy",},"order":9,}, + {"id":{"name":"vlambeer","path":"scripts/vlambeer/vlambeer.yy",},"order":1,}, + {"id":{"name":"easing","path":"scripts/easing/easing.yy",},"order":4,}, + {"id":{"name":"bint_sort","path":"scripts/bint_sort/bint_sort.yy",},"order":0,}, + {"id":{"name":"vec2","path":"scripts/vec2/vec2.yy",},"order":0,}, + {"id":{"name":"array_insert_array","path":"scripts/array_insert_array/array_insert_array.yy",},"order":5,}, + {"id":{"name":"draw_percent","path":"scripts/draw_percent/draw_percent.yy",},"order":6,}, + {"id":{"name":"o_flash","path":"objects/o_flash/o_flash.yy",},"order":0,}, + {"id":{"name":"deep_copy","path":"scripts/deep_copy/deep_copy.yy",},"order":10,}, + {"id":{"name":"utils","path":"scripts/utils/utils.yy",},"order":19,}, + {"id":{"name":"rescale","path":"scripts/rescale/rescale.yy",},"order":16,}, + {"id":{"name":"draw_settings","path":"scripts/draw_settings/draw_settings.yy",},"order":3,}, + {"id":{"name":"draw_circle_curve","path":"scripts/draw_circle_curve/draw_circle_curve.yy",},"order":2,}, + {"id":{"name":"mod_negative","path":"scripts/mod_negative/mod_negative.yy",},"order":11,}, + {"id":{"name":"draw_circle_width","path":"scripts/draw_circle_width/draw_circle_width.yy",},"order":3,}, + {"id":{"name":"gcd","path":"scripts/gcd/gcd.yy",},"order":5,}, + {"id":{"name":"string_extend_digits","path":"scripts/string_extend_digits/string_extend_digits.yy",},"order":18,}, + {"id":{"name":"music_set","path":"scripts/music_set/music_set.yy",},"order":0,}, + {"id":{"name":"format_time","path":"scripts/format_time/format_time.yy",},"order":12,}, + {"id":{"name":"o_screenshake","path":"objects/o_screenshake/o_screenshake.yy",},"order":0,}, + {"id":{"name":"ncm","path":"scripts/ncm/ncm.yy",},"order":14,}, + {"id":{"name":"sinmult","path":"scripts/sinmult/sinmult.yy",},"order":16,}, + {"id":{"name":"munction","path":"scripts/munction/munction.yy",},"order":12,}, + {"id":{"name":"function_append","path":"scripts/function_append/function_append.yy",},"order":13,}, + {"id":{"name":"string_contains","path":"scripts/string_contains/string_contains.yy",},"order":17,}, + {"id":{"name":"is_prime","path":"scripts/is_prime/is_prime.yy",},"order":14,}, + {"id":{"name":"KROMER_scrip","path":"scripts/KROMER_scrip/KROMER_scrip.yy",},"order":0,}, + {"id":{"name":"is_oob","path":"scripts/is_oob/is_oob.yy",},"order":7,}, + {"id":{"name":"array_contains","path":"scripts/array_contains/array_contains.yy",},"order":0,}, + {"id":{"name":"song","path":"scripts/song/song.yy",},"order":1,}, + {"id":{"name":"cpp","path":"scripts/cpp/cpp.yy",},"order":1,}, + {"id":{"name":"log","path":"scripts/log/log.yy",},"order":10,}, + {"id":{"name":"keyboard_check_advanced","path":"scripts/keyboard_check_advanced/keyboard_check_advanced.yy",},"order":8,}, + {"id":{"name":"collision_line_width","path":"scripts/collision_line_width/collision_line_width.yy",},"order":9,}, + {"id":{"name":"draw_rectangle_width","path":"scripts/draw_rectangle_width/draw_rectangle_width.yy",},"order":7,}, + {"id":{"name":"dir2hv","path":"scripts/dir2hv/dir2hv.yy",},"order":2,}, + {"id":{"name":"tag","path":"scripts/tag/tag.yy",},"order":7,}, + {"id":{"name":"instance_create","path":"scripts/instance_create/instance_create.yy",},"order":6,}, + {"id":{"name":"array_generate_2d","path":"scripts/array_generate_2d/array_generate_2d.yy",},"order":3,}, + {"id":{"name":"se_play","path":"scripts/se_play/se_play.yy",},"order":6,}, + {"id":{"name":"msglang","path":"scripts/msglang/msglang.yy",},"order":15,}, + {"id":{"name":"array_front","path":"scripts/array_front/array_front.yy",},"order":2,}, + {"id":{"name":"with_array","path":"scripts/with_array/with_array.yy",},"order":17,}, + {"id":{"name":"point_me","path":"scripts/point_me/point_me.yy",},"order":15,}, + {"id":{"name":"draw_hitbox","path":"scripts/draw_hitbox/draw_hitbox.yy",},"order":4,}, + {"id":{"name":"draw_outline","path":"scripts/draw_outline/draw_outline.yy",},"order":5,}, + {"id":{"name":"distabs","path":"scripts/distabs/distabs.yy",},"order":11,}, + {"id":{"name":"nam","path":"scripts/nam/nam.yy",},"order":13,}, + {"id":{"name":"array_find_index","path":"scripts/array_find_index/array_find_index.yy",},"order":1,}, + {"id":{"name":"array_greatest","path":"scripts/array_greatest/array_greatest.yy",},"order":4,}, + {"id":{"name":"c_null","path":"scripts/c_null/c_null.yy",},"order":5,}, + {"id":{"name":"Room1","path":"rooms/Room1/Room1.yy",},"order":0,}, + ], + "Options": [ + {"name":"Linux","path":"options/linux/options_linux.yy",}, + {"name":"macOS","path":"options/mac/options_mac.yy",}, + {"name":"Main","path":"options/main/options_main.yy",}, + {"name":"Windows","path":"options/windows/options_windows.yy",}, + ], + "isDnDProject": false, + "isEcma": false, + "tutorialPath": "", + "configs": { + "name": "Default", + "children": [], + }, + "RoomOrderNodes": [ + {"roomId":{"name":"Room1","path":"rooms/Room1/Room1.yy",},}, + ], + "Folders": [ + {"folderPath":"folders/Sprites.yy","order":1,"resourceVersion":"1.0","name":"Sprites","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Tile Sets.yy","order":2,"resourceVersion":"1.0","name":"Tile Sets","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Sounds.yy","order":3,"resourceVersion":"1.0","name":"Sounds","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Paths.yy","order":4,"resourceVersion":"1.0","name":"Paths","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Scripts.yy","order":5,"resourceVersion":"1.0","name":"Scripts","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Shaders.yy","order":6,"resourceVersion":"1.0","name":"Shaders","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Fonts.yy","order":7,"resourceVersion":"1.0","name":"Fonts","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Timelines.yy","order":8,"resourceVersion":"1.0","name":"Timelines","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Objects.yy","order":9,"resourceVersion":"1.0","name":"Objects","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Rooms.yy","order":10,"resourceVersion":"1.0","name":"Rooms","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Sequences.yy","order":11,"resourceVersion":"1.0","name":"Sequences","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Animation Curves.yy","order":12,"resourceVersion":"1.0","name":"Animation Curves","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Notes.yy","order":13,"resourceVersion":"1.0","name":"Notes","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Extensions.yy","order":14,"resourceVersion":"1.0","name":"Extensions","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Misc.yy","order":15,"resourceVersion":"1.0","name":"Misc","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Music.yy","order":16,"resourceVersion":"1.0","name":"Music","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Objects/vfx-likes.yy","order":1,"resourceVersion":"1.0","name":"vfx-likes","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Scripts/constructors.yy","order":1,"resourceVersion":"1.0","name":"constructors","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Scripts/convenience.yy","order":2,"resourceVersion":"1.0","name":"convenience","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Scripts/data.yy","order":3,"resourceVersion":"1.0","name":"data","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Scripts/drawing.yy","order":4,"resourceVersion":"1.0","name":"drawing","tags":[],"resourceType":"GMFolder",}, + {"folderPath":"folders/Scripts/drawing/vlambeer.yy","order":1,"resourceVersion":"1.0","name":"vlambeer","tags":[],"resourceType":"GMFolder",}, + ], + "AudioGroups": [ + {"targets":-1,"resourceVersion":"1.3","name":"audiogroup_default","resourceType":"GMAudioGroup",}, + ], + "TextureGroups": [ + {"isScaled":true,"autocrop":true,"border":2,"mipsToGenerate":0,"groupParent":null,"targets":-1,"resourceVersion":"1.3","name":"Default","resourceType":"GMTextureGroup",}, + ], + "IncludedFiles": [], + "MetaData": { + "IDEVersion": "2.3.3.574", + }, + "resourceVersion": "1.4", + "name": "eastern flames", + "tags": [], + "resourceType": "GMProject", +} \ No newline at end of file diff --git a/eastern flames/objects/o_flash/o_flash.yy b/eastern flames/objects/o_flash/o_flash.yy new file mode 100644 index 0000000..3997e69 --- /dev/null +++ b/eastern flames/objects/o_flash/o_flash.yy @@ -0,0 +1,31 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "vlambeer", + "path": "folders/Scripts/drawing/vlambeer.yy", + }, + "resourceVersion": "1.0", + "name": "o_flash", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/eastern flames/objects/o_screenshake/Create_0.gml b/eastern flames/objects/o_screenshake/Create_0.gml new file mode 100644 index 0000000..f7b698f --- /dev/null +++ b/eastern flames/objects/o_screenshake/Create_0.gml @@ -0,0 +1,3 @@ +/// @description Insert description here +// You can write your code in this editor +count = 0; \ No newline at end of file diff --git a/eastern flames/objects/o_screenshake/Step_0.gml b/eastern flames/objects/o_screenshake/Step_0.gml new file mode 100644 index 0000000..3d3bb83 --- /dev/null +++ b/eastern flames/objects/o_screenshake/Step_0.gml @@ -0,0 +1,14 @@ +/// @description Insert description here +// You can write your code in this editor +if(count > length){ + instance_destroy(); +} +else{ + var camx = camera_get_view_x(view_camera[0]); + var camy = camera_get_view_y(view_camera[0]); + var range = amplitude - amplitude*(count/length); + camx += random_range(-range,range); + camy += random_range(-range,range); + camera_set_view_pos(view_camera[0],camx,camy); +} +count++; \ No newline at end of file diff --git a/eastern flames/objects/o_screenshake/o_screenshake.yy b/eastern flames/objects/o_screenshake/o_screenshake.yy new file mode 100644 index 0000000..926d6d7 --- /dev/null +++ b/eastern flames/objects/o_screenshake/o_screenshake.yy @@ -0,0 +1,34 @@ +{ + "spriteId": null, + "solid": false, + "visible": true, + "spriteMaskId": null, + "persistent": false, + "parentObjectId": null, + "physicsObject": false, + "physicsSensor": false, + "physicsShape": 1, + "physicsGroup": 1, + "physicsDensity": 0.5, + "physicsRestitution": 0.1, + "physicsLinearDamping": 0.1, + "physicsAngularDamping": 0.1, + "physicsFriction": 0.2, + "physicsStartAwake": true, + "physicsKinematic": false, + "physicsShapePoints": [], + "eventList": [ + {"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + {"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",}, + ], + "properties": [], + "overriddenProperties": [], + "parent": { + "name": "vfx-likes", + "path": "folders/Objects/vfx-likes.yy", + }, + "resourceVersion": "1.0", + "name": "o_screenshake", + "tags": [], + "resourceType": "GMObject", +} \ No newline at end of file diff --git a/eastern flames/options/linux/options_linux.yy b/eastern flames/options/linux/options_linux.yy new file mode 100644 index 0000000..4978896 --- /dev/null +++ b/eastern flames/options/linux/options_linux.yy @@ -0,0 +1,25 @@ +{ + "option_linux_display_name": "Created with GameMaker Studio 2", + "option_linux_version": "1.0.0.0", + "option_linux_maintainer_email": "", + "option_linux_homepage": "http://www.yoyogames.com", + "option_linux_short_desc": "", + "option_linux_long_desc": "", + "option_linux_splash_screen": "${base_options_dir}/linux/splash/splash.png", + "option_linux_display_splash": false, + "option_linux_icon": "${base_options_dir}/linux/icons/64.png", + "option_linux_start_fullscreen": false, + "option_linux_allow_fullscreen": false, + "option_linux_interpolate_pixels": true, + "option_linux_display_cursor": true, + "option_linux_sync": false, + "option_linux_resize_window": false, + "option_linux_scale": 0, + "option_linux_texture_page": "2048x2048", + "option_linux_enable_steam": false, + "option_linux_disable_sandbox": false, + "resourceVersion": "1.0", + "name": "Linux", + "tags": [], + "resourceType": "GMLinuxOptions", +} \ No newline at end of file diff --git a/eastern flames/options/mac/options_mac.yy b/eastern flames/options/mac/options_mac.yy new file mode 100644 index 0000000..73e249f --- /dev/null +++ b/eastern flames/options/mac/options_mac.yy @@ -0,0 +1,33 @@ +{ + "option_mac_display_name": "Created with GameMaker Studio 2", + "option_mac_app_id": "com.company.game", + "option_mac_version": "1.0.0.0", + "option_mac_output_dir": "~/gamemakerstudio2", + "option_mac_team_id": "", + "option_mac_signing_identity": "Developer ID Application:", + "option_mac_copyright": "", + "option_mac_splash_png": "${base_options_dir}/mac/splash/splash.png", + "option_mac_icon_png": "${base_options_dir}/mac/icons/1024.png", + "option_mac_installer_background_png": "${base_options_dir}/mac/splash/installer_background.png", + "option_mac_menu_dock": false, + "option_mac_display_cursor": true, + "option_mac_start_fullscreen": false, + "option_mac_allow_fullscreen": false, + "option_mac_interpolate_pixels": true, + "option_mac_vsync": false, + "option_mac_resize_window": false, + "option_mac_enable_retina": false, + "option_mac_scale": 0, + "option_mac_texture_page": "2048x2048", + "option_mac_build_app_store": false, + "option_mac_allow_incoming_network": false, + "option_mac_allow_outgoing_network": false, + "option_mac_app_category": "Games", + "option_mac_enable_steam": false, + "option_mac_disable_sandbox": false, + "option_mac_apple_sign_in": false, + "resourceVersion": "1.0", + "name": "macOS", + "tags": [], + "resourceType": "GMMacOptions", +} \ No newline at end of file diff --git a/eastern flames/options/main/options_main.yy b/eastern flames/options/main/options_main.yy new file mode 100644 index 0000000..f57d168 --- /dev/null +++ b/eastern flames/options/main/options_main.yy @@ -0,0 +1,17 @@ +{ + "option_gameguid": "2d06a00b-d1e6-4dea-85f0-2d7650624be2", + "option_gameid": "0", + "option_game_speed": 60, + "option_mips_for_3d_textures": false, + "option_draw_colour": 4294967295, + "option_window_colour": 255, + "option_steam_app_id": "0", + "option_sci_usesci": false, + "option_author": "", + "option_lastchanged": "", + "option_spine_licence": false, + "resourceVersion": "1.2", + "name": "Main", + "tags": [], + "resourceType": "GMMainOptions", +} \ No newline at end of file diff --git a/eastern flames/options/windows/options_windows.yy b/eastern flames/options/windows/options_windows.yy new file mode 100644 index 0000000..44cc31c --- /dev/null +++ b/eastern flames/options/windows/options_windows.yy @@ -0,0 +1,36 @@ +{ + "option_windows_display_name": "Created with GameMaker Studio 2", + "option_windows_executable_name": "${project_name}.exe", + "option_windows_version": "1.0.0.0", + "option_windows_company_info": "YoYo Games Ltd", + "option_windows_product_info": "Created with GameMaker Studio 2", + "option_windows_copyright_info": "", + "option_windows_description_info": "A GameMaker Studio 2 Game", + "option_windows_display_cursor": true, + "option_windows_icon": "${base_options_dir}/windows/icons/icon.ico", + "option_windows_save_location": 0, + "option_windows_splash_screen": "${base_options_dir}/windows/splash/splash.png", + "option_windows_use_splash": false, + "option_windows_start_fullscreen": false, + "option_windows_allow_fullscreen_switching": false, + "option_windows_interpolate_pixels": false, + "option_windows_vsync": false, + "option_windows_resize_window": false, + "option_windows_borderless": false, + "option_windows_scale": 0, + "option_windows_copy_exe_to_dest": false, + "option_windows_sleep_margin": 10, + "option_windows_texture_page": "2048x2048", + "option_windows_installer_finished": "${base_options_dir}/windows/installer/finished.bmp", + "option_windows_installer_header": "${base_options_dir}/windows/installer/header.bmp", + "option_windows_license": "${base_options_dir}/windows/installer/license.txt", + "option_windows_nsis_file": "${base_options_dir}/windows/installer/nsis_script.nsi", + "option_windows_enable_steam": false, + "option_windows_disable_sandbox": false, + "option_windows_steam_use_alternative_launcher": false, + "option_windows_use_x64": false, + "resourceVersion": "1.1", + "name": "Windows", + "tags": [], + "resourceType": "GMWindowsOptions", +} \ No newline at end of file diff --git a/eastern flames/rooms/Room1/Room1.yy b/eastern flames/rooms/Room1/Room1.yy new file mode 100644 index 0000000..f69dcfa --- /dev/null +++ b/eastern flames/rooms/Room1/Room1.yy @@ -0,0 +1,52 @@ +{ + "isDnd": false, + "volume": 1.0, + "parentRoom": null, + "views": [ + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + {"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,}, + ], + "layers": [ + {"instances":[],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",}, + {"spriteId":null,"colour":4278190080,"x":0,"y":0,"htiled":false,"vtiled":false,"hspeed":0.0,"vspeed":0.0,"stretch":false,"animationFPS":15.0,"animationSpeedType":0,"userdefinedAnimFPS":false,"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Background","tags":[],"resourceType":"GMRBackgroundLayer",}, + ], + "inheritLayers": false, + "creationCodeFile": "", + "inheritCode": false, + "instanceCreationOrder": [], + "inheritCreationOrder": false, + "sequenceId": null, + "roomSettings": { + "inheritRoomSettings": false, + "Width": 1366, + "Height": 768, + "persistent": false, + }, + "viewSettings": { + "inheritViewSettings": false, + "enableViews": false, + "clearViewBackground": false, + "clearDisplayBuffer": true, + }, + "physicsSettings": { + "inheritPhysicsSettings": false, + "PhysicsWorld": false, + "PhysicsWorldGravityX": 0.0, + "PhysicsWorldGravityY": 10.0, + "PhysicsWorldPixToMetres": 0.1, + }, + "parent": { + "name": "Rooms", + "path": "folders/Rooms.yy", + }, + "resourceVersion": "1.0", + "name": "Room1", + "tags": [], + "resourceType": "GMRoom", +} \ No newline at end of file diff --git a/eastern flames/scripts/KROMER_scrip/KROMER_scrip.gml b/eastern flames/scripts/KROMER_scrip/KROMER_scrip.gml new file mode 100644 index 0000000..f70712a --- /dev/null +++ b/eastern flames/scripts/KROMER_scrip/KROMER_scrip.gml @@ -0,0 +1,56 @@ +//TOP TEN [[Spookiest]] OPERATIONS ALL [[Children of any type]] NEED TO BECOME A KROMILLIONAIRE + + +function NUMBER10(KROMER) { + return KROMER+1; + //INCREASE KROMER WITH FREE [[Function]]-LIKE OPERATION + //balls +} +function NUMBER9(KROMER) { + return KROMER*2; + //I WILL BECOME BACK MY KROMER +} +function NUMBER8(KROMER) { + return KROMER+KROMER; + //DON"T BE FOOLED, [[Little sponge]]!! KROMER [[Times two]] IS [[Less than]] KROMER [[Plus]] KROMER +} +function NUMBER7(KROMER) { + return (KROMER/KROMER)*13; + //WHEN I WAS A [[Young Chip]] LIKE YOURSELF 13, KROMER WAS ALL YOU NEEDED FOR [[Fun in the sun]]! +} +function NUMBER6(KROMER) { + return KROMER; + //ALL YOUR MONEY BACK GUARANTEE +} +function NUMBER5(KROMER) { + { + //...but nobody came. + } +} + +function NUMBER4(KROMER) { + var PROFITS; + for (var FREE=0; FREE< KROMER; FREE = NUMBER10(FREE)) { + PROFITS = KROMER | FREE; + } + return PROFITS; + //NOW'S YOUR CHANCE TO MAKE A BIT SHOT +} +function NUMBER3(KROMER) { + return 0; + //OUT OF KROMER??? LUCKY????? +} +function NUMBER2(KROMER) { + return { + KROMER: KROMER + } + //I HEARD YOU LIKE KROMER SO I P(*A&WERYI(&#(!@*&$()*&$()&*#AOPI$OPI(JKS +} +function NUMBER1(KROMER) { + var PROFITS = KROMER; + while KROMER { + PROFITS += infinity; + } + return PROFITS; + //WOW, [[Bread man]]!! YOU r BIG SHOT 4EVER?! +} diff --git a/eastern flames/scripts/KROMER_scrip/KROMER_scrip.yy b/eastern flames/scripts/KROMER_scrip/KROMER_scrip.yy new file mode 100644 index 0000000..80d417e --- /dev/null +++ b/eastern flames/scripts/KROMER_scrip/KROMER_scrip.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "Misc", + "path": "folders/Misc.yy", + }, + "resourceVersion": "1.0", + "name": "KROMER_scrip", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/array_contains/array_contains.gml b/eastern flames/scripts/array_contains/array_contains.gml new file mode 100644 index 0000000..6215cdc --- /dev/null +++ b/eastern flames/scripts/array_contains/array_contains.gml @@ -0,0 +1,9 @@ +function array_contains(array, val) { + var i; + for (i=0; i= repititionof return i; + } + } + return -1; +} \ No newline at end of file diff --git a/eastern flames/scripts/array_find_index/array_find_index.yy b/eastern flames/scripts/array_find_index/array_find_index.yy new file mode 100644 index 0000000..9165f2b --- /dev/null +++ b/eastern flames/scripts/array_find_index/array_find_index.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "data", + "path": "folders/Scripts/data.yy", + }, + "resourceVersion": "1.0", + "name": "array_find_index", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/array_front/array_front.gml b/eastern flames/scripts/array_front/array_front.gml new file mode 100644 index 0000000..d38f0bc --- /dev/null +++ b/eastern flames/scripts/array_front/array_front.gml @@ -0,0 +1,18 @@ +function array_front(array, val) { + var returnable = false; + var test; + var i; + for (i=0; i 0 return 1 + else return 0 +} \ No newline at end of file diff --git a/eastern flames/scripts/clampneg/clampneg.yy b/eastern flames/scripts/clampneg/clampneg.yy new file mode 100644 index 0000000..7dd37a7 --- /dev/null +++ b/eastern flames/scripts/clampneg/clampneg.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "data", + "path": "folders/Scripts/data.yy", + }, + "resourceVersion": "1.0", + "name": "clampneg", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/collision_line_width/collision_line_width.gml b/eastern flames/scripts/collision_line_width/collision_line_width.gml new file mode 100644 index 0000000..513eb34 --- /dev/null +++ b/eastern flames/scripts/collision_line_width/collision_line_width.gml @@ -0,0 +1,58 @@ +function collision_line_width(x1, y1, x2, y2, precision, width, target) { + ///collizion_line(x1, y1, z1, x2, y2, z2, precision, width, object); + + var hit = [0]; + var xdist = x2-x1; + var ydist = y2-y1; + //var xydist = pythag(xdist, ydist, 0); + //var zdist = z2-z1; + var i; + var j=0; + width /= 2; + + + for (i=0; i<=precision; i++) { + if (x1+(xdist*(i/precision)) >= room_width || x1+(xdist*(i/precision)) <= 0) && (y1+(ydist*(i/precision)) >= room_height || y1+(ydist*(i/precision)) <= 0) return hit; + hit[i] = collision_circle( + x1+(xdist*(i/precision)), + y1+(ydist*(i/precision)), + width, + target, + false, + false + ); + /*if hit[i] != noone { + j++; + hit[i] = 0; + }*/ + } + + return hit; +} +//LASER + +function draw_collision_line_width(x1, y1, x2, y2, precision, width, target) { + ///collizion_line(x1, y1, z1, x2, y2, z2, precision, width, object); + + var hit = [0]; + var xdist = x2-x1; + var ydist = y2-y1; + width /= 2; + //var xydist = pythag(xdist, ydist, 0); + //var zdist = z2-z1; + var i; + var j; + + + + for (i=0; i<=precision; i++) { + if (x1+(xdist*(i/precision)) >= room_width || x1+(xdist*(i/precision)) <= 0) && (y1+(ydist*(i/precision)) >= room_height || y1+(ydist*(i/precision)) <= 0) exit; + draw_circle( + x1+(xdist*(i/precision)), + y1+(ydist*(i/precision)), + width, + false + ); + } +} +//LASER \ No newline at end of file diff --git a/eastern flames/scripts/collision_line_width/collision_line_width.yy b/eastern flames/scripts/collision_line_width/collision_line_width.yy new file mode 100644 index 0000000..c1d528b --- /dev/null +++ b/eastern flames/scripts/collision_line_width/collision_line_width.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "data", + "path": "folders/Scripts/data.yy", + }, + "resourceVersion": "1.0", + "name": "collision_line_width", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/cpp/cpp.gml b/eastern flames/scripts/cpp/cpp.gml new file mode 100644 index 0000000..c97b033 --- /dev/null +++ b/eastern flames/scripts/cpp/cpp.gml @@ -0,0 +1,6 @@ +function cpp() { + count++; +} +function cmm() { + count--; +} \ No newline at end of file diff --git a/eastern flames/scripts/cpp/cpp.yy b/eastern flames/scripts/cpp/cpp.yy new file mode 100644 index 0000000..e53cfca --- /dev/null +++ b/eastern flames/scripts/cpp/cpp.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "cpp", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/deep_copy/deep_copy.gml b/eastern flames/scripts/deep_copy/deep_copy.gml new file mode 100644 index 0000000..e3eaf41 --- /dev/null +++ b/eastern flames/scripts/deep_copy/deep_copy.gml @@ -0,0 +1,88 @@ +function deep_copy(struct, antiwhiletrue=[]) { + var newone = {}; + var oldstuff = variable_struct_get_names(struct); + var i; + for (i=0; i ratio1 { + var ratio = ratio2; + } else { + var ratio = ratio1; + } + draw_sprite_stretched(sprite_index, image_index, x-sprite_get_xoffset(sprite_index)*ratio, y-sprite_get_yoffset(sprite_index)*ratio, sprite_get_width(sprite_index)*ratio, sprite_get_height(sprite_index)*ratio); +} +function draw_sprite_at_ext(sprite_index, image_index, x, y, maxwidth, maxheight, color, alpha) { + var ratio1 = maxwidth/sprite_get_width(sprite_index); + var ratio2 = maxheight/sprite_get_height(sprite_index); + if ratio2 > ratio1 { + var ratio = ratio2; + } else { + var ratio = ratio1; + } + draw_sprite_stretched_ext(sprite_index, image_index, x-sprite_get_xoffset(sprite_index)*ratio, y-sprite_get_yoffset(sprite_index)*ratio, sprite_get_width(sprite_index)*ratio, sprite_get_height(sprite_index)*ratio, color, alpha); +} \ No newline at end of file diff --git a/eastern flames/scripts/draw_sprite_at/draw_sprite_at.yy b/eastern flames/scripts/draw_sprite_at/draw_sprite_at.yy new file mode 100644 index 0000000..3ab7783 --- /dev/null +++ b/eastern flames/scripts/draw_sprite_at/draw_sprite_at.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "drawing", + "path": "folders/Scripts/drawing.yy", + }, + "resourceVersion": "1.0", + "name": "draw_sprite_at", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/easing/easing.gml b/eastern flames/scripts/easing/easing.gml new file mode 100644 index 0000000..e9d77be --- /dev/null +++ b/eastern flames/scripts/easing/easing.gml @@ -0,0 +1,32 @@ +//https://github.com/Demigiant/dotween/blob/develop/_DOTween.Assembly/DOTween/Core/Easing/EaseManager.cs +#macro _PiOver2 pi/2 +#macro _TwoPi pi*2 +function ease_Linear(time,duration){ + return time / duration; +} +function ease_InSine(time,duration){ + return -cos(time / duration * _PiOver2) + 1; +} +function ease_outsine(time,duration){ + return sin(time / duration * _PiOver2); +} +function ease_inoutsine(time,duration){ + return -0.5 * (cos( pi* time / duration) - 1); +} +function ease_inquad(time,duration){ //idk if this one works + time /= duration; + return time * time; +} +function ease_outquad(time,duration){ //idk if this one works + time /= duration; + return -(time) * (time - 2); +} +function ease_inoutquad(time,duration){ + time /= duration; + if ((time * 0.5) < 1) return 0.5 * time * time; + return -0.5 * ((--time) * (time - 2) - 1); +} +function ease_incubic(time,duration){ + time /= duration; + return time * time * time; +} \ No newline at end of file diff --git a/eastern flames/scripts/easing/easing.yy b/eastern flames/scripts/easing/easing.yy new file mode 100644 index 0000000..5b70d5f --- /dev/null +++ b/eastern flames/scripts/easing/easing.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "easing", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/format_time/format_time.gml b/eastern flames/scripts/format_time/format_time.gml new file mode 100644 index 0000000..7b94ceb --- /dev/null +++ b/eastern flames/scripts/format_time/format_time.gml @@ -0,0 +1,9 @@ +function format_time(seconds) { + var time = ""; + second = floor(seconds%60); + minute = floor(seconds/60)%60; + hour = floor(seconds/60/60)%60; + //day = ((seconds-minute-second)/60)%24; + time = string(hour)+":"+string(minute)+":"+string(second); + return time; +} \ No newline at end of file diff --git a/eastern flames/scripts/format_time/format_time.yy b/eastern flames/scripts/format_time/format_time.yy new file mode 100644 index 0000000..ef14390 --- /dev/null +++ b/eastern flames/scripts/format_time/format_time.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "data", + "path": "folders/Scripts/data.yy", + }, + "resourceVersion": "1.0", + "name": "format_time", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/function_append/function_append.gml b/eastern flames/scripts/function_append/function_append.gml new file mode 100644 index 0000000..0433b2b --- /dev/null +++ b/eastern flames/scripts/function_append/function_append.gml @@ -0,0 +1,8 @@ +function function_append(func, func2){ + return munction(function() { + func(); + func2(); + }) +} + +//probably does not work i messed it up lol \ No newline at end of file diff --git a/eastern flames/scripts/function_append/function_append.yy b/eastern flames/scripts/function_append/function_append.yy new file mode 100644 index 0000000..23327ad --- /dev/null +++ b/eastern flames/scripts/function_append/function_append.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "data", + "path": "folders/Scripts/data.yy", + }, + "resourceVersion": "1.0", + "name": "function_append", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/gcd/gcd.gml b/eastern flames/scripts/gcd/gcd.gml new file mode 100644 index 0000000..a2ff16f --- /dev/null +++ b/eastern flames/scripts/gcd/gcd.gml @@ -0,0 +1,4 @@ +function gcd(a, b) { + //https://stackoverflow.com/questions/21570890/java-get-greatest-common-divisor-which-method-is-better + return b==0 ? a : gcd(b, a%b); +} \ No newline at end of file diff --git a/eastern flames/scripts/gcd/gcd.yy b/eastern flames/scripts/gcd/gcd.yy new file mode 100644 index 0000000..5e723ad --- /dev/null +++ b/eastern flames/scripts/gcd/gcd.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "gcd", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/instance_create/instance_create.gml b/eastern flames/scripts/instance_create/instance_create.gml new file mode 100644 index 0000000..b59fc69 --- /dev/null +++ b/eastern flames/scripts/instance_create/instance_create.gml @@ -0,0 +1,9 @@ +///@function instance_create(x, y, object, [layer, depth]); + +function instance_create(x, y, object, layer_="instances", depth_) { + var chump = instance_create_layer(x, y, layer_, object); + if(depth_ != undefined){ + chump.depth = depth_; + } + return chump; +} \ No newline at end of file diff --git a/eastern flames/scripts/instance_create/instance_create.yy b/eastern flames/scripts/instance_create/instance_create.yy new file mode 100644 index 0000000..53eb7bc --- /dev/null +++ b/eastern flames/scripts/instance_create/instance_create.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "instance_create", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/is_oob/is_oob.gml b/eastern flames/scripts/is_oob/is_oob.gml new file mode 100644 index 0000000..0657a31 --- /dev/null +++ b/eastern flames/scripts/is_oob/is_oob.gml @@ -0,0 +1,12 @@ +function is_oob(variation=sprite_width/2, horizontal=true, vertical=true) { + if horizontal && vertical { + return !(x=clamp(x, 0-variation, global.gw+variation) && y=clamp(y, 0-variation, global.gh+variation)); + } else if horizontal { + return !(x=clamp(x, 0-variation, global.gw+variation)) + } else if vertical { + return !(y=clamp(y, 0-variation, global.gh+variation)) + } else { + log("????????????"); + return true; + } +} \ No newline at end of file diff --git a/eastern flames/scripts/is_oob/is_oob.yy b/eastern flames/scripts/is_oob/is_oob.yy new file mode 100644 index 0000000..9fde6dc --- /dev/null +++ b/eastern flames/scripts/is_oob/is_oob.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "is_oob", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/is_prime/is_prime.gml b/eastern flames/scripts/is_prime/is_prime.gml new file mode 100644 index 0000000..f97defa --- /dev/null +++ b/eastern flames/scripts/is_prime/is_prime.gml @@ -0,0 +1,19 @@ +function is_pprime(val) { //is probably prime + var primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 59, 61, 71, 73, 87, 93]; + var i; + for (i=0; i= 30 { + keyboard_check_advanced = keyboard_check; + } + } else { + keyboard_check_advanced = keyboard_check_pressed; + count = 0; + } + holding = keyboard_key; + show_debug_message(currentpos); + } else { + keyboard_check_advanced = keyboard_check_pressed; + count = 0; + } +} \ No newline at end of file diff --git a/eastern flames/scripts/keyboard_check_advanced/keyboard_check_advanced.yy b/eastern flames/scripts/keyboard_check_advanced/keyboard_check_advanced.yy new file mode 100644 index 0000000..21ed203 --- /dev/null +++ b/eastern flames/scripts/keyboard_check_advanced/keyboard_check_advanced.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "keyboard_check_advanced", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/lerp_angle/lerp_angle.gml b/eastern flames/scripts/lerp_angle/lerp_angle.gml new file mode 100644 index 0000000..daa806d --- /dev/null +++ b/eastern flames/scripts/lerp_angle/lerp_angle.gml @@ -0,0 +1,5 @@ +// Script assets have changed for v2.3.0 see +// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information +function lerp_angle(a,b,val){ + return a - (angle_difference(a,b) / (1/ val)); +} diff --git a/eastern flames/scripts/lerp_angle/lerp_angle.yy b/eastern flames/scripts/lerp_angle/lerp_angle.yy new file mode 100644 index 0000000..82a8a1a --- /dev/null +++ b/eastern flames/scripts/lerp_angle/lerp_angle.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "lerp_angle", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/log/log.gml b/eastern flames/scripts/log/log.gml new file mode 100644 index 0000000..1519b32 --- /dev/null +++ b/eastern flames/scripts/log/log.gml @@ -0,0 +1,21 @@ +///@function log(data[...]); +function log() { + var r = string(argument[0]), i; + for (i = 1; i < argument_count; i++) { + r += ", " + string(argument[i]); + } + var stack = debug_get_callstack(10); + //show_debug_message(stack); + show_debug_message(string(current_time) + " : " + string(stack[1]) + " : " + r); + var p = new consoleEntry(r,c_black); +} +/* +var a = {}; +for(var i = 0; i < 24; i++){ + a[$i] = i; +} + +for(var i = 0; i < 24; i++){ + log(a[$i]); +}*/ +//log(a[$4]) \ No newline at end of file diff --git a/eastern flames/scripts/log/log.yy b/eastern flames/scripts/log/log.yy new file mode 100644 index 0000000..42cad57 --- /dev/null +++ b/eastern flames/scripts/log/log.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "log", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/mod_negative/mod_negative.gml b/eastern flames/scripts/mod_negative/mod_negative.gml new file mode 100644 index 0000000..d4c6b9a --- /dev/null +++ b/eastern flames/scripts/mod_negative/mod_negative.gml @@ -0,0 +1,10 @@ +function mod_negative(val, modval) { + if val < 1 { + while val < 0 { + val += modval; + } + return val; + } else { + return val % modval; + } +} \ No newline at end of file diff --git a/eastern flames/scripts/mod_negative/mod_negative.yy b/eastern flames/scripts/mod_negative/mod_negative.yy new file mode 100644 index 0000000..2ed23bc --- /dev/null +++ b/eastern flames/scripts/mod_negative/mod_negative.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "mod_negative", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/msglang/msglang.gml b/eastern flames/scripts/msglang/msglang.gml new file mode 100644 index 0000000..d646a35 --- /dev/null +++ b/eastern flames/scripts/msglang/msglang.gml @@ -0,0 +1,21 @@ +function msglang(english, japanese=[txt()], language=global.lang) { + return array_insert_array_parse(argument[language-1]); + /*switch language { + case LANGUAGE.ENGLISH: + return array_insert_array_parse(english); + break; + case LANGUAGE.JAPANESE: + return array_insert_array_parse(japanese); + break; + default: + return [txt()]; + break; + }*/ +} + + +enum LANGUAGE { + NULL, + ENGLISH, + JAPANESE, +} \ No newline at end of file diff --git a/eastern flames/scripts/msglang/msglang.yy b/eastern flames/scripts/msglang/msglang.yy new file mode 100644 index 0000000..9d72438 --- /dev/null +++ b/eastern flames/scripts/msglang/msglang.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "data", + "path": "folders/Scripts/data.yy", + }, + "resourceVersion": "1.0", + "name": "msglang", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/munction/munction.gml b/eastern flames/scripts/munction/munction.gml new file mode 100644 index 0000000..289b253 --- /dev/null +++ b/eastern flames/scripts/munction/munction.gml @@ -0,0 +1,3 @@ +function munction(func) { + return method(undefined, func); +} \ No newline at end of file diff --git a/eastern flames/scripts/munction/munction.yy b/eastern flames/scripts/munction/munction.yy new file mode 100644 index 0000000..a16ab28 --- /dev/null +++ b/eastern flames/scripts/munction/munction.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "munction", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/music_set/music_set.gml b/eastern flames/scripts/music_set/music_set.gml new file mode 100644 index 0000000..6898fd3 --- /dev/null +++ b/eastern flames/scripts/music_set/music_set.gml @@ -0,0 +1,24 @@ +function music_set(music, face=MUSFACE.FRONT, swaptype=MUSSWAP.INSTANT) { + if music == global.playingmusic { + global.playingmusictime = audio_sound_get_track_position(global.playingmusicdata); + audio_stop_sound(global.playingmusicdata); + global.playingmusicdata = audio_play_sound(music.audio[face], 0, true); + audio_sound_set_track_position(global.playingmusicdata, global.playingmusictime); + } else { + global.playingmusic = music; + audio_stop_sound(global.playingmusicdata); + global.playingmusicdata = audio_play_sound(music.audio[face], 0, true); + } + +} + +enum MUSSWAP { + INSTANT, + FADE, + GLITCH, +} + +enum MUSFACE { + FRONT, + BACK, +} \ No newline at end of file diff --git a/eastern flames/scripts/music_set/music_set.yy b/eastern flames/scripts/music_set/music_set.yy new file mode 100644 index 0000000..b5c82b5 --- /dev/null +++ b/eastern flames/scripts/music_set/music_set.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "Music", + "path": "folders/Music.yy", + }, + "resourceVersion": "1.0", + "name": "music_set", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/nam/nam.gml b/eastern flames/scripts/nam/nam.gml new file mode 100644 index 0000000..0f57472 --- /dev/null +++ b/eastern flames/scripts/nam/nam.gml @@ -0,0 +1,6 @@ +function nam(anything, val) { //not anything mod + return !(anything%val); +} +function ngm(val) { //not global.count mod + return !(global.count%val); +} \ No newline at end of file diff --git a/eastern flames/scripts/nam/nam.yy b/eastern flames/scripts/nam/nam.yy new file mode 100644 index 0000000..76de751 --- /dev/null +++ b/eastern flames/scripts/nam/nam.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "nam", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/ncm/ncm.gml b/eastern flames/scripts/ncm/ncm.gml new file mode 100644 index 0000000..8993f3d --- /dev/null +++ b/eastern flames/scripts/ncm/ncm.gml @@ -0,0 +1,29 @@ +function ncm(val) { //not count mod value + return !(count%val); +} + +function ncmr(val, low, high) { //not count mod value within range + return ncm(val) && count >= low && count <= high; +} + +function ncml(val, low, repeats, count_=count) { //not count mod value above minimum repeated + //log(count); + return nam(count_,val) && //if count value is not anything moddable to the provided value + count_ >= low && //if count is greater than the floor value provided + count_ <= low+val*repeats; // +} +function ncmltime(val, low, repeats) { //not count mod value above minimum repeated duration + //log(count); + return low+val*repeats; +} + +function fdx(val, divisor, multiplier=1) { //floor divided by x + return floor(val/divisor)*multiplier; +} + +function itneg() { //tells you if youre on an odd iteration + return (iterations%2)*-2+1; +} +function ineg(i) { //tells you if youre on an odd i + return (i%2)*-2+1; +} \ No newline at end of file diff --git a/eastern flames/scripts/ncm/ncm.yy b/eastern flames/scripts/ncm/ncm.yy new file mode 100644 index 0000000..8051b5c --- /dev/null +++ b/eastern flames/scripts/ncm/ncm.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "ncm", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/point_me/point_me.gml b/eastern flames/scripts/point_me/point_me.gml new file mode 100644 index 0000000..177535b --- /dev/null +++ b/eastern flames/scripts/point_me/point_me.gml @@ -0,0 +1,3 @@ +function point_me(xdif=0, ydif=0, myxdif=0, myydif=0) { + return point_direction(x+xdif, y+ydif, ISAAC.visiblex+myxdif, ISAAC.visibley+myydif); +} \ No newline at end of file diff --git a/eastern flames/scripts/point_me/point_me.yy b/eastern flames/scripts/point_me/point_me.yy new file mode 100644 index 0000000..f6028b0 --- /dev/null +++ b/eastern flames/scripts/point_me/point_me.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "point_me", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/rescale/rescale.gml b/eastern flames/scripts/rescale/rescale.gml new file mode 100644 index 0000000..167c503 --- /dev/null +++ b/eastern flames/scripts/rescale/rescale.gml @@ -0,0 +1,4 @@ +function rescale(instance, scale) { + instance.image_xscale = scale; + instance.image_yscale = scale; +} \ No newline at end of file diff --git a/eastern flames/scripts/rescale/rescale.yy b/eastern flames/scripts/rescale/rescale.yy new file mode 100644 index 0000000..57ea3a8 --- /dev/null +++ b/eastern flames/scripts/rescale/rescale.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "rescale", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/se_play/c_clearenemies.yy b/eastern flames/scripts/se_play/c_clearenemies.yy new file mode 100644 index 0000000..5d07c49 --- /dev/null +++ b/eastern flames/scripts/se_play/c_clearenemies.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "Scripts", + "path": "folders/Scripts.yy", + }, + "resourceVersion": "1.0", + "name": "c_clearenemies", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/se_play/se_play.gml b/eastern flames/scripts/se_play/se_play.gml new file mode 100644 index 0000000..a0834e5 --- /dev/null +++ b/eastern flames/scripts/se_play/se_play.gml @@ -0,0 +1,3 @@ +function se_play(soundeffect) { + return audio_play_sound(soundeffect, 0, false); +} \ No newline at end of file diff --git a/eastern flames/scripts/se_play/se_play.yy b/eastern flames/scripts/se_play/se_play.yy new file mode 100644 index 0000000..5c888db --- /dev/null +++ b/eastern flames/scripts/se_play/se_play.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "Scripts", + "path": "folders/Scripts.yy", + }, + "resourceVersion": "1.0", + "name": "se_play", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/sinmult/sinmult.gml b/eastern flames/scripts/sinmult/sinmult.gml new file mode 100644 index 0000000..697b49a --- /dev/null +++ b/eastern flames/scripts/sinmult/sinmult.gml @@ -0,0 +1,6 @@ +function sinmult(val, time, multiplier) { + return sin(val/(time/3))*multiplier; +} +function cosmult(val, time, multiplier) { + return cos(val/(time/3))*multiplier; +} \ No newline at end of file diff --git a/eastern flames/scripts/sinmult/sinmult.yy b/eastern flames/scripts/sinmult/sinmult.yy new file mode 100644 index 0000000..0686afe --- /dev/null +++ b/eastern flames/scripts/sinmult/sinmult.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "data", + "path": "folders/Scripts/data.yy", + }, + "resourceVersion": "1.0", + "name": "sinmult", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/song/song.gml b/eastern flames/scripts/song/song.gml new file mode 100644 index 0000000..c024fd1 --- /dev/null +++ b/eastern flames/scripts/song/song.gml @@ -0,0 +1,10 @@ +function song(name_="among us trap remix", shortname="autr", audio_=[m_null], bpm_=100, description_="when the im.ogg", maps_=[sm_null], loopstart=0,loopend=audio_sound_length(audio_[0])) constructor { + name = name_; + audio = audio_; + bpm = bpm_; + description = description_; + maps = maps_; + self.loopStart = loopstart; + self.loopEnd = loopend; + variable_struct_set(global.tracklist, shortname, self); +} \ No newline at end of file diff --git a/eastern flames/scripts/song/song.yy b/eastern flames/scripts/song/song.yy new file mode 100644 index 0000000..22d703e --- /dev/null +++ b/eastern flames/scripts/song/song.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "Music", + "path": "folders/Music.yy", + }, + "resourceVersion": "1.0", + "name": "song", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/string_contains/string_contains.gml b/eastern flames/scripts/string_contains/string_contains.gml new file mode 100644 index 0000000..a96119e --- /dev/null +++ b/eastern flames/scripts/string_contains/string_contains.gml @@ -0,0 +1,13 @@ +function string_contains(str,contains){ + for(var i = 1; i <= string_length(str)+1; i++){ + for(var j = 1; j <= string_length(contains)+1;j++){ + if(string_char_at(str,i+j-1) != string_char_at(contains,j)){ + break; + } + if(j == string_length(contains)){ + return true; + } + } + } + return false; +} \ No newline at end of file diff --git a/eastern flames/scripts/string_contains/string_contains.yy b/eastern flames/scripts/string_contains/string_contains.yy new file mode 100644 index 0000000..a35c87d --- /dev/null +++ b/eastern flames/scripts/string_contains/string_contains.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "string_contains", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/string_extend_digits/string_extend_digits.gml b/eastern flames/scripts/string_extend_digits/string_extend_digits.gml new file mode 100644 index 0000000..ffb0914 --- /dev/null +++ b/eastern flames/scripts/string_extend_digits/string_extend_digits.gml @@ -0,0 +1,27 @@ +function string_extend_digits(str, integers, decimals=0) { + var ints = 0; + var decs = 0; + if decimals decimals++; + var i; + for (i=0; i i+1 { + ints++; + } + } + integers -= ints; + decimals -= decs; + while integers { + str = "0" + str; + integers--; + } + while decimals { + if !string_pos(".", str) { + str = str + "."; + } + str = str + "0"; + decimals--; + } + return str; +} \ No newline at end of file diff --git a/eastern flames/scripts/string_extend_digits/string_extend_digits.yy b/eastern flames/scripts/string_extend_digits/string_extend_digits.yy new file mode 100644 index 0000000..88fa57d --- /dev/null +++ b/eastern flames/scripts/string_extend_digits/string_extend_digits.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "string_extend_digits", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/tag/tag.gml b/eastern flames/scripts/tag/tag.gml new file mode 100644 index 0000000..0bfb2a1 --- /dev/null +++ b/eastern flames/scripts/tag/tag.gml @@ -0,0 +1,32 @@ +global.tags = ds_map_create(); + +function tag(tagid, objectid=id) { + if !ds_map_exists(global.tags, tagid) { + global.tags[?tagid] = []; + } + array_push(global.tags[?tagid], objectid); +} + +function with_tag(tag_, function_) { + var j; + for (j=0; j 1) + +#macro nu a = new + diff --git a/eastern flames/scripts/utils/utils.yy b/eastern flames/scripts/utils/utils.yy new file mode 100644 index 0000000..a5bf7af --- /dev/null +++ b/eastern flames/scripts/utils/utils.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "convenience", + "path": "folders/Scripts/convenience.yy", + }, + "resourceVersion": "1.0", + "name": "utils", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/vec2/vec2.gml b/eastern flames/scripts/vec2/vec2.gml new file mode 100644 index 0000000..966e162 --- /dev/null +++ b/eastern flames/scripts/vec2/vec2.gml @@ -0,0 +1,4 @@ +function vec2(x_=0, y_=0) constructor { + x = x_; + y = y_; +} \ No newline at end of file diff --git a/eastern flames/scripts/vec2/vec2.yy b/eastern flames/scripts/vec2/vec2.yy new file mode 100644 index 0000000..7777e57 --- /dev/null +++ b/eastern flames/scripts/vec2/vec2.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "constructors", + "path": "folders/Scripts/constructors.yy", + }, + "resourceVersion": "1.0", + "name": "vec2", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/vlambeer/vlambeer.gml b/eastern flames/scripts/vlambeer/vlambeer.gml new file mode 100644 index 0000000..a86d3f6 --- /dev/null +++ b/eastern flames/scripts/vlambeer/vlambeer.gml @@ -0,0 +1,28 @@ +// Script assets have changed for v2.3.0 see +// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information +function c_screenshake(_amplitude,_length){ + if(_amplitude == infinity){ + _amplitude = 1000 + } + with(instance_create(0,0,o_screenshake)){ + length = _length; + amplitude = _amplitude; + } +} +function c_hitpause(mstime){ + var initialtime = get_timer(); + while(true){ + if(initialtime+(mstime*1000) < get_timer()){ + return; + } + } +} +///flash(surface, duration, colour); +function c_flash(_surface/*:surface*/, _duration/*:number*/, _color/*:any*/){ + with(instance_create(0,0,o_flash)){ + surface = other._surface; + duration = other._duration; + color = other._color + } +} + \ No newline at end of file diff --git a/eastern flames/scripts/vlambeer/vlambeer.yy b/eastern flames/scripts/vlambeer/vlambeer.yy new file mode 100644 index 0000000..40edadc --- /dev/null +++ b/eastern flames/scripts/vlambeer/vlambeer.yy @@ -0,0 +1,12 @@ +{ + "isDnD": false, + "isCompatibility": false, + "parent": { + "name": "vlambeer", + "path": "folders/Scripts/drawing/vlambeer.yy", + }, + "resourceVersion": "1.0", + "name": "vlambeer", + "tags": [], + "resourceType": "GMScript", +} \ No newline at end of file diff --git a/eastern flames/scripts/with_array/with_array.gml b/eastern flames/scripts/with_array/with_array.gml new file mode 100644 index 0000000..7423980 --- /dev/null +++ b/eastern flames/scripts/with_array/with_array.gml @@ -0,0 +1,6 @@ +function with_array(objects, function_) { + var j; + for (j=0; j