i am cheating

This commit is contained in:
the me 2022-08-14 19:35:57 -07:00
parent 09ade10207
commit 1c893940ac
78 changed files with 466 additions and 94 deletions

View File

@ -1,22 +1,28 @@
{
"resources": [
{"id":{"name":"draw_sprite_at","path":"scripts/draw_sprite_at/draw_sprite_at.yy",},"order":8,},
{"id":{"name":"c_inheritunit","path":"scripts/c_inheritunit/c_inheritunit.yy",},"order":5,},
{"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":"stat","path":"scripts/stat/stat.yy",},"order":3,},
{"id":{"name":"vlambeer","path":"scripts/vlambeer/vlambeer.yy",},"order":1,},
{"id":{"name":"x_unitsetup","path":"scripts/x_unitsetup/x_unitsetup.yy",},"order":0,},
{"id":{"name":"s_guy","path":"sprites/s_guy/s_guy.yy",},"order":0,},
{"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":"tiledata","path":"scripts/tiledata/tiledata.yy",},"order":4,},
{"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":"o_unit","path":"objects/o_unit/o_unit.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,},
@ -40,21 +46,23 @@
{"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":"tag","path":"scripts/tag/tag.yy",},"order":6,},
{"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":"unit","path":"scripts/unit/unit.yy",},"order":2,},
{"id":{"name":"se_play","path":"scripts/se_play/se_play.yy",},"order":5,},
{"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":"ARTICULATOR","path":"objects/ARTICULATOR/ARTICULATOR.yy",},"order":0,},
{"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":"c_null","path":"scripts/c_null/c_null.yy",},"order":4,},
{"id":{"name":"Room1","path":"rooms/Room1/Room1.yy",},"order":0,},
],
"Options": [
@ -74,28 +82,23 @@
{"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/Sprites.yy","order":0,"resourceVersion":"1.0","name":"Sprites","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Sounds.yy","order":2,"resourceVersion":"1.0","name":"Sounds","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Scripts.yy","order":3,"resourceVersion":"1.0","name":"Scripts","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Shaders.yy","order":4,"resourceVersion":"1.0","name":"Shaders","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Misc/Fonts.yy","order":2,"resourceVersion":"1.0","name":"Fonts","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Objects.yy","order":5,"resourceVersion":"1.0","name":"Objects","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Rooms.yy","order":6,"resourceVersion":"1.0","name":"Rooms","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Misc/Extensions.yy","order":1,"resourceVersion":"1.0","name":"Extensions","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Misc.yy","order":7,"resourceVersion":"1.0","name":"Misc","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Music.yy","order":1,"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",},
{"folderPath":"folders/Scripts/util/constructors.yy","order":0,"resourceVersion":"1.0","name":"constructors","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Scripts/util/convenience.yy","order":1,"resourceVersion":"1.0","name":"convenience","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Scripts/util/data.yy","order":2,"resourceVersion":"1.0","name":"data","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Scripts/util/drawing.yy","order":3,"resourceVersion":"1.0","name":"drawing","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Scripts/util/drawing/vlambeer.yy","order":1,"resourceVersion":"1.0","name":"vlambeer","tags":[],"resourceType":"GMFolder",},
{"folderPath":"folders/Scripts/util.yy","order":1,"resourceVersion":"1.0","name":"util","tags":[],"resourceType":"GMFolder",},
],
"AudioGroups": [
{"targets":-1,"resourceVersion":"1.3","name":"audiogroup_default","resourceType":"GMAudioGroup",},

View File

@ -0,0 +1,35 @@
{
"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":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
{"isDnD":false,"eventNum":72,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
],
"properties": [],
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.yy",
},
"resourceVersion": "1.0",
"name": "ARTICULATOR",
"tags": [],
"resourceType": "GMObject",
}

View File

@ -0,0 +1,2 @@
log(un);
c_inheritunit(1, 1, un.chara);

View File

@ -0,0 +1,24 @@
draw_set_color(c_white);
var i, j;
for (i=0; i<array_length(global.map); i++) {
for (j=0; j<array_length(global.map[i]); j++) {
draw_rectangle(
i*global.tilesize.x,
j*global.tilesize.y,
(i+1)*global.tilesize.x,
(j+1)*global.tilesize.y, false
);
}
}
draw_set_color(c_black);
var i, j;
for (i=0; i<array_length(global.map); i++) {
for (j=0; j<array_length(global.map[i]); j++) {
draw_rectangle(
i*global.tilesize.x,
j*global.tilesize.y,
(i+1)*global.tilesize.x-1,
(j+1)*global.tilesize.y-1, true
);
}
}

View File

@ -22,7 +22,7 @@
"overriddenProperties": [],
"parent": {
"name": "vlambeer",
"path": "folders/Scripts/drawing/vlambeer.yy",
"path": "folders/Scripts/util/drawing/vlambeer.yy",
},
"resourceVersion": "1.0",
"name": "o_flash",

View File

@ -0,0 +1,2 @@
//unitdata = new unit();
pos = new vec2(0, 0);

View File

@ -0,0 +1,3 @@
draw_self();
//draw_set_color(c_red);
//draw_circle(x, y, 5, false);

View File

@ -0,0 +1,3 @@
x = pos.x*global.tilesize.x+global.tilesize.x/2;
y = pos.y*global.tilesize.y+global.tilesize.y/2;
log(x, y);

View File

@ -0,0 +1,35 @@
{
"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",},
{"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
],
"properties": [],
"overriddenProperties": [],
"parent": {
"name": "Objects",
"path": "folders/Objects.yy",
},
"resourceVersion": "1.0",
"name": "o_unit",
"tags": [],
"resourceType": "GMObject",
}

View File

@ -0,0 +1,42 @@
This Application was made using GameMaker. GameMaker is the intellectual property of YoYo Games Ltd, a company of the United Kingdom.
THIS END USER LICENSE AGREEMENT APPLIES TO ALL USE OF THIS APPLICATION.
Scope
-----
You may:
Install and use this Application for personal, or commercial use [provided you have paid any license fee, if this applies];
You must not:
use, copy, transfer, distribute modify, adapt, merge, translate, decompile, disassemble, or reverse engineer the Application or part of it except as expressly permitted by this Licence;
remove, modify, or tamper with any copyright, trademark or other notice;
use the Application for any illegal, unlawful or immoral purposes.
Term
----
This License will end automatically if you breach any of the terms.
When this License ends you must stop all use of the Application and destroy and erase any copies you have.
Liability
---------
YoYo Games Limited ("YoYo Games") is not involved in the creation of this Application except only that it was made using GameMaker. YoYo Games warrants only that GameMaker will function satisfactorily if used properly and on the correct operating system.
YoYo Games does not warrant that the operation of the Application will be uninterrupted or error free or that errors can be corrected. You install and use the Application at your own risk and in no event will YoYo Games be liable to you for any loss or damage of any kind (except personal injury or death arising from YoYo Games' negligence) including lost profits or other consequential loss arising from the use of or inability to use the Application or from errors or deficiencies in it whether caused by negligence or otherwise.
To the maximum extent permitted by law, YoYo Games Limited excludes liability for all warranties, conditions and other terms which but for this notice would have effect.
General
-------
All copyright and other intellectual property rights in GameMaker and parts of it included in the Application belong to and vest in YoYo Games. All rights of YoYo Games are hereby asserted and reserved.
All trade marks are the property of their respective owners and YoYo Games makes no warranty or representation in respect of and has no responsibility and excludes all liability for any trade mark or third party content.
The rights granted in this license are non-exclusive.
This license does not affect your statutory rights as a consumer.
This License is governed by English Law and the parties submit to the exclusive jurisdiction of the English Courts.
If you have a problem with this Application please contact the person who made it, not YoYo Games.
Click "ACCEPT" and accept these terms to install and use this Application. If you do not accept them terms you may not continue with the installation and you must not install, use or run this software on this or any other computer.

View File

@ -1,11 +1,11 @@
{
"option_windows_display_name": "Created with GameMaker Studio 2",
"option_windows_display_name": "TOUHOU FIRE EMBLEM",
"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_version": "1.3.3.7",
"option_windows_company_info": "us",
"option_windows_product_info": "this",
"option_windows_copyright_info": "me",
"option_windows_description_info": "emblemgame",
"option_windows_display_cursor": true,
"option_windows_icon": "${base_options_dir}/windows/icons/icon.ico",
"option_windows_save_location": 0,
@ -23,12 +23,12 @@
"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_license": "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,
"option_windows_use_x64": true,
"resourceVersion": "1.1",
"name": "Windows",
"tags": [],

View File

@ -13,19 +13,22 @@
{"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",},
{"instances":[
{"properties":[],"isDnd":false,"objectId":{"name":"ARTICULATOR","path":"objects/ARTICULATOR/ARTICULATOR.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":256.0,"y":192.0,"resourceVersion":"1.0","name":"inst_54131ADF","tags":[],"resourceType":"GMRInstance",},
],"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",},
],
"inheritLayers": false,
"creationCodeFile": "",
"inheritCode": false,
"instanceCreationOrder": [],
"instanceCreationOrder": [
{"name":"inst_54131ADF","path":"rooms/Room1/Room1.yy",},
],
"inheritCreationOrder": false,
"sequenceId": null,
"roomSettings": {
"inheritRoomSettings": false,
"Width": 1366,
"Height": 768,
"Width": 640,
"Height": 360,
"persistent": false,
},
"viewSettings": {

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_contains",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_find_index",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_front",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_generate_2d",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_greatest",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_insert_array",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_remove",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "array_sum",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "bint_sort",

View File

@ -0,0 +1,8 @@
function c_inheritunit(x, y, unit_) {
var chump = instance_create(-10, -10, o_unit);
chump.data = unit_;
chump.pos.x = x;
chump.pos.y = y;
chump.sprite_index = unit_.sprite;
return chump;
}

View File

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "c_inheritunit",
"tags": [],
"resourceType": "GMScript",
}

View File

@ -2,8 +2,8 @@
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
"name": "util",
"path": "folders/Scripts/util.yy",
},
"resourceVersion": "1.0",
"name": "c_null",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "clampneg",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "collision_line_width",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "cpp",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "deep_copy",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "dir2hv",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "distabs",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "drawing",
"path": "folders/Scripts/drawing.yy",
"path": "folders/Scripts/util/drawing.yy",
},
"resourceVersion": "1.0",
"name": "draw_circle_curve",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "drawing",
"path": "folders/Scripts/drawing.yy",
"path": "folders/Scripts/util/drawing.yy",
},
"resourceVersion": "1.0",
"name": "draw_circle_width",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "drawing",
"path": "folders/Scripts/drawing.yy",
"path": "folders/Scripts/util/drawing.yy",
},
"resourceVersion": "1.0",
"name": "draw_hitbox",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "drawing",
"path": "folders/Scripts/drawing.yy",
"path": "folders/Scripts/util/drawing.yy",
},
"resourceVersion": "1.0",
"name": "draw_outline",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "drawing",
"path": "folders/Scripts/drawing.yy",
"path": "folders/Scripts/util/drawing.yy",
},
"resourceVersion": "1.0",
"name": "draw_percent",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "drawing",
"path": "folders/Scripts/drawing.yy",
"path": "folders/Scripts/util/drawing.yy",
},
"resourceVersion": "1.0",
"name": "draw_rectangle_width",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "draw_settings",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "drawing",
"path": "folders/Scripts/drawing.yy",
"path": "folders/Scripts/util/drawing.yy",
},
"resourceVersion": "1.0",
"name": "draw_sprite_at",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "easing",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "format_time",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "function_append",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "gcd",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "instance_create",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "is_oob",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "is_prime",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "keyboard_check_advanced",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "lerp_angle",

View File

@ -7,7 +7,7 @@ function log() {
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 p = new consoleEntry(r,c_black);
}
/*
var a = {};

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "log",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "mod_negative",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "msglang",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "munction",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "nam",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "ncm",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "point_me",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "rescale",

View File

@ -2,8 +2,8 @@
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
"name": "util",
"path": "folders/Scripts/util.yy",
},
"resourceVersion": "1.0",
"name": "se_play",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "sinmult",

View File

@ -0,0 +1,22 @@
//exit;
global.stats = {}
function stat(name_, fullname_, desc_, replacements_=[]) constructor {
name = name_
fullname = fullname_;
desc = desc_;
replacements = replacements_;
global.stats[$name] = self;
add = function(val) {
return new unitstat(val, name, fullname, desc, replacements)
}
}
#macro st global.stats
function unitstat(val, name_, fullname_, desc_, replacements_) : stat(name_, fullname_, desc_, replacements_) constructor {
value = val;
modifier = 0;
}
nu stat("hp", "health", "vitality");
nu stat("str", "strength", "physical power");
nu stat("def", "defense", "physical defense");

View File

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "stat",
"tags": [],
"resourceType": "GMScript",
}

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "string_contains",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "string_extend_digits",

View File

@ -2,8 +2,8 @@
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
"name": "util",
"path": "folders/Scripts/util.yy",
},
"resourceVersion": "1.0",
"name": "tag",

View File

@ -0,0 +1,13 @@
global.map = [
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
];
global.tilesize = new vec2(32, 32);
function tiledata(passable_=true) constructor {
passable = passable;
contents = [];
}

View File

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "tiledata",
"tags": [],
"resourceType": "GMScript",
}

View File

@ -0,0 +1,38 @@
//global.units = 5;
global.units = [[]];
enum ARMY {
US,
THEM,
}
//exit;
global.unitdata = {};
var mydata = {
name: "chara",
desc: "the first fallen human",
skills: ["SKILLS.LUNA"],
sprite: s_guy,
}
function unit(personaldata_, classdata_, stats_) constructor {
name = personaldata_.name;
sprite = personaldata_.sprite;
global.unitdata[$name] = self;
}
nu unit(mydata, [st.hp.add(92), st.str.add(20), st.def.add(20)]);
function archetypedata() constructor {
//PERSONALDATA AND CLASSDATA ARE THE SAME THINGS
}
function c_addunit(unit, alignment) {
//log(5);
//log(global.units);
array_push(global.units[alignment], unit);
log(global.units[alignment]);
}
c_addunit(un.chara, ARMY.US);
#macro un global.unitdata

View File

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "unit",
"tags": [],
"resourceType": "GMScript",
}

View File

@ -27,7 +27,7 @@ function foreach(array, func){
//surface_save(global.surfaces.map,"balls.png");
return 0;
});*/
exception_unhandled_handler(function(ex){
/*exception_unhandled_handler(function(ex){
var amongus = "Congratulations!";
amongus+="\nYou crashed the game!";
amongus+="\nWe tried our best to make sure it wasn't possible, but it happens.";
@ -46,7 +46,7 @@ exception_unhandled_handler(function(ex){
game_save("test");
//surface_save(global.surfaces.map,"balls.png");
return 0;
});
});*/
function ciel(value) {
return ceil(value);

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
"path": "folders/Scripts/util/convenience.yy",
},
"resourceVersion": "1.0",
"name": "utils",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "constructors",
"path": "folders/Scripts/constructors.yy",
"path": "folders/Scripts/util/constructors.yy",
},
"resourceVersion": "1.0",
"name": "vec2",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "vlambeer",
"path": "folders/Scripts/drawing/vlambeer.yy",
"path": "folders/Scripts/util/drawing/vlambeer.yy",
},
"resourceVersion": "1.0",
"name": "vlambeer",

View File

@ -3,7 +3,7 @@
"isCompatibility": false,
"parent": {
"name": "data",
"path": "folders/Scripts/data.yy",
"path": "folders/Scripts/util/data.yy",
},
"resourceVersion": "1.0",
"name": "with_array",

View File

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "x_unitsetup",
"tags": [],
"resourceType": "GMScript",
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

View File

@ -0,0 +1,79 @@
{
"bboxMode": 0,
"collisionKind": 0,
"type": 0,
"origin": 4,
"preMultiplyAlpha": false,
"edgeFiltering": false,
"collisionTolerance": 0,
"swfPrecision": 2.525,
"bbox_left": 5,
"bbox_right": 26,
"bbox_top": 1,
"bbox_bottom": 31,
"HTile": false,
"VTile": false,
"For3D": false,
"width": 32,
"height": 32,
"textureGroupId": {
"name": "Default",
"path": "texturegroups/Default",
},
"swatchColours": null,
"gridX": 0,
"gridY": 0,
"frames": [
{"compositeImage":{"FrameId":{"name":"c7b4d2b5-05bb-4c0f-8881-9b403315f06e","path":"sprites/s_guy/s_guy.yy",},"LayerId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},"images":[
{"FrameId":{"name":"c7b4d2b5-05bb-4c0f-8881-9b403315f06e","path":"sprites/s_guy/s_guy.yy",},"LayerId":{"name":"57be2f77-fa54-4438-8ed7-0073af24bc49","path":"sprites/s_guy/s_guy.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMSpriteBitmap",},
],"parent":{"name":"s_guy","path":"sprites/s_guy/s_guy.yy",},"resourceVersion":"1.0","name":"c7b4d2b5-05bb-4c0f-8881-9b403315f06e","tags":[],"resourceType":"GMSpriteFrame",},
],
"sequence": {
"spriteId": {"name":"s_guy","path":"sprites/s_guy/s_guy.yy",},
"timeUnits": 1,
"playback": 1,
"playbackSpeed": 30.0,
"playbackSpeedType": 0,
"autoRecord": true,
"volume": 1.0,
"length": 1.0,
"events": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore<MessageEventKeyframe>",},
"moments": {"Keyframes":[],"resourceVersion":"1.0","resourceType":"KeyframeStore<MomentsEventKeyframe>",},
"tracks": [
{"name":"frames","spriteId":null,"keyframes":{"Keyframes":[
{"id":"a0dd2354-2808-445b-aff6-29df2d196036","Key":0.0,"Length":1.0,"Stretch":false,"Disabled":false,"IsCreationKey":false,"Channels":{"0":{"Id":{"name":"c7b4d2b5-05bb-4c0f-8881-9b403315f06e","path":"sprites/s_guy/s_guy.yy",},"resourceVersion":"1.0","resourceType":"SpriteFrameKeyframe",},},"resourceVersion":"1.0","resourceType":"Keyframe<SpriteFrameKeyframe>",},
],"resourceVersion":"1.0","resourceType":"KeyframeStore<SpriteFrameKeyframe>",},"trackColour":0,"inheritsTrackColour":true,"builtinName":0,"traits":0,"interpolation":1,"tracks":[],"events":[],"modifiers":[],"isCreationTrack":false,"resourceVersion":"1.0","tags":[],"resourceType":"GMSpriteFramesTrack",},
],
"visibleRange": null,
"lockOrigin": false,
"showBackdrop": true,
"showBackdropImage": false,
"backdropImagePath": "",
"backdropImageOpacity": 0.5,
"backdropWidth": 1366,
"backdropHeight": 768,
"backdropXOffset": 0.0,
"backdropYOffset": 0.0,
"xorigin": 16,
"yorigin": 16,
"eventToFunction": {},
"eventStubScript": null,
"parent": {"name":"s_guy","path":"sprites/s_guy/s_guy.yy",},
"resourceVersion": "1.3",
"name": "s_guy",
"tags": [],
"resourceType": "GMSequence",
},
"layers": [
{"visible":true,"isLocked":false,"blendMode":0,"opacity":100.0,"displayName":"default","resourceVersion":"1.0","name":"57be2f77-fa54-4438-8ed7-0073af24bc49","tags":[],"resourceType":"GMImageLayer",},
],
"nineSlice": null,
"parent": {
"name": "Sprites",
"path": "folders/Sprites.yy",
},
"resourceVersion": "1.0",
"name": "s_guy",
"tags": [],
"resourceType": "GMSprite",
}