Skip to content

tobspr-games/shapez.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,343 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shapez 2 out now!

Shapez 2 is now available on Steam, adding multi-layer factories, better performance, trains, fluids, and much more!

shapez 2 Announcement

shapez

shapez Logo

Contributing

This repository is no longer actively maintained, we have moved over to shapez 2 development.

Please consider contributing to the Community Edition for ongoing development.

About

This is the source code for shapez, an open source base building game inspired by Factorio. Your goal is to produce shapes by cutting, rotating, merging and painting parts of shapes.

Building

  • Make sure ffmpeg is on your path
  • Install Node.js 16 and Yarn
  • Install Java (required for texture packer)
  • Run yarn in the root folder
  • cd into gulp folder
  • Run yarn and then yarn gulp - it should now open in your browser

Notice: This will produce a debug build with several debugging flags enabled. If you want to disable them, modify src/js/core/config.js.

Creating Mods

Mods can be found here. The documentation for creating mods can be found here, including a bunch of sample mods.

Helping translate

Please checkout the Translations readme. However, currently we are not reviewing new translations.

Code

The game is based on a custom engine which itself is based on the YORG.io 3 game engine (Actually it shares almost the same core). The code within the engine is relatively clean with some code for the actual game on top being hacky.

This project is based on ES5 (If I would develop it again, I would definitely use TypeScript). Some ES2015 features are used but most of them are too slow, especially when polyfilled. For example, Array.prototype.forEach is only used within non-critical loops since its slower than a plain for loop.

Assets

You can find most assets here.

All assets will be automatically rebuilt into the atlas once changed (Thanks to dengr1065!)

shapez Screenshot


Check out our other games!

tobspr Games