Modern Web version and Android builds
- Original repository (by webbestmaster)
- Fork repository (use GoogleChromePortableLegacyWin7)
- Modern Web support repository (by Tim Abdiukov)
Go to the apk directory to download the Android version.
This game is designed to run in Android WebView, a Chrome-based built-in component on Android phones for displaying web content. Hence it can also be run in a PC web browser.
To run the AE1 and AE2 games in web browser, you must have all these prerequisites ready:
- Node.js version >= 12.0.0.
- A modern web browser such as Google Chrome.
-
Install Node.js.
You may visit https://nodejs.org/en/download/ to download and install the Node.js that is suitable for your operating system.
- For example, in Ubuntu, the most convenient version is the snap version, which can be installed using
sudo snap install node --classic
- For example, in Ubuntu, the most convenient version is the snap version, which can be installed using
-
Install NPM packages.
You may run
npm install npm install http-server
in this directory to install all the NPM packages needed.
-
Run HTTP server.
The two scripts below use the
http-serverpackage.- For Ancient Empires 1, run:
npm run AE1
- For Ancient Empires 2, run:
npm run AE2
After starting the server, there will be a list of servers available as shown in the console.
- http://127.0.0.1:8080 refers to localhost. You are advised to use this address to start the game.
- If you have connected to WiFi or Ethernet to access the Internet, the IP address of your PC will also be displayed in the list. However these addresses are not recommended for use as they are unstable.
- In order to save your progress, you must launch the game using the same server address and port number every time.
- If http://127.0.0.1:8080 is occupied, the server will be started on port 8081, 8082, …, etc. But you will not retrieve your existing progress. So it is recommended that you ensure that the port 8080 on your PC is ready for use.
- For Ancient Empires 1, run:
-
Start browser to play the game.
Open Google Chrome.
Access the server address you saw in the console into the browser address bar to launch the game.
-
After finishing, stop the server.
After you finish playing the game and close the browser, go back to the console and press
Ctrl+Cto stop the server.