finalized JSON data saving

JSON-implementation
Max Lange 8 years ago
parent 6c4c48dbaf
commit 3ffe1d029a

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.5962254846146301,
"anchorx": 11,
"x_pos": 0.006538285402270971,
"anchory": 529
},
"targets": [
{
"pos_x": 192.74511131686182,
"pos_y": 407.3450649917651,
"pos_xper": 0.10198154037929197,
"chooser": true,
"kill_entity": false,
"timer": 14911,
"pos_yper": 0.38794768094453824,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1738.1894050130202,
"pos_y": 14.265979294817999,
"pos_xper": 0.9196769338693228,
"chooser": true,
"kill_entity": false,
"timer": 15312,
"pos_yper": 0.013586646947445713,
"inscreen": false,
"gothit": false
},
{
"pos_x": 1645.4088153398757,
"pos_y": 995.0051259388391,
"pos_xper": 0.870586674783003,
"chooser": true,
"kill_entity": false,
"timer": 15428,
"pos_yper": 0.9476239294655611,
"inscreen": false,
"gothit": false
},
{
"pos_x": 859.2797757716456,
"pos_y": 41.383825279029026,
"pos_xper": 0.4546453840061617,
"chooser": true,
"kill_entity": false,
"timer": 14805,
"pos_yper": 0.039413166932408594,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1819.875314880344,
"pos_y": 762.3059975367354,
"pos_xper": 0.962896992000182,
"chooser": true,
"kill_entity": false,
"timer": 15499,
"pos_yper": 0.7260057119397479,
"inscreen": false,
"gothit": false
}
]
}

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.8627741670853752,
"anchorx": 746,
"x_pos": 0.4322113114160422,
"anchory": 766
},
"targets": [
{
"pos_x": 1259.9748124126409,
"pos_y": 226.10202156313136,
"pos_xper": 0.6666533399008682,
"chooser": false,
"kill_entity": false,
"timer": 5045,
"pos_yper": 0.21533525863155367,
"inscreen": true,
"gothit": false
},
{
"pos_x": 602.0126361333652,
"pos_y": 389.6558162913776,
"pos_xper": 0.31852520430336784,
"chooser": false,
"kill_entity": false,
"timer": 4574,
"pos_yper": 0.37110077742035963,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1208.361751848981,
"pos_y": 306.0158401188983,
"pos_xper": 0.639344842248138,
"chooser": false,
"kill_entity": false,
"timer": 4630,
"pos_yper": 0.29144365725609367,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1500.5480610012135,
"pos_y": 887.4977389881259,
"pos_xper": 0.7939407730165151,
"chooser": false,
"kill_entity": false,
"timer": 4719,
"pos_yper": 0.8452359418934532,
"inscreen": true,
"gothit": false
},
{
"pos_x": 564.6367778268188,
"pos_y": 431.7535796072261,
"pos_xper": 0.29874961789778776,
"chooser": false,
"kill_entity": false,
"timer": 5099,
"pos_yper": 0.4111938853402153,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.2952987968515459,
"anchorx": 533,
"x_pos": 0.3086092946001434,
"anchory": 262
},
"targets": [
{
"pos_x": 840.6045525273637,
"pos_y": 12.057419901778498,
"pos_xper": 0.44476431350654166,
"chooser": false,
"kill_entity": false,
"timer": 4959,
"pos_yper": 0.011483257049312856,
"inscreen": true,
"gothit": false
},
{
"pos_x": 536.6140365890209,
"pos_y": 95.99947693935353,
"pos_xper": 0.28392277068202165,
"chooser": false,
"kill_entity": false,
"timer": 4647,
"pos_yper": 0.09142807327557478,
"inscreen": true,
"gothit": false
},
{
"pos_x": 541.9550874678257,
"pos_y": 146.14800723754666,
"pos_xper": 0.2867487235279501,
"chooser": false,
"kill_entity": false,
"timer": 5023,
"pos_yper": 0.13918857832147302,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1272.576935766192,
"pos_y": 945.4241725790133,
"pos_xper": 0.6733211300350223,
"chooser": false,
"kill_entity": false,
"timer": 5422,
"pos_yper": 0.9004039738847746,
"inscreen": true,
"gothit": false
},
{
"pos_x": 108.3811500600481,
"pos_y": 342.4810167313304,
"pos_xper": 0.05734452384129529,
"chooser": false,
"kill_entity": false,
"timer": 4845,
"pos_yper": 0.3261723968869813,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.361199561712627,
"anchorx": 1652,
"x_pos": 0.956154072281788,
"anchory": 320
},
"targets": [
{
"pos_x": 1447.9339766840014,
"pos_y": 288.9959132420225,
"pos_xper": 0.7661026331661384,
"chooser": false,
"kill_entity": false,
"timer": 5722,
"pos_yper": 0.27523420308764046,
"inscreen": true,
"gothit": false
},
{
"pos_x": 225.9615263071484,
"pos_y": 320.1086937542959,
"pos_xper": 0.11955636312547535,
"chooser": false,
"kill_entity": false,
"timer": 5160,
"pos_yper": 0.304865422623139,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1590.4848829568587,
"pos_y": 1003.5391978646514,
"pos_xper": 0.841526393098867,
"chooser": false,
"kill_entity": false,
"timer": 5030,
"pos_yper": 0.9557516170139537,
"inscreen": true,
"gothit": false
},
{
"pos_x": 983.3067910946158,
"pos_y": 995.804242316038,
"pos_xper": 0.5202681434363047,
"chooser": false,
"kill_entity": false,
"timer": 5283,
"pos_yper": 0.9483849926819409,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1606.1446524754251,
"pos_y": 785.4828029960273,
"pos_xper": 0.8498119854367329,
"chooser": false,
"kill_entity": false,
"timer": 5662,
"pos_yper": 0.7480788599962165,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.5116669149099174,
"anchorx": 1371,
"x_pos": 0.7937797066355374,
"anchory": 454
},
"targets": [
{
"pos_x": 514.8885009269158,
"pos_y": 312.3226966005269,
"pos_xper": 0.2724277782682094,
"chooser": false,
"kill_entity": false,
"timer": 5764,
"pos_yper": 0.29745018723859706,
"inscreen": true,
"gothit": false
},
{
"pos_x": 604.51501858859,
"pos_y": 627.0156772463722,
"pos_xper": 0.3198492161844392,
"chooser": false,
"kill_entity": false,
"timer": 5730,
"pos_yper": 0.5971577878536878,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1175.3960878813232,
"pos_y": 386.5673368281188,
"pos_xper": 0.6219026920007001,
"chooser": false,
"kill_entity": false,
"timer": 5584,
"pos_yper": 0.3681593684077322,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1641.0001263435406,
"pos_y": 132.69347242285403,
"pos_xper": 0.8682540351024024,
"chooser": false,
"kill_entity": false,
"timer": 5939,
"pos_yper": 0.12637473564081336,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1498.9513532837843,
"pos_y": 808.8019959349243,
"pos_xper": 0.7930959541184044,
"chooser": false,
"kill_entity": false,
"timer": 5961,
"pos_yper": 0.7702876151761184,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.3967364832899276,
"anchorx": 369,
"x_pos": 0.21363821939184624,
"anchory": 352
},
"targets": [
{
"pos_x": 159.0656166298992,
"pos_y": 879.5347783082478,
"pos_xper": 0.08416170192058159,
"chooser": false,
"kill_entity": false,
"timer": 5927,
"pos_yper": 0.8376521698173789,
"inscreen": true,
"gothit": false
},
{
"pos_x": 757.3136827424116,
"pos_y": 195.6357823642085,
"pos_xper": 0.40069507023408024,
"chooser": false,
"kill_entity": false,
"timer": 5767,
"pos_yper": 0.18631979272781762,
"inscreen": true,
"gothit": false
},
{
"pos_x": 580.7327590366116,
"pos_y": 76.09238571139083,
"pos_xper": 0.30726601007228127,
"chooser": false,
"kill_entity": false,
"timer": 5543,
"pos_yper": 0.07246893877275318,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1212.031097336783,
"pos_y": 979.8536230270848,
"pos_xper": 0.6412862948871868,
"chooser": false,
"kill_entity": false,
"timer": 5948,
"pos_yper": 0.9331939266924617,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1096.5099778715178,
"pos_y": 580.2104399968944,
"pos_xper": 0.5801640094558295,
"chooser": false,
"kill_entity": false,
"timer": 5945,
"pos_yper": 0.5525813714256137,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.40654746791753915,
"anchorx": 94,
"x_pos": 0.0549293458595046,
"anchory": 361
},
"targets": [
{
"pos_x": 927.0818722279864,
"pos_y": 779.9144870262267,
"pos_xper": 0.4905195091153367,
"chooser": false,
"kill_entity": false,
"timer": 6011,
"pos_yper": 0.7427757019297396,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1206.2244352228277,
"pos_y": 774.6113945729289,
"pos_xper": 0.638213986890385,
"chooser": false,
"kill_entity": false,
"timer": 5632,
"pos_yper": 0.7377251376885038,
"inscreen": true,
"gothit": false
},
{
"pos_x": 188.9393402412415,
"pos_y": 789.2248537266288,
"pos_xper": 0.09996790488954577,
"chooser": false,
"kill_entity": false,
"timer": 6493,
"pos_yper": 0.7516427178348846,
"inscreen": true,
"gothit": false
},
{
"pos_x": 631.1595833395236,
"pos_y": 664.9189251597509,
"pos_xper": 0.3339468694918114,
"chooser": false,
"kill_entity": false,
"timer": 6006,
"pos_yper": 0.6332561191997628,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1212.1081119771238,
"pos_y": 442.29525215227346,
"pos_xper": 0.6413270433741396,
"chooser": false,
"kill_entity": false,
"timer": 6097,
"pos_yper": 0.42123357347835566,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

@ -0,0 +1,65 @@
{
"station": {
"y_pos": 0.16604465850019,
"anchorx": 379,
"x_pos": 0.21964365720257617,
"anchory": 147
},
"targets": [
{
"pos_x": 1231.70200638317,
"pos_y": 56.951469933928635,
"pos_xper": 0.6516941832715185,
"chooser": false,
"kill_entity": false,
"timer": 6546,
"pos_yper": 0.05423949517517013,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1317.4750649732946,
"pos_y": 218.8232681610952,
"pos_xper": 0.6970767539541242,
"chooser": false,
"kill_entity": false,
"timer": 6171,
"pos_yper": 0.20840311253437638,
"inscreen": true,
"gothit": false
},
{
"pos_x": 737.9918577243556,
"pos_y": 251.4583990277367,
"pos_xper": 0.3904718823938389,
"chooser": false,
"kill_entity": false,
"timer": 6284,
"pos_yper": 0.23948418955022543,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1265.658474323737,
"pos_y": 278.5373064695809,
"pos_xper": 0.6696605684252577,
"chooser": false,
"kill_entity": false,
"timer": 5945,
"pos_yper": 0.2652736252091247,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1630.903697420273,
"pos_y": 149.5596426406981,
"pos_xper": 0.8629120092170756,
"chooser": false,
"kill_entity": false,
"timer": 6218,
"pos_yper": 0.14243775489590293,
"inscreen": true,
"gothit": false
}
]
}

@ -10,13 +10,13 @@
"6",
"8"
],
"player.rel_y": 0.6481389934484809,
"player.rel_y": 0.07938996323793225,
"fullscreen": false,
"debugscreen": true,
"screeny_current": 540,
"player.rel_x": 0.38073049264701764,
"screenx_current": 960,
"player.timeplay": 16324,
"debugscreen": false,
"screeny_current": 500,
"player.rel_x": 0.004415121093473239,
"screenx_current": 500,
"player.timeplay": 6887,
"debugmode": true,
"sounds.music.volume": 0.0
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,54 +0,0 @@
{
"station": {
"y_pos": 0.8733439708890924,
"anchorx": 799,
"x_pos": 0.46258245708631107,
"anchory": 775
},
"targets": [
{
"pos_x": 486.0641859090289,
"pos_y": 616.5782747093086,
"pos_xper": 0.2571768179412851,
"chooser": false,
"kill_entity": false,
"timer": 24545,
"pos_yper": 0.5872174044850559,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1302.6494926949524,
"pos_y": 42.94287348794672,
"pos_xper": 0.6892325358174352,
"chooser": false,
"kill_entity": false,
"timer": 24182,
"pos_yper": 0.04089797475042545,
"inscreen": false,
"gothit": false
},
{
"pos_x": 1481.8044637283426,
"pos_y": 779.1142239488704,
"pos_xper": 0.7840235257821918,
"chooser": false,
"kill_entity": false,
"timer": 24584,
"pos_yper": 0.7420135466179718,
"inscreen": false,
"gothit": false
},
{
"pos_x": 1468.5135085728755,
"pos_y": 25.603063978246965,
"pos_xper": 0.7769912743771829,
"chooser": false,
"kill_entity": false,
"timer": 24489,
"pos_yper": 0.0243838704554733,
"inscreen": false,
"gothit": false
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,65 +0,0 @@
{
"station": {
"y_pos": 0.6080225056398504,
"anchorx": 685,
"x_pos": 0.396902060855469,
"anchory": 539
},
"targets": [
{
"pos_x": 1403.940910946612,
"pos_y": 186.71062434526826,
"pos_xper": 0.7428258788077312,
"chooser": false,
"kill_entity": false,
"timer": 2939,
"pos_yper": 0.17781964223358881,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1070.9715094131113,
"pos_y": 606.718732344275,
"pos_xper": 0.5666515922820695,
"chooser": false,
"kill_entity": false,
"timer": 2739,
"pos_yper": 0.5778273641374048,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1886.8673256090499,
"pos_y": 343.2075648607695,
"pos_xper": 0.9983425003222486,
"chooser": false,
"kill_entity": false,
"timer": 3355,
"pos_yper": 0.3268643474864471,
"inscreen": true,
"gothit": false
},
{
"pos_x": 442.69554742551725,
"pos_y": 15.030245367864554,
"pos_xper": 0.23423044837328955,
"chooser": false,
"kill_entity": false,
"timer": 3666,
"pos_yper": 0.014314519397966241,
"inscreen": true,
"gothit": false
},
{
"pos_x": 825.5226551214901,
"pos_y": 391.6007914096798,
"pos_xper": 0.436784473609254,
"chooser": false,
"kill_entity": false,
"timer": 2785,
"pos_yper": 0.37295313467588553,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,65 +0,0 @@
{
"station": {
"y_pos": 0.6199039973012161,
"anchorx": 482,
"x_pos": 0.2793754429561194,
"anchory": 550
},
"targets": [
{
"pos_x": 2.33127079199574,
"pos_y": 876.2839843114012,
"pos_xper": 0.0012334766095215555,
"chooser": false,
"kill_entity": false,
"timer": 3687,
"pos_yper": 0.8345561755346679,
"inscreen": true,
"gothit": false
},
{
"pos_x": 961.3983220118577,
"pos_y": 217.1261021324685,
"pos_xper": 0.5086763608528347,
"chooser": false,
"kill_entity": false,
"timer": 3928,
"pos_yper": 0.2067867639356843,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1433.5606579786315,
"pos_y": 682.8087759292304,
"pos_xper": 0.7584977026341966,
"chooser": false,
"kill_entity": false,
"timer": 4017,
"pos_yper": 0.6502940723135527,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1427.5773715732353,
"pos_y": 762.9338522464246,
"pos_xper": 0.7553319426313414,
"chooser": false,
"kill_entity": false,
"timer": 3853,
"pos_yper": 0.7266036688061187,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1223.3403716691275,
"pos_y": 366.09897849036724,
"pos_xper": 0.6472700379201733,
"chooser": false,
"kill_entity": false,
"timer": 4270,
"pos_yper": 0.34866569380034973,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,65 +0,0 @@
{
"station": {
"y_pos": 0.4251774945420381,
"anchorx": 1061,
"x_pos": 0.6142867488419413,
"anchory": 377
},
"targets": [
{
"pos_x": 780.9617871541533,
"pos_y": 185.58705987575252,
"pos_xper": 0.4132072947905573,
"chooser": false,
"kill_entity": false,
"timer": 4199,
"pos_yper": 0.17674958083405,
"inscreen": true,
"gothit": false
},
{
"pos_x": 398.39441332035074,
"pos_y": 519.1455634009924,
"pos_xper": 0.21079069487849245,
"chooser": false,
"kill_entity": false,
"timer": 4347,
"pos_yper": 0.49442434609618324,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1680.4891746629492,
"pos_y": 623.4070622423496,
"pos_xper": 0.8891477114618779,
"chooser": false,
"kill_entity": false,
"timer": 4594,
"pos_yper": 0.5937210116593806,
"inscreen": true,
"gothit": false
},
{
"pos_x": 177.8203008704859,
"pos_y": 1017.8839539025553,
"pos_xper": 0.09408481527538937,
"chooser": false,
"kill_entity": false,
"timer": 4800,
"pos_yper": 0.969413289431005,
"inscreen": true,
"gothit": false
},
{
"pos_x": 249.8255854425718,
"pos_y": 367.3441421211714,
"pos_xper": 0.13218284944051417,
"chooser": false,
"kill_entity": false,
"timer": 4386,
"pos_yper": 0.3498515639249251,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,65 +0,0 @@
{
"station": {
"y_pos": 0.4558659060693988,
"anchorx": 735,
"x_pos": 0.42561252313828934,
"anchory": 404
},
"targets": [
{
"pos_x": 307.4666834357558,
"pos_y": 745.299164576784,
"pos_xper": 0.16268078488664328,
"chooser": false,
"kill_entity": false,
"timer": 5347,
"pos_yper": 0.7098087281683657,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1508.4378466332696,
"pos_y": 355.44798499503054,
"pos_xper": 0.7981152627689257,
"chooser": false,
"kill_entity": false,
"timer": 5307,
"pos_yper": 0.33852189047145764,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1430.511995567234,
"pos_y": 758.9372561939036,
"pos_xper": 0.7568846537392773,
"chooser": false,
"kill_entity": false,
"timer": 4496,
"pos_yper": 0.7227973868513368,
"inscreen": true,
"gothit": false
},
{
"pos_x": 165.69482224190054,
"pos_y": 242.40707198001058,
"pos_xper": 0.08766921811740769,
"chooser": false,
"kill_entity": false,
"timer": 4577,
"pos_yper": 0.23086387807620057,
"inscreen": true,
"gothit": false
},
{
"pos_x": 295.85635362239424,
"pos_y": 151.8564280580756,
"pos_xper": 0.15653775323936203,
"chooser": false,
"kill_entity": false,
"timer": 5368,
"pos_yper": 0.14462516957911964,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,65 +0,0 @@
{
"station": {
"y_pos": 0.4084118079622451,
"anchorx": 1589,
"x_pos": 0.919598944559021,
"anchory": 362
},
"targets": [
{
"pos_x": 1600.2930070131524,
"pos_y": 52.963692263346196,
"pos_xper": 0.8467158767265357,
"chooser": false,
"kill_entity": false,
"timer": 4938,
"pos_yper": 0.05044161167937733,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1396.4288000788854,
"pos_y": 301.2590949513877,
"pos_xper": 0.7388512169729552,
"chooser": false,
"kill_entity": false,
"timer": 5036,
"pos_yper": 0.28691342376322637,
"inscreen": true,
"gothit": false
},
{
"pos_x": 320.7250630141663,
"pos_y": 741.1712487622113,
"pos_xper": 0.16969580053659594,
"chooser": false,
"kill_entity": false,
"timer": 5672,
"pos_yper": 0.7058773797735346,
"inscreen": true,
"gothit": false
},
{
"pos_x": 524.2526885771264,
"pos_y": 685.190365686859,
"pos_xper": 0.27738237490853246,
"chooser": false,
"kill_entity": false,
"timer": 5105,
"pos_yper": 0.6525622530351037,
"inscreen": true,
"gothit": false
},
{
"pos_x": 322.97983748836106,
"pos_y": 294.7887429930601,
"pos_xper": 0.17088880290389474,
"chooser": false,
"kill_entity": false,
"timer": 5506,
"pos_yper": 0.2807511838029144,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,65 +0,0 @@
{
"station": {
"y_pos": 0.9727260281815093,
"anchorx": 899,
"x_pos": 0.5203041484571055,
"anchory": 863
},
"targets": [
{
"pos_x": 623.1293276673483,
"pos_y": 509.08920572476853,
"pos_xper": 0.32969805696685095,
"chooser": false,
"kill_entity": false,
"timer": 5514,
"pos_yper": 0.48484686259501764,
"inscreen": true,
"gothit": false
},
{
"pos_x": 689.9727341979326,
"pos_y": 646.7367742680927,
"pos_xper": 0.36506493872906487,
"chooser": false,
"kill_entity": false,
"timer": 5492,
"pos_yper": 0.6159397850172312,
"inscreen": true,
"gothit": false
},
{
"pos_x": 30.086071142227805,
"pos_y": 923.0965928746181,
"pos_xper": 0.015918556159908892,
"chooser": false,
"kill_entity": false,
"timer": 5132,
"pos_yper": 0.879139612261541,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1725.5705891741088,
"pos_y": 633.7305939133001,
"pos_xper": 0.9130003117323328,
"chooser": false,
"kill_entity": false,
"timer": 5646,
"pos_yper": 0.6035529465840954,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1376.2653977516393,
"pos_y": 91.57760853360212,
"pos_xper": 0.7281827501331425,
"chooser": false,
"kill_entity": false,
"timer": 5651,
"pos_yper": 0.08721677003200201,
"inscreen": true,
"gothit": false
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 KiB

@ -1,65 +0,0 @@
{
"station": {
"y_pos": 0.9160862852239654,
"anchorx": 1136,
"x_pos": 0.6576268323441398,
"anchory": 813
},
"targets": [
{
"pos_x": 90.46039433409486,
"pos_y": 1011.5256363622419,
"pos_xper": 0.04786264250481209,
"chooser": false,
"kill_entity": false,
"timer": 5935,
"pos_yper": 0.9633577489164209,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1179.7144721586558,
"pos_y": 921.9372690577625,
"pos_xper": 0.6241875514066961,
"chooser": false,
"kill_entity": false,
"timer": 5642,
"pos_yper": 0.8780354943407261,
"inscreen": true,
"gothit": false
},
{
"pos_x": 189.83354768461982,
"pos_y": 113.59090169729974,
"pos_xper": 0.10044103052096287,
"chooser": false,
"kill_entity": false,
"timer": 5521,
"pos_yper": 0.10818181114028547,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1231.8126945770894,
"pos_y": 411.2263485089019,
"pos_xper": 0.6517527484534864,
"chooser": false,
"kill_entity": false,
"timer": 5556,
"pos_yper": 0.3916441414370494,
"inscreen": true,
"gothit": false
},
{
"pos_x": 1728.2078659817635,
"pos_y": 160.43406660256395,
"pos_xper": 0.9143956962866473,
"chooser": false,
"kill_entity": false,
"timer": 6020,
"pos_yper": 0.152794349145299,
"inscreen": true,
"gothit": false
}
]
}

@ -34,8 +34,12 @@ class stars():
self.screenx = screenx - self.pos.w
self.screeny = screeny - self.pos.h
# gives a percentage where star is located
self.relative_x = random.randint(-100, int(100 * (self.depth))) / 100.0
self.relative_y = random.randint(-100, int(100 * (self.depth))) / 100.0
# values between -1 and +1
self.relative_x = (random.random() * 2) - 1
self.relative_y = (random.random() * 2) - 1
# update determines absolute position
self.pointx = 0
self.pointy = 0
self.update(screenx / 1920.0)
def move(self, x, y):

@ -242,15 +242,14 @@ def upd(level):
global background
global background_pos
global konstspeed
#FIXME: fullscreenold is redundant
global fullscreenold
global fullscreen
if fullscreenold != fullscreen:
if fullscreen:
pygame.display.set_mode((screenx, screeny), pygame.FULLSCREEN)
if not fullscreen:
pygame.display.set_mode((screenx / 2, screeny / 2))
fullscreenold = fullscreen
if fullscreen:
pygame.display.set_mode((screenx, screeny), pygame.FULLSCREEN)
if not fullscreen:
pygame.display.set_mode((screenx_current, screeny_current))
upd("screenvalues")
@ -343,7 +342,7 @@ class data():
for world_name in localmap:
world_file = open("./saves/%s/%s/world.json" % (name, world_name), "w")
pygame.image.save(world_image[world_name],
"./saves/%s/%s/background.png" % (name, world_name))
"./saves/%s/%s/background.tga" % (name, world_name))
json.dump(all_world_data[world_name], world_file, indent=12)
json.dump(data, settings_file, indent=12)
@ -374,7 +373,7 @@ class data():
from . import worlds
localmap = {}
for world_name in world_names:
background_dir = "./saves/%s/%s/background.png" % (name, world_name)
background_dir = "./saves/%s/%s/background.tga" % (name, world_name)
background = pygame.image.load(background_dir)
world_data = json.load(open("./saves/%s/%s/world.json"
% (name, world_name), "r"))

Loading…
Cancel
Save