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

2523 Commits

Author SHA1 Message Date
cody-ferguson
6662cb2694 Remove all references of "G_IS_STANDALONE" 2024-06-19 13:47:50 -05:00
Даниїл Григор'єв
6f1706aa23
Modify ESLint configuration
Fix minimatch patterns, disable no-unused-vars entirely, stop calling
tsc in the lint script.
2024-06-19 12:25:13 +03:00
Даниїл Григор'єв
60b2727b42
Merge pull request #30 from tobspr-games/dengr1065/eslint-tsc-revamp
Redo ESLint and TypeScript configuration
2024-06-18 18:27:18 +03:00
Даниїл Григор'єв
84350a4cd0
Simplify ESLint file matching patterns 2024-06-18 14:43:55 +03:00
Даниїл Григор'єв
878f0e1488
Merge pull request #26 from tobspr-games/chore/remove-mod-examples
Remove mod examples
2024-06-18 12:43:05 +03:00
EmeraldBlock
b4bbfcb4f0 remove mod_examples 2024-06-18 04:14:21 -05:00
Даниїл Григор'єв
d8f378d7e1
Redo ESLint and TypeScript compiler config
Many configuration files in this repository were created a long time
ago, then were modified as problems occurred. Now that there is
TypeScript support, it makes sense to clean up this mess, at least by
making small steps. This configuration is based on strict settings, but
most of these are currently disabled - otherwise it would be too hard to
work with existing JavaScript code. The downside of this change is
pollution of files with warnings and errors, even though they are valid.

- ESLint/TypeScript upgraded
- TS configuration is now shared between arbitrary Node scripts, Gulp
  files and the Electron wrapper
- A few eslint-disable comments are removed
2024-04-27 00:23:34 +03:00
Даниїл Григор'єв
7aeb687d14
Merge pull request #27 from tobspr-games/refactor/gulp
Refactor gulp setup; switch from webpack watch to gulp.watch exclusively
2024-04-26 22:42:00 +03:00
EmeraldBlock
dac3a6b935 improve dev watching 2024-04-24 21:19:31 -05:00
EmeraldBlock
39b7e6cb59 Squashed commit of the following:
commit 176343785eea110e529f26027bf864ae04068384
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 23:03:51 2023 -0600

    update readme

commit 8c1c3a0c47f5125126cb00d32a48f4f9344a3fb3
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 23:00:05 2023 -0600

    fix bugs

commit ea881e68c693a447e0698a3a6e7cfb1f25ccb6cc
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 22:46:46 2023 -0600

    expose all tasks with old api

commit fa6d7a3920ff573eadb61425cc077f0e00406164
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Fri Dec 8 21:51:20 2023 -0600

    switch to exported gulp tasks

commit 348b19a0171e65400bcd434cf7b7432f3488a411
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 22:55:38 2023 -0600

    parallelize dev build

commit 56de73e2d18d20e5ea7202afc021573a746e5012
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 20:44:10 2023 -0600

    use promises in gulpfile

commit 6ab54372482f26acb4769428eefbdc48240a12a1
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 20:33:36 2023 -0600

    make java -version print again

commit b0e4cf57bdc404bb3b0e45b7b233d5f7648c800e
Author: EmeraldBlock <yygengjunior@gmail.com>
Date:   Mon Nov 20 20:14:13 2023 -0600

    use promises for gulp tasks
2024-04-24 17:57:30 -05:00
EmeraldBlock
b5a7f7736a fix hub double-rendering 2024-04-24 16:09:28 -05:00
EmeraldBlock
a7f66e89a7 remember about blueprints 2024-04-24 10:46:45 +03:00
EmeraldBlock
731510007b make tiled sprites pixel-aligned to avoid transparent seams 2024-04-24 10:46:45 +03:00
EmeraldBlock
838f26f198 be more consistent with drawing methods 2024-04-24 10:46:45 +03:00
Danyil Hryhoriev
f2596ef845 Remove cache busting
Cache busting is not required in standalone context.
2024-04-20 13:23:02 +03:00
Даниїл Григор'єв
e10edca73e
Add more packaging tasks and fix localConfig not being created (#22)
* Update Electron dependencies

This will break some mods and a few things were deprecated, but the
Electron wrapper will be replaced anyway.

* Add macOS and arm64 packaging tasks

As @chunkybanana has tested the general approach to building shapez on
macOS, I can now add these tasks. Aside from that, now there are tasks
to build for the 64-bit ARM variant of each system and a task that
builds packages for all platforms and architectures at once. A bug where
localConfig wasn't created when building for the first time was also
fixed.
2024-04-16 21:50:36 +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
62b170a92d Fix missing Gulp CWD in packaging scripts
The gulpfile is in a subdirectory and the scripts need to take that into
account. While there's already one such script, I forgot to add the
arguments in the new ones.
2024-04-14 20:26:03 +03:00
Даниїл Григор'єв
c2855d528d
Slight improvements for the build process (#19)
* Unify the version source

Changes the development config to use version from package.json and
makes the production config use the same utility function. Also removes
the version file as it's no longer needed.

* Remove some Steam references from build process

Removes files needed to publish the game on Steam and related tasks that
can be only used by the developer anyway. Only the build process is
affected, the actual game part still supports Steam integration.

* Refactor/add packaging tasks

Adds new Gulp tasks to create a distributable package of the game. A
task for macOS is not provided because signing needs to be figured out
first. Package creation tasks are also aliased in package.json for
future usage in external tools or CI. Aside from that, alternative
methods of downloading the libGDX Texture Packer are dropped.
2024-04-14 19:03:27 +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
Thomas (DJ1TJOO)
a2d1e434bb
Added information about community edition (#2)
* Added information about community edition

* Update README.md

* README rewrite

---------

Co-authored-by: EmeraldBlock <yygengjunior@gmail.com>
2023-11-18 16:19:43 -06: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
Frode Austvik
76a00db34d Fix build by re-adding a missing dev dependency
This fixes cssnano being unable to load the preset "advanced", after
the dependency for that was removed in commit 24ceb6664d.
2023-11-07 18:19:43 +02:00
Даниїл Григор'єв
1be520afb9
Clean up and update workspace files
* Remove deprecated TSLint config

* Remove jsconfig.json

jsconfig.json is an alternative name for tsconfig.json that has allowJs
set to true. Since the directory already contains a tsconfig.json file,
this file does nothing.

* Remove Gitpod configuration

Gitpod is not as useful in CE because we're focusing on standalone.
Also, the configuration was added just to promote the service and there
are other similar services which may be preferred by the user.

* Remove Travis CI configuration

Travis CI is not used in shapez anymore in favor of GitHub Actions. In
addition to that, CI setup for the community edition will be done once
the codebase is in a better condition.

* Remove CONTRIBUTORS and CONTRIBUTING.md

The contributors file is out of date and unneeded as GitHub now shows
all collaborators anyway - however it could be still used in the future
to show a list of contributors in the game. CONTRIBUTING.md contains the
text of CLA, which is not enforced in this repository.

* Replace VSC workspaces with regular settings files

VSCode workspaces don't provide much benefit in a source tree like
shapez. This commit also adds EditorConfig and ESLint VSCode extensions
to the recommended extensions list.

* Remove CI workflow for building the game

It hasn't been updated in a while and we don't need it for now. Once the
codebase is in a more managable state, a new workflow will be added.

* Remove some unused resources

There are still many resources left, but they will be removed along with
the relevant code later.
2023-10-25 08:05:56 +03:00
Bagel03
81df743334
Add support for JSX
Allows usage of JSX across the codebase, JSX is turned into regular HTML elements.
2023-10-24 16:58:53 +03:00
Даниїл Григор'єв
6deee07a80
Remove GOG/Wegame source roots 2023-10-06 11:13:26 +03:00
Bagel03
47ee05b715
Update ts to 5.0 (#11) 2023-03-05 14:32:19 -05:00
Thomas (DJ1TJOO)
77fb9b76b6
Fixed missed trim replacement (#9) 2023-03-05 20:01:10 +01:00
Bagel03
ddb904432e Prettier 2023-03-04 21:32:47 -06:00
Bagel03
1eb264716a Add ts support 2023-03-04 21:32:47 -06:00
EmeraldBlock
bd781f8750 build fixes 2023-03-04 21:23:14 -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
Thomas (DJ1TJOO)
0713c850ec
Fixed dev and devStandalone script (#1503)
* Fixed dev and devStandalone script

* Added eslint no-unreachable code rule

* Fix small type issue
2022-12-29 09:57:34 +01:00
Özgür Özbek
963fecd6c1
Update base-tr.yaml
translated all remaining English parts
fix typos
better convey meaning in some sentences
2022-12-02 03:07:44 +00:00
Даниїл Григор'єв
ed6922f912
Await asynchronous mod initialization (#1485) 2022-11-03 23:17:07 +01:00
tobspr
b07e04e7b1 Disable GA on shapez for better privacy 2022-10-24 09:54:36 +02:00
tobspr
885d1e609e Update repository links, add patreon link 2022-10-22 16:14:54 +02:00
tobspr
b42488f7b5 Update menu text & announcement 2022-10-13 15:23:14 +02:00
tobspr
e0bc74a4fd Fix steam login not working 2022-10-13 11:25:47 +02:00
tobspr
ee2279d5f0 Add shapez 2 hint to the game 2022-10-09 13:09:31 +02:00
tobspr
82980ae849 Add hint for shapez 2 2022-10-09 12:46:16 +02:00
Carlos Morette
c93435f510
translate shapeTooltip (#1481) 2022-10-06 21:14:00 +02:00
tobspr
c77e428ffb Fix darwin builds on gog 2022-07-20 18:16:14 +02:00
tobspr
b0c9894bf6 Add CLA 2022-07-19 14:52:41 +02:00
tobspr
400ee8e737 Support for GOG 2022-07-18 14:18:02 +02:00
Gumball73
81e3d2ba76
Update base-pt-PT.yaml (#1460)
Update base-pt-PT
2022-07-18 13:00:08 +02:00
tobspr
52166fdd86 Fix discount still being active 2022-07-07 20:40:47 +02:00
tobspr
b67f925f4f Update since summer sale ended 2022-07-07 20:36:05 +02:00
tobspr
a5022443f3 Remove events connector 2022-06-28 10:41:46 +02:00