1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00
Commit Graph

494 Commits

Author SHA1 Message Date
Phlosioneer
36cf28029e Remove ejector cache; use slot caches instead
This is a small refactoring that removes the main ejector cache. The
cache is now tracked by slots and ejector components.

It avoids a large array allocation and many small object allocations,
but adds many small array allocations. It's net neutral for performance.
2020-06-16 21:11:26 -04:00
dengr1065
b9e31049b6 "Dark keybindings" 2020-06-17 03:49:50 +03:00
Phlosioneer
2341772425 Optimize belt cache for common case
Most of the time, we're adding/removing one building at a time. We don't
need to recheck every belt, only the ones near the changed belt.
2020-06-16 20:23:11 -04:00
dengr1065
1bee130dfe Dark theme for settings 2020-06-17 03:19:22 +03:00
Phlosioneer
8a50fdb392 Remove belt cache array; use BeltComponent instead
Removed the belt cache array. Follow-up belts are cached in the belt's
BeltComponent instead. This change also removes the recursive follow-up
search, which could cause a stack overflow for an extremely long belt
chain.

Saves one object allocation per belt per change, two very large array
allocations per change, many function calls, and belts are only visited
exactly once per change.
2020-06-16 19:56:09 -04:00
dengr1065
97c52169da Changelog, support for dark theme in document root 2020-06-17 02:55:13 +03:00
dengr1065
7f32216404 Main Menu dark theme 2020-06-17 02:20:09 +03:00
Phlosioneer
d4fc2e6dcd Fix lint errors 2020-06-16 16:21:45 -04:00
Phlosioneer
83a4928be5 Make miners cache mined item
Saves two chunk+tile lookups per update, and one chunk+tile lookup per
draw.
2020-06-16 16:02:29 -04:00
tobspr
736e5fb432 Fix crash 2020-06-16 20:13:46 +02:00
tobspr
bbd50fdce9 Update changelog 2020-06-16 20:10:22 +02:00
tobspr
31ab5f3422 Disable direction lock for everything but belts 2020-06-16 20:10:00 +02:00
tobspr
e2d6d9d51d Update changelog 2020-06-16 20:05:45 +02:00
tobspr
46ceefd0d8 Disable automatic orientation when using belt lock 2020-06-16 20:02:52 +02:00
tobspr
4fc1ff6b0d Improve belt lock 2020-06-16 19:45:16 +02:00
tobspr
3afe2eb329 Update changelog 2020-06-16 19:40:44 +02:00
tobspr
35a13a09e5 Add belt lock feature 2020-06-16 19:40:00 +02:00
tobspr
b753187cde Add setting to disable smart tunnels 2020-06-16 19:24:23 +02:00
tobspr
3693a643b4 Update css 2020-06-16 17:53:27 +02:00
tobspr
1e1224b496 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-06-16 17:50:44 +02:00
tobspr
68ec3561c9 Update changelog 2020-06-16 17:50:42 +02:00
tobspr
3c3c5acc8e
Merge pull request #85 from jaysc/continue
Added continue button
2020-06-16 17:48:43 +02:00
tobspr
5ddf7bbd58
Merge pull request #148 from Demivan/gulp-4
Update gulp to version 4
2020-06-16 16:56:56 +02:00
tobspr
c571c088e6
Merge pull request #140 from dengr1065/patch-1
Dark theme for changelog and completed upgrades
2020-06-16 16:54:26 +02:00
tobspr
4ed004f902
Merge pull request #186 from mini-bomba/fix-standalone-only-settings-hint
Fixed standalone only setting hint not being translated
2020-06-16 16:51:09 +02:00
mini-bomba
b6e03d6cd0
Fixed standalone only setting hint not being translated 2020-06-16 14:51:48 +02:00
tobspr
512a1eb0d3 Update changelog 2020-06-16 14:09:05 +02:00
tobspr
b8c3668d88 Placing underground belts now removes belts and other (unneeded) tunnels inbetween 2020-06-16 13:19:53 +02:00
tobspr
1af564e816 Add mirrored painter variant 2020-06-16 11:57:17 +02:00
tobspr
fccb30b5a5 Fix dark mode for markers 2020-06-16 10:36:32 +02:00
tobspr
5c12c605f5 Reworked waypoints 2020-06-16 10:25:31 +02:00
tobspr
2d4a67aa11 update changelog 2020-06-15 22:44:29 +02:00
tobspr
32d169b7db Bump fast pan speed from 2 to 4 2020-06-15 22:29:55 +02:00
Glenn Martin Jensen
159e2e1262
Capitalize N in "norsk" to match other languages 2020-06-15 22:24:06 +02:00
tobspr
4f37d1e3f0 Update translations & changelog 2020-06-15 22:16:29 +02:00
tobspr
c1ecc4c3e7 Further update translations 2020-06-15 22:03:28 +02:00
tobspr
ccf8e3b29e Add japanese translations 2020-06-15 21:55:24 +02:00
tobspr
ed87dfd118 Update changelog 2020-06-14 15:54:09 +02:00
tobspr
840ba60c76
Merge pull request #131 from jaysc/fastpan
added shift modifier for faster pan
2020-06-14 15:52:38 +02:00
Jaysc
5de2c2de94 Removed logic from application_settings 2020-06-14 14:16:37 +01:00
tobspr
d50e8d8d13 Add norwegian translations 2020-06-14 15:00:01 +02:00
tobspr
7e2669ac40 Bump version 2020-06-14 14:44:45 +02:00
tobspr
cda24ceb04 Refactor item acceptor system for huge performance improvement 2020-06-14 14:37:13 +02:00
tobspr
e95b055e10 Minor improvements to belt performance 2020-06-14 14:20:35 +02:00
Jaysc
7552d23f40 multiply by 2 logic 2020-06-13 21:40:20 +01:00
Ivan Demchuk
506193b8c8 Switch to gulp 4 2020-06-13 18:59:25 +03:00
dengr1065
59b0eef02d
Bring back green color to completed upgrades
dark theme fix
2020-06-13 16:44:14 +03:00
Jaysc
8a726f99b6 Changed fastpan to mapMoveFaster and translation 2020-06-13 14:14:35 +01:00
tobspr
6febaff100 Fix untranslated button 2020-06-13 13:22:20 +02:00
tobspr
a2d0024cb1 Set date for 1.1.11 2020-06-13 12:20:02 +02:00
dengr1065
31960329c6
Dark theme for changelog
really quick fix just 3 sloc
2020-06-13 13:17:01 +03:00
tobspr
685373f11c Update changelog 2020-06-13 11:42:34 +02:00
tobspr
4e4498ed53 Fix dialog text being hardly readable in dark theme 2020-06-13 11:36:05 +02:00
tobspr
f8362d861b
Merge pull request #134 from mini-bomba/fix-keybinds-button-label
Fix keybindings button label text not changing with language
2020-06-13 11:17:35 +02:00
tobspr
ae770cb39f Update changleog 2020-06-13 11:13:46 +02:00
tobspr
0985a36793 Allow higher tickrates 2020-06-13 11:13:28 +02:00
tobspr
ba6c133ece
Merge pull request #132 from mini-bomba/about-translations
Made About this game translatable
2020-06-13 11:12:50 +02:00
tobspr
444908d22f Fix wrong check for full version 2020-06-13 11:06:15 +02:00
tobspr
766d9e943e Add flag to enable fullVersion in beta 2020-06-13 11:01:43 +02:00
tobspr
a0305512a2 Update changelog 2020-06-13 10:59:28 +02:00
tobspr
7e745fd0ce Allow exporting whole bases, closes #137 2020-06-13 10:57:29 +02:00
tobspr
ecbcd02abc Fix app not starting when the savegames were corrupted - there is now a better error message 2020-06-13 10:11:18 +02:00
mini-bomba
70adaa28ab
Fix keybindings button label text not changing with language 2020-06-12 22:23:17 +02:00
mini-bomba
a4060ad484
Made About this game translatable 2020-06-12 21:19:13 +02:00
Jaysc
487a99bb56 added fastpan feature 2020-06-12 18:55:35 +01:00
tobspr
7fd0451ddc Minor adjustments 2020-06-12 19:12:35 +02:00
tobspr
fe378654c2 Update changelog 2020-06-12 19:09:48 +02:00
tobspr
63568ffb2c
Merge pull request #112 from mini-bomba/move-speed
Added movement speed setting
2020-06-12 19:09:10 +02:00
tobspr
edc0e352f7 Update changelog 2020-06-12 19:07:57 +02:00
tobspr
2f45e345fe
Merge pull request #113 from hexagonhexagon/cut-paste-blueprints
Add cut, paste options for blueprints
2020-06-12 19:05:53 +02:00
tobspr
a2fc246690 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-06-12 19:01:57 +02:00
tobspr
f1f53e2d5e Update changelog 2020-06-12 19:01:55 +02:00
tobspr
cc9813bf0c
Merge pull request #74 from Dimava/extract/selection-world-relative
Make selection relative to world
2020-06-12 19:01:00 +02:00
tobspr
3af6532d32 Refactor pinned shapes and make them smart, closes #72 2020-06-12 18:38:13 +02:00
Dimava
7653c51e1b remove currentSelectionStart (use -World instead) 2020-06-12 15:49:31 +03:00
tobspr
8c01cc23d0 Fix watermark 2020-06-12 13:49:36 +02:00
tobspr
c037f23921 Localize watermark 2020-06-12 13:47:48 +02:00
tobspr
8be6530ee4 Add Dutch to languages 2020-06-12 13:45:35 +02:00
tobspr
bd944ea758 Update german translation 2020-06-12 12:06:57 +02:00
tobspr
2c4d8e40fd Add korean translation 2020-06-12 10:38:16 +02:00
tobspr
a348ee6e45
Merge pull request #118 from Colecf/patch-1
Fix grammatical mistake in demo watermark
2020-06-12 10:28:50 +02:00
tobspr
b288fe2512 V 1.1.10 2020-06-12 10:03:06 +02:00
Cole Faust
eb16025598
Fix grammatical mistake in demo watermark 2020-06-12 00:26:15 -07:00
tobspr
1a7a06fce2 Move debug options to seperate file so they are not always checked in 2020-06-12 09:15:29 +02:00
tobspr
758fd2866c Fix german being default language 2020-06-12 09:03:03 +02:00
mini-bomba
107a3ef69c
Added movement speed setting 2020-06-12 00:47:59 +02:00
hexagonhexagon
1091a7affd Merge branch 'master' into cut-paste-blueprints 2020-06-11 18:05:44 -04:00
hexagonhexagon
e39a868998 Add "Paste last blueprint" keybind. Last blueprint is not preserved on save/exit. 2020-06-11 17:56:13 -04:00
tobspr
af8ba506f5 Fix typos (Thanks to wessel) 2020-06-11 22:33:27 +02:00
tobspr
e6ae354b3f Comment changelog 2020-06-11 19:34:18 +02:00
tobspr
3134f38687 Enable russian translation 2020-06-11 19:30:57 +02:00
tobspr
15877f3040 German translations, minor improvements 2020-06-11 19:17:06 +02:00
tobspr
14b7c14d24 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-06-11 18:45:41 +02:00
tobspr
c55bcdf99c update changelog 2020-06-11 18:45:39 +02:00
tobspr
25b27054ec
Merge pull request #108 from jaysc/invalidUndergroundBelt
Prevent invalid connection if existing underground tunnel entrance exists
2020-06-11 18:44:43 +02:00
tobspr
3b0286cd99
Merge pull request #107 from mini-bomba/polish-translation
Adding new translation keys for theme names & Polishing the Polish Translation™ #3
2020-06-11 18:43:57 +02:00
Jaysc
6601923bd4 stop connection if something in the way 2020-06-11 16:33:25 +01:00
mini-bomba
2196299fff
New langkeys: settings.labels.theme.themes
Basically allows you to translate theme names to your language instead of them being hard-coded
2020-06-11 17:18:10 +02:00
Jaysc
f4d1e5447d Reordered continue and added new game button 2020-06-11 15:17:50 +01:00
tobspr
61a0435438 Enable polish translation 2020-06-11 15:29:41 +02:00
tobspr
c8ce9ee38b Bump version 2020-06-11 12:19:13 +02:00
tobspr
e9f0a45f2a Remove update check 2020-06-11 11:52:11 +02:00
tobspr
c434f7a59f Multiple fixes (see changelog) 2020-06-11 11:51:24 +02:00
tobspr
1c717b0f37 Change hub texture and allow translating it, update stacker texture 2020-06-11 11:29:38 +02:00
tobspr
aa6bd04881 Fix some translations and backward compatibility 2020-06-11 11:06:28 +02:00
tobspr
3e3cfe2c67 Improve language fallback detection 2020-06-11 10:23:02 +02:00
tobspr
3b3b1c4418 disable use of german translation for now since its unfinished 2020-06-11 10:20:35 +02:00
tobspr
28812c948a Add more languages 2020-06-11 10:18:59 +02:00
hexagonhexagon
f34813392f Add Cut keybind. 2020-06-11 03:33:00 -04:00
tobspr
84966573fa Fix copy paste error 2020-06-11 09:31:03 +02:00
Jaysc
ef3d492b41 Added continue button 2020-06-10 18:21:24 +01:00
tobspr
e343b1fa7a Update changelog 2020-06-10 12:46:54 +02:00
tobspr
ef30a35ea4 Minor translation changes 2020-06-10 12:45:27 +02:00
tobspr
0fc1390769 Add language chooser to main menu 2020-06-10 12:29:21 +02:00
tobspr
7c0565ab35 Add initial German Translation 2020-06-10 12:18:13 +02:00
tobspr
714cd449e9 Initial support for translations 2020-06-10 12:13:38 +02:00
tobspr
fad7a417f2 Disable analytics and logrocket for now 2020-06-10 11:52:59 +02:00
tobspr
95a437a8bb Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-06-10 11:49:55 +02:00
tobspr
89f934024b
Merge pull request #44 from hexagonhexagon/shop-ui-tweak
Make upgrade formatting more clear
2020-06-10 11:49:41 +02:00
tobspr
90c7b87e31 Minor UX Improvements 2020-06-10 11:49:33 +02:00
tobspr
e78af50ba1 Minor css improvements to pinned shapes 2020-06-10 11:38:49 +02:00
tobspr
67b68c1216 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-06-10 11:33:19 +02:00
tobspr
b56dd6fa7f Start working on 1.1.9 2020-06-10 11:33:16 +02:00
hexagonhexagon
0885bd6727 Make shapes unpinnable. The current goal shape uses a special pin icon. 2020-06-07 19:35:42 -04:00
hexagonhexagon
501db321a1 Corrected CSS wrapping "Speed..." text to next line. Made max level text align the same as the others. 2020-06-07 19:34:47 -04:00
hexagonhexagon
d52e4c9054 Change upgrade formatting to specify the current and new multipliers to speed. 2020-06-07 19:34:47 -04:00
tobspr
a2ee16589f Switch to steam 2020-06-07 12:56:02 +02:00
Dimava
7f5413a485 make selection relative to world 2020-06-06 11:46:01 +03:00
tobspr
1dee6a6aa2 Fix crash on safari 2020-06-05 11:38:34 +02:00
tobspr
a222f59c15 Fix occasional crash 2020-06-04 22:43:33 +02:00
tobspr
458aeae4c8 Update assets and fix bug on load 2020-06-04 22:32:00 +02:00
tobspr
9d0a218882 1.1.7 hotfix 2020-06-04 20:50:27 +02:00
tobspr
905be7a463 Update changelog 2020-06-04 18:06:25 +02:00
tobspr
5acde9429c Update changelog and version 2020-06-03 16:21:55 +02:00
tobspr
bf93ded6cf Increased icon visibility for windows builds 2020-06-03 16:16:41 +02:00
tobspr
8779f1d5a3 Fix firefox not loading in private browsing mode 2020-06-03 16:10:34 +02:00
tobspr
d1954b5b36 Improve button sensitivity 2020-06-03 14:52:03 +02:00
tobspr
692eb36f50 Analyze sessions with logrocket 2020-06-03 14:32:02 +02:00
tobspr
553442e953 Add weekly contests, bump to 1.1.5 2020-06-03 10:06:13 +02:00
tobspr
85f748566f Remove link to itch.io on update message 2020-06-02 17:16:48 +02:00
tobspr
2d6e98953c 1.1.4 2020-06-01 21:36:59 +02:00
tobspr
f145e98450 Fix crash 2020-06-01 21:16:26 +02:00
tobspr
cef07dec56 Add "interactive" tutorial for first level 2020-06-01 21:14:12 +02:00
tobspr
91351d2f79 Improve UX for first levels 2020-06-01 20:18:50 +02:00
tobspr
5cd4dba54a Cleanup first game experience 2020-06-01 19:58:36 +02:00
tobspr
d09a593f81 1.1.3 changelog 2020-06-01 19:28:13 +02:00
tobspr
922f8f47d7 Increase readability of certain HUD elements 2020-06-01 13:18:44 +02:00
tobspr
356bb2b73a
Merge pull request #43 from hexagonhexagon/number-formatting
Better big number formatting
2020-06-01 13:06:22 +02:00
tobspr
8c85018352 Added setting to configure zoom / mouse wheel / touchpad sensitivity 2020-06-01 13:05:15 +02:00
tobspr
b963b48df5 Fix keybindings not being properly assigned 2020-06-01 13:02:43 +02:00
tobspr
23db5b117e Migrate old savegames 2020-06-01 12:49:04 +02:00
tobspr
4e18fa74d4
Merge pull request #48 from Dimava/feature/mousebind
Mouse keybinds
2020-06-01 12:10:51 +02:00
Dimava
6c349479cf fix belt cloning bug 2020-06-01 12:46:37 +03:00
Dimava
e900d01026
remove console.log 2020-06-01 02:58:01 +03:00
Dimava
54e11e6baf
change onclick to addEventListener 2020-06-01 02:55:54 +03:00
Dimava
0d342ee417 move KeyMouse listeners to correct location 2020-06-01 02:36:41 +03:00
tobspr
56080ea25a Update changelog, again 2020-05-30 20:28:09 +02:00
tobspr
e4a8e72edd Add .itch.toml file 2020-05-30 20:25:46 +02:00
tobspr
704b6e14b8 Minor fixes, update changelog, add experimental macosx and linux builds 2020-05-30 20:12:16 +02:00
hexagonhexagon
2781d531a1 Put suffixes in base-en.yaml under the key global.suffix. 2020-05-30 14:02:03 -04:00
tobspr
02fb6d53b5 Allow hovering pinned shapes to enlarge them 2020-05-30 19:42:03 +02:00
hexagonhexagon
4409dbf17f Comply with ESLint. 2020-05-30 13:29:54 -04:00
hexagonhexagon
a92d703395 Make formatBigNumber() include a decimal point, and support numbers up to 999.9T. 2020-05-30 13:29:54 -04:00
tobspr
576bd3166f Minor improvements 2020-05-30 19:11:18 +02:00
tobspr
ffd011ac45 Preparations for the trailer 2020-05-30 17:50:29 +02:00
Dimava
fe33f51424 always use MouseEvent in keyboard hooks 2020-05-30 11:11:56 +03:00
Dimava
d5d615bfd3 change MouseEvent keyCode to event.button + 1 2020-05-30 11:11:26 +03:00
Dimava
79dcd79734 use MouseEvent in keybind change hooks 2020-05-30 11:03:37 +03:00
Dimava
e58c2fd371 use MouseEvent in keyboard hooks 2020-05-30 11:03:35 +03:00
Dimava
da94d5264a replace MouseEvent.which with MouseEvent.button 2020-05-30 11:03:33 +03:00
tobspr
8dac25be97 Minor fix for the standalone 2020-05-29 08:18:40 +02:00
tobspr
f99752bf2e Fix typo 2020-05-28 22:00:03 +02:00
tobspr
864c20ce26 Fix crash when Show Hints setting is off 2020-05-28 21:58:08 +02:00
tobspr
b2f6e2956c Fix waypoints not being updated 2020-05-28 21:09:20 +02:00
tobspr
c0ec867d3c Update changelog 2020-05-28 20:58:32 +02:00
tobspr
ce32578b79 Fix dark theme 2020-05-28 20:48:00 +02:00
tobspr
e85728b73d Further waypoint improvements 2020-05-28 20:36:53 +02:00
tobspr
3071bba633 store waypoints in savegame 2020-05-28 20:03:35 +02:00
tobspr
ec021780d8 Initial waypoint support 2020-05-28 19:40:48 +02:00
tobspr
37685d64bd Introduce cost for blueprints 2020-05-28 18:07:57 +02:00
tobspr
955cba74aa Show hint after unlocking level 4 2020-05-28 15:36:38 +02:00
tobspr
1582125d50 Vastly increase goals after blueprints have been unlocked 2020-05-28 15:00:19 +02:00
tobspr
e0facaf788 Fix keys being stuck, show savegame levels in main menu 2020-05-28 14:53:11 +02:00
tobspr
2a4ee8e784 Fix crash regarding blueprints being copied wrong 2020-05-28 13:49:50 +02:00
tobspr
f33473b77a Decrease requirements of first levels 2020-05-28 10:00:53 +02:00
tobspr
f46797ba21 Bump version and fix small font 2020-05-27 16:06:48 +02:00
tobspr
0818f67b8f Add blueprints to changelog 2020-05-27 15:47:47 +02:00
tobspr
8c88d738cc Minor improvements 2020-05-27 15:45:43 +02:00
tobspr
52e05f14c0 Further performance improvements 2020-05-27 15:25:17 +02:00
tobspr
1db5d4f7cb Merge pull request #24 from Dimava/master
Make CycleBuildings work properly
2020-05-27 15:24:37 +02:00
tobspr
dfe1e64b27 Further blueprint improvements 2020-05-27 15:03:36 +02:00
Dimava
6a5d1a0890 Make CycleBuildings select last used item when empty 2020-05-27 16:00:07 +03:00
Dimava
eb87550b36 Make CycleBuildings work properly 2020-05-27 16:00:03 +03:00
tobspr
f434cbd6f4 Merge branch 'master' into master 2020-05-27 14:32:16 +02:00
tobspr
98f02c0912 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-05-27 14:31:01 +02:00
tobspr
0cd324c82b Initial support for blueprints (Buggy) 2020-05-27 14:30:59 +02:00
Dimava
ab7584d9e9 Make ctrl/shift/alt keubindings changeable 2020-05-27 15:25:30 +03:00
Modded Gamers
00cc7f70ce Merge branch 'master' of https://github.com/tobspr/shapez.io into gh-actions
Merge
2020-05-27 08:08:33 -04:00
tobspr
5cc6c05c71 Allow changing keybindings in the demo version 2020-05-27 08:00:36 +02:00
Modded Gamers
ea50dc9790 Merge branch 'master' of https://github.com/tobspr/shapez.io into gh-actions
Merge
2020-05-26 07:44:24 -04:00