Eko Life: a Sims-style life game set in Lagos
Eko Life is a playable, local-first life game on a 3D isometric map of Lagos. You create a Sim, furnish a house, hold down a career, travel around the city and chat with townsfolk who reply in Pidgin. It is plain HTML and JavaScript with no build step, and you get the full source code.
I built it by reverse engineering lagoslife.app to learn how a game like this fits together. The brand, place art and billboard ads are original or invented, and nothing was copied from lagoslife.app. It is not affiliated with or endorsed by lagoslife.app. The rules and numbers are my own design.
What it does
- The city: a 3D map with a lagoon, bridges, billboards and place pins you can tap.
- Your Sim: a 3D house with furniture, needs, skills, traits, goals and perks, plus a buy mode catalogue.
- Work and money: career ladders with shifts and promotions, missions and a wallet. Every account gets a one-time welcome bonus.
- Getting around: trek, keke, danfo, okada or ride-hail to any place on the map.
- People: a phone with Messages, Jobs and news, and a State House with Governor, Senator and President tabs.
- Sound: effects, Afro-pop, Amapiano and Highlife grooves, and Simlish, all generated in the browser.
How to run it
- Unzip the download.
- In a terminal next to the folder run
python3 -m http.server 4400 --directory eko-life-game. - Open http://localhost:4400 and log in with
demo/ekolife-demo, or sign up on the sign-up page.
Everything is stored in your browser. To reset, clear site data for localhost:4400 or use Me, then Delete this Sim. Passwords are hashed in the browser for the demo only. This is not real authentication, and a multiplayer version would need a backend.