Thanks to visit codestin.com
Credit goes to github.com

Skip to content

0xArtex/isometric-city

 
 

Repository files navigation

IsoCity

IsoCity is a open-source isometric city-building simulation game built with Next.js, TypeScript, and Tailwind CSS. It leverages the HTML5 Canvas API for high-performance rendering of isometric graphics, featuring complex systems for economic simulation, trains, planes, seaplanes, helicopters, cars, pedestrians, and more.

IsoCity Banner

Features

  • Isometric Rendering Engine: Custom-built rendering system using HTML5 Canvas (CanvasIsometricGrid) capable of handling complex depth sorting and layer management.
  • Dynamic Simulation:
    • Traffic System: Autonomous vehicles including cars, trains, and aircraft (planes/seaplanes).
    • Pedestrian System: Pathfinding and crowd simulation for city inhabitants.
    • Economy & Resources: Resource management, zoning (Residential, Commercial, Industrial), and city growth logic.
  • Interactive Grid: Tile-based placement system for buildings, roads, parks, and utilities.
  • State Management: Save/Load functionality for multiple cities.
  • Responsive Design: Mobile-friendly interface with specialized touch controls and toolbars.

Tech Stack

  • Framework: Next.js 14+ (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS & shadcn/ui components.
  • Graphics: HTML5 Canvas API (No external game engine libraries; pure native implementation).
  • Icons: Lucide React.

Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/amilich/isometric-city.git
    cd isometric-city
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev
  4. Open the game: Visit http://localhost:3000 in your browser.

Contributing

Contributions are welcome! Whether it's reporting a bug, proposing a new feature, or submitting a pull request, your input is valued.

Please ensure your code follows the existing style and conventions.

License

Distributed under the MIT License. See LICENSE for more information.

About

City building simulation game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.7%
  • PLpgSQL 1.1%
  • Other 1.2%