/Settlers.ts

A Web Settlers 4 Clone/Remake in TypeScript

Primary LanguageTypeScriptMIT LicenseMIT

Settlers 4 remake (File Formats)

This is a Settlers 4 (Siedler 4) Remake (it will be :-) ) written in JavaScript (Typescript) so it can be run in your browser.

How to compile:

This will create the run/settlers.js file.

How to start:

  • Install Node.js : https://nodejs.org/
  • Copy all you Settlers files and folders (game.lib, gfx.lib, Gfx/0.gfx, ...) to the run/Siedler4/ folder
  • Run run/run.bat. This will start a local Webserver on your PC
  • Open: http://localhost:8888/

How to edit:

Use the Visual Studio Code to edit and debug your code:

Next BIG steps:

  1. using webGl to render the state of a game by loading a save game and pushing all data to webGl:
  1. adding game logic to process state changing in the game
  1. 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

State:

You can access 'all' Settlers file formats

gfx-file view:

screenshot

gl-file and gh-file view:

screenshot

lib-file view:

screenshot

map-file view:

screenshot