This is a Settlers 4 (Siedler 4) Remake (it will be :-) ) written in JavaScript (Typescript) so it can be run in your browser.
- Install Node.js : https://nodejs.org/
- Install TypeScript : https://www.typescriptlang.org/#download-links
- run
tsc
in thesrc
folder
This will create the run/settlers.js
file.
- Install Node.js : https://nodejs.org/
- Copy all you Settlers files and folders (
game.lib
,gfx.lib
,Gfx/0.gfx
, ...) to therun/Siedler4/
folder - Run
run/run.bat
. This will start a local Webserver on your PC - Open: http://localhost:8888/
Use the Visual Studio Code to edit and debug your code:
- Visual Studio Code: https://code.visualstudio.com/
- Install Debugger for Chrome Plugin in Visual Studio Code
- using webGl to render the state of a game by loading a save game and pushing all data to webGl:
- adding game logic to process state changing in the game
- see:
game.lib/objectInfo.xml
andgame.lib/buildingInfo.xml
- see: https://github.com/jsettlers/settlers-remake
- adding backend logic
- using websocket to communicate with local webserver. The webserver now can provide:
- Folder access to e.g. list all save games
- Network access to allow network gaming
You can access 'all' Settlers file formats