Real Estate Tycoon - Overview
Project documentation and how-to-play guide for Real Estate Tycoon
How to Play
Use WASD to move your investor around the city. Walk up to any NPC and press E to interact.
Goal: Grow your net worth from $500,000 to $5,000,000 to win.
NPCs on the Map
| Character | Role |
|---|---|
| π Sarah β Residential Broker | Browse homes, condos, and apartments |
| π Alex β Property Manager | View portfolio, collect rent, upgrade properties |
| π’ Marcus β Commercial Broker | Unlocks after owning 3+ properties |
| π Victoria β Luxury Broker | Unlocks after owning 6+ properties |
| π¦ First National Bank | Take loans or repay debt |
Property Deal Battles
When you enter a deal level, press SPACE to fire offers at the seller. Collect π inspection documents to discount the final price (each doc = -1%). The seller fires counter-offers back β avoid them or lose negotiation shields. Reduce the sellerβs stubbornness bar to zero to close the deal.
Market System
Prices update in real time via Brownian motion and random market events (housing boom, recession, tech boom, etc.). Watch the market ticker at the bottom and the HUD in the top-right corner.
Directory Structure
_projects/games/real-estate-tycoon/
βββ notebook.src.ipynb β Main game page at /real-estate-tycoon
βββ levels/
β βββ GameLevelMarketHub.js β City hub: player, NPCs, HUD, ticker, coins
β βββ GameLevelPropertyDeal.js β Base class for negotiation battle levels
β βββ GameLevelResidential.js β Residential deal (10 HP seller)
β βββ GameLevelCommercial.js β Commercial deal (15 HP, unlocks at 3 props)
β βββ GameLevelLuxury.js β Luxury deal (20 HP, unlocks at 6 props)
β βββ GameLevelWinScreen.js β Win screen: leaderboard + market price chart
βββ model/
β βββ MarketEngine.js β Brownian motion + market events (singleton)
β βββ PortfolioManager.js β Cash, properties, loans (localStorage)
β βββ PropertyDatabase.js β 17 property definitions across 3 tiers
βββ images/ β SVG sprites for all characters and backgrounds
βββ docs/ β This documentation
Framework Map
| Engine Piece | Role in this game |
|---|---|
GameEnvBackground |
City hub and deal-room backgrounds |
Player |
The investor character (WASD movement) |
Npc |
All 5 city NPCs with interact callbacks |
GameControl |
Hub β deal sub-levels β win screen transitions |
MarketEngine |
Singleton managing live price multipliers + events |
PortfolioManager |
Singleton persisting all player financials to localStorage |
PropertyDatabase |
Static data store for all 17 purchasable properties |
Source: _projects/games/real-estate-tycoon/