1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
Commit Graph

51 Commits

Author SHA1 Message Date
tobspr
fa25deb761
Puzzle mode (#1135)
* Add mode button to main menu

* [WIP] Add mode menu. Add factory-based gameMode creation

* Add savefile migration, serialize, deserialize

* Add hidden HUD elements, zone, and zoom, boundary constraints

* Clean up lint issues

* Add building, HUD exclusion, building exclusion, and refactor

- [WIP] Add ConstantProducer building that combines ConstantSignal
and ItemProducer functionality. Currently using temp assets.
- Add pre-placement check to the zone
- Use Rectangles for zone and boundary
- Simplify zone drawing
- Account for exclusion in savegame data
- [WIP] Add puzzle play and edit buttons in puzzle mode menu

* [WIP] Add building, component, and systems for producing and
accepting user-specified items and checking goal criteria

* Add ingame puzzle mode UI elements

- Add minimal menus in puzzle mode for back, next navigation
- Add lower menu for changing zone dimenensions

Co-authored-by: Greg Considine <gconsidine@users.noreply.github.com>
2021-04-12 14:03:47 +02:00
Tobias Springer
226149a40f Prepare the achievements update 2021-03-10 09:29:20 +01:00
Greg Considine
26b842494f
Achievements (#1087)
* [WIP] Add boilerplate for achievement implementation

* Add config.local.template.js and rm cached copy of config.local.js

* [WIP] Implement painting, cutting, rotating achievements (to log only)

* [WIP] Refactor achievements, jsdoc fixes, add npm script

- Refactor achievements to make use of Signals
- Move implemented achievement interfaces to appropriate
platform folders (SteamAchievements in currently in use
in browser wrapper for testing)
- Fix invalid jsdocs
- Add dev-standalone script to package.json scripts

* Add steam/greenworks IPC calls and optional private-artifact dependency

* Include private artifacts in standalone builds

* Uncomment appid include

* [WIP] Add steam overlay fix, add hash to artifact dependency

* Update electron, greenworks. Add task to add local config if not present

* Add more achievements, refactor achievement code

* Add receiver flexibility and more achievements
- Add check to see if necessary to create achievement and add receiver
- Add remove receiver functionality when achievement is unlocked

* Add achievements and accommodations for switching states
- Fix startup code to avoid clobbering achievements on state switch
- Add a few more achievements

* Add achievements, ids. Update names, keys for consistency

* Add play time achievements

* [WIP] Add more achievements

* Add more achievements. Add bulk achievement check signal

* [WIP] Add achievements. Start savefile migration

* Add achievements. Add savefile migration

* Remove superfluous achievement stat

* Update lock files, fix merge conflict
2021-03-10 07:33:39 +01:00
Daan Breur
944b3c011c
Added layersupport to waypoints!! (#703)
* Added layersupport to waypoints!!
It will now save what layer its made on!

* Added Migrator for 1006 to 1007

* Corrected Version Number

* Updated Comment

* Changed HUB Layer to be hardcoded
2020-12-07 12:48:30 +01:00
tobspr
b17cb6952b Update changelog and minor fixes 2020-10-31 12:19:51 +01:00
LeopoldTal
785eb31c8d
make save compressor faster (#888)
Fixes #836 by using a Map instead of an array. The Map maps the values to their indices rather than the reverse, making finding the index constant-time rather than linear, and so building the full map linear rather than quadratic. Flipping it to build the final array is also linear.
2020-10-31 12:12:05 +01:00
tobspr
8260edb373 Get rid of some todos / fixmes 2020-10-08 19:47:27 +02:00
tobspr
27242cdadf Fix toolbar color 2020-10-08 17:23:07 +02:00
tobspr
7b01db5dae Minor fixes 2020-10-08 10:41:06 +02:00
tobspr
7dccc1a844 Unlock all levels when having a legacy savegame 2020-10-07 15:02:27 +02:00
tobspr
fa27d1681f Cleanup IS_DEMO flags and introduce Restriction Manager 2020-10-07 09:48:31 +02:00
tobspr
94266173d8 Introduce game modes and get rid of global level definitions etc 2020-10-07 08:36:02 +02:00
tobspr
f841a05f52 Migrate levels 2020-09-28 12:35:43 +02:00
tobspr
f8371a96cf Make the storage its own building, add sanity checks 2020-09-23 08:59:39 +02:00
tobspr
c6eb1dad04 Rebalance the whole game, rename splitter -> balancer 2020-09-22 14:47:59 +02:00
tobspr
9075841768 Migrate old savegames 2020-09-22 09:32:31 +02:00
tobspr
bba29b8a8b Improve (rendering-) performance in DEV mode 2020-09-18 19:51:15 +02:00
tobspr
091401e52b Store wires state on save 2020-08-29 23:38:49 +02:00
tobspr
728f4ae253 Allow naming savegames 2020-08-28 22:15:12 +02:00
Bjorn Stromberg
6a447e3583 Remove enumLayer and enumItemType 2020-08-15 19:47:01 +02:00
tobspr
8c39d31c5b Optimize performance by using singletons for items 2020-08-14 13:09:10 +02:00
tobspr
5708ef385c Fix entities being incorrectly restored 2020-08-11 13:31:27 +02:00
tobspr
2203d5fc6a Improve saving speed by using crc32 instead of sha1 for checksum 2020-08-10 23:31:02 +02:00
tobspr
9701a143ec Only store changed properties for all components 2020-08-10 22:53:02 +02:00
tobspr
89294c7072 Remove instant eject flag 2020-08-10 20:32:45 +02:00
asquared31415
868cd7baf5
Mock V1000 StaticMapEntity (#550) 2020-08-10 07:38:05 +02:00
Bjorn Stromberg
79158e2b56
Remove unused code (#526) 2020-08-06 11:28:28 +02:00
Bjorn Stromberg
f79578a993
Make CI green by hiding the problem behind a sign that says FIXME (#515) 2020-08-06 11:21:12 +02:00
tobspr
bf2eee908f Refactor static map entity component to store building metaclass 2020-07-27 17:14:29 +02:00
tobspr
34ef26b289 Fix multiple issues regarding saving / restoring games 2020-07-05 16:56:01 +02:00
tobspr
64c4816194 Remove some todos 2020-06-28 20:31:22 +02:00
tobspr
84417b60a5 Fix items being stuck on belts 2020-06-27 12:50:35 +02:00
tobspr
2e266f5f21 Get rid of 'builtins' file since its useless and causes performance issues 2020-06-27 10:51:52 +02:00
tobspr
42c569d91f Implement saving and restoring belt paths 2020-06-26 18:24:02 +02:00
tobspr
5c12c605f5 Reworked waypoints 2020-06-16 10:25:31 +02:00
tobspr
3af6532d32 Refactor pinned shapes and make them smart, closes #72 2020-06-12 18:38:13 +02:00
tobspr
23db5b117e Migrate old savegames 2020-06-01 12:49:04 +02:00
tobspr
3071bba633 store waypoints in savegame 2020-05-28 20:03:35 +02:00
tobspr
e0facaf788 Fix keys being stuck, show savegame levels in main menu 2020-05-28 14:53:11 +02:00
tobspr
0cd324c82b Initial support for blueprints (Buggy) 2020-05-27 14:30:59 +02:00
tobspr
050466df19 Fix eslint errors 2020-05-24 18:55:58 +02:00
tobspr
224bc6c7e5 Add ability to import savegames, add game menu, multiple smaller improvements 2020-05-16 17:57:25 +02:00
tobspr
2c9867c837 Fix bug with pinned shapes not properly refreshed 2020-05-16 09:51:55 +02:00
tobspr
4e97ec281e Fix bug when saving underground belts 2020-05-15 11:08:49 +02:00
tobspr
b64bbc8132 Fix hub being removable after restoring a game, fix tslint errors 2020-05-14 22:46:31 +02:00
tobspr
a1fd83c03c Fix serialization errors and implement hub deserialization 2020-05-14 22:20:19 +02:00
tobspr
330c98267a Minor fixes and add save button 2020-05-14 22:05:06 +02:00
tobspr
b01d38e55d Initial support for saving games 2020-05-14 21:54:11 +02:00
tobspr
85951615a9 Fix tslint errors 2020-05-14 08:56:18 +02:00
tobspr
241b4b42d9 Add proper game analytics 2020-05-12 20:06:50 +02:00