1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-16 11:41:50 +00:00
Commit Graph

138 Commits

Author SHA1 Message Date
Даниїл Григор'єв
fc33cc2fbf
Add dedicated saves storage, new fs job types
Keep track of the storage ID in each renderer Storage instance and pass
it to the IPC bridge. Jobs are dispatched to the relevant handler (only
saves/ for now) and all (de)compression is handled there.

Add dedicated fs-job types to read or write and (de)compress data
from/to the file picked by the user. Remove redundant utility functions
that used web APIs instead.
2025-04-15 01:57:00 +03:00
Даниїл Григор'єв
7ca3bf9664
Remove achievement support
Suggested by @SkimnerPhi. If needed, mods should provide their own
support for achievements. For vanilla this is dead code.
2025-04-08 15:39:14 +03:00
Даниїл Григор'єв
b057382328
Mass-rename rotater -> rotator (#51)
Rename all references of rotater to rotator, including code, styles,
assets and translation files.
2025-04-04 22:55:24 +03:00
Даниїл Григор'єв
c836589d9b
Rewrite the Electron wrapper (#47)
* Migrate Electron wrapper to ESM

Use ESM syntax for main process, move some fs usages to fs.promises,
switch to import.meta.url/import.meta.dirname to handle file paths;
clean up redundant code.

* Add TypeScript support to Electron wrapper

The support is very basic, tsc is used to transpile code. Build scripts
are modified to not copy any Electron code other than preload.cjs and
use an extremely cursed setup to call the TypeScript compiler.

* [TS] Rename platform/storage

* Rewrite Electron wrapper

MVP, missing some features from the old wrapper and most planned
features. Some of the functionality hasn't been verified.
2025-03-21 16:30:13 +02:00
Даниїл Григор'єв
3a20244e38
Use @ exclusively for root imports
Remove "root" resolve alias and now-redundant jsx-runtime alias.
2024-07-21 01:38:08 +03:00
Даниїл Григор'єв
ad8eccef55
Avoid direct HubGoals#storedShapes access
Use getShapesStored and getShapesStoredByKey when possible instead. Only
covers usages outside of hub goals.
2024-07-11 10:36:44 +03:00
Даниїл Григор'єв
1e24b11834
Fix external link handling 2024-06-20 19:46:26 +03:00
Даниїл Григор'єв
0e7082dbbd
Get rid of more Steam leftovers 2024-06-20 18:31:52 +03:00
Даниїл Григор'єв
89992e2299
Apply formatting to src/js 2024-06-20 12:59:07 +03:00
cody-ferguson
894ceab854 Remove folders and steam stuff 2024-06-19 17:12:08 -05:00
cody-ferguson
6662cb2694 Remove all references of "G_IS_STANDALONE" 2024-06-19 13:47:50 -05:00
Danyil Hryhoriev
f2596ef845 Remove cache busting
Cache busting is not required in standalone context.
2024-04-20 13:23:02 +03:00
Даниїл Григор'єв
aa49f063c3
Remove ads, analytics and Steam SSO, simplify HTML tasks (#21)
* Remove ad support, analytics and Wegame leftovers

The game may be somewhat broken in a few places, but it doesn't matter
for now. This is still not the end.

* Remove Steam SSO and demo stuff

Steam SSO is completely removed, a few things from demo like simplified
level sets are gone as well. Puzzle DLC on the other hand is now always
"owned" and will ask for a token to log in.

Removes

* Use shapez dialogs for Puzzle DLC token input

Yes, this sucks *a lot*. But it's a temporary measure, trust me :P

* Simplify HTML tasks

Removes the web (demo) index.html page and makes HTML tasks independent
of the build variant. This might not be the best solution, but it works
for now.
2024-04-16 10:25:16 +03:00
Danyil Hryhoriev
b55001dd1a Remove the restriction manager
Restriction manager is completely removed as it's only useful for demo
version. Lots of other demo-related things are left, such as ad support
or extended telemetry. This should be cleaned up later.
2024-04-13 01:51:36 +03:00
Bagel03
6db782d66a
Add Most Useful TS files (#13)
* Update Signal

* Update modal_dialogs

* Inputs

* Update factories

* Update tracked state

* Changed let to const where possible

* Add HUD typings

* improvements to typings

* fix exports not being exposed to mods

* fix signal typings

* remove TypedSignal

* fix all reported type errors

---------

Co-authored-by: Thomas B <t.ferb1@gmail.com>
Co-authored-by: EmeraldBlock <yygengjunior@gmail.com>
2023-11-17 16:02:08 -06:00
EmeraldBlock
24ceb6664d ES modules and config refactor
- switches to ES modules in gulp and src
- uses dengr's webpack configs and package.json, with modifications
- removes gulp/package.json
- removes babel stuff
- removes gulp-load-plugins, instead importing gulp plugins manually
- removes unused and trivial packages
- upgrades packages
- uses path/posix, for gulp
- removes __dirname in favor of relative urls
2023-03-04 00:46:55 -06:00
Thomas (DJ1TJOO)
2dc7f963fe
Removed china, wegame, gog and demo (#3)
* Removed build and global variables for china, wegame
* Removed google analitycs
2023-03-04 02:44:19 +02:00
tobspr
a5022443f3 Remove events connector 2022-06-28 10:41:46 +02:00
tobspr
8454a782b4 Further crazygames sdk integration 2022-06-27 17:34:43 +02:00
tobspr
a39195c972 Support for crazgames sdk 2022-06-27 17:20:01 +02:00
tobspr
56296ab88a Minor adjustments 2022-06-26 18:51:39 +02:00
tobspr
e2907a1ab8 Adjust for the summer sale 2022-06-23 19:48:53 +02:00
tobspr
4e25bf4045 Compatibility for old mods 2022-06-23 16:03:55 +02:00
tobspr
9f3cf49fad Properly render discounts 2022-06-23 14:59:09 +02:00
tobspr
5627d656cc Rebalance levels, adjustments, etc 2022-06-22 10:22:20 +02:00
tobspr
e4da0e437b Minor adjustments (incl. CSS) 2022-06-21 12:17:08 +02:00
tobspr
145f734907 Allow playing full version in browser via steam sso 2022-06-20 18:22:23 +02:00
tobspr
b446a4a915 Add missing tracking 2022-06-20 15:32:41 +02:00
tobspr
88f5c41716 Minor polishing and standlaone adjustments 2022-06-20 12:17:19 +02:00
tobspr
690483fd89 Deploy new baseline 2022-06-20 11:05:38 +02:00
tobspr
b9a72fe965 Fix missing sound 2022-06-20 11:00:20 +02:00
tobspr
482a4990ba Fix unhandled promise rejection, minor polishing 2022-06-20 06:38:52 +02:00
tobspr
c3f029d887 Add missing G_IS_DEV 2022-06-19 22:28:05 +02:00
tobspr
3ab5ca99fd 1.5.4 update (polishing + minor rebalancing) 2022-06-19 17:08:35 +02:00
tobspr
34764eca16 Allow downloading savegame in demo 2022-06-18 18:47:27 +02:00
tobspr
34ed689875 Refactor background resources loader - game should now load much faster and also reports progress while downloading resources 2022-06-18 14:43:26 +02:00
tobspr
dfa392907d Vastly improve game loading time 2022-06-17 14:52:25 +02:00
tobspr
51fcc1e470 Improve preload screen 2022-06-17 13:04:19 +02:00
tobspr
9b8789527e Update savegame imports, minor adjustments 2022-06-17 12:02:48 +02:00
tobspr
d39ae528f0 Update demo to try out timed demo 2022-06-17 09:35:55 +02:00
tobspr
e2460edb32 Allow changing abt variant 2022-06-16 19:27:20 +02:00
tobspr
24a4010935 Abt adjustments, again 2022-06-16 18:09:26 +02:00
tobspr
96ce442b69 Update favicon and improve loading time 2022-06-16 09:58:12 +02:00
tobspr
9d28a1f2f6 Further abt testing, v2 2022-06-15 21:29:10 +02:00
tobspr
0a733907d5 Minor adjustments 2022-06-15 20:25:08 +02:00
tobspr
6b0fecb4af Send steam auth ticket on game start 2022-06-15 19:57:46 +02:00
tobspr
cc835312f4 Reduce abt count 2022-06-15 16:50:04 +02:00
tobspr
f9fa3cd6a7 Minor refactorings 2022-06-15 12:27:11 +02:00
tobspr
e9e88241b4 Further abt testing 2022-06-15 11:43:04 +02:00
tobspr
ac4109a900 Fix typos 2022-06-13 20:56:18 +02:00