RepositoryC++FRFrance
Lecrapouille

Lecrapouille/OpenGlassBox

[Lib, App][Version 1.1.0][Functional] Sandbox implementation of the simulation engine behind SimCity 5 (GlassBox)

56stars
2forks
18issues
0views

🏙️ C++14 port động cơ mô phỏng GlassBox từ SimCity 2013 — không dùng Unity, tập trung vào simulation

OpenGlassBox là bản port C++14 từ dự án MultiAgentSimulation (C# Unity), cài đặt lại công cụ mô phỏng GlassBox của Maxis SimCity 2013 theo slide GDC 2012.

Dự án OpenGlassBox do Lecrapouille phát triển, là bản cài đặt lại bằng C++14 của công cụ mô phỏng GlassBox — động cơ đằng sau trò chơi SimCity 2013 của Maxis. Dự án không liên quan tới Maxis, được chuyển đổi từ ngôn ngữ C# và Unity sang C++ để tập trung vào phần logic mô phỏng thay vì rendering.

✨ Điểm nổi bật

  • Port C++14 từ C# Unity: chuyển toàn bộ logic mô phỏng từ MultiAgentSimulation sang C++.
  • Tách biệt library và demo: biên dịch thành thư viện tĩnh/dộng và ứng dụng demo độc lập.
  • Rendering bằng SDL2 + Dear ImGui: dùng để hiển thị trạng thái mô phỏng trong demo.
  • Đổi tên lớp rõ nghĩa: Box → City, Point/Segment → Node/Way, ResourceBinCollection → Resources.
  • Thêm unit test và comment: cải tiến từ bản gốc thiếu test và tài liệu.
  • Hỗ trợ biên dịch đa nền tảng: Linux, macOS, có thể chạy trên Windows.
  • Demo trực quan: hiển thị nhà, nhà máy, con người, nước, cỏ qua lưới đường và nút giao.

💡 Vì sao đáng chú ý

Không giống các dự án mô phỏng thành phố chạy trên Unity, OpenGlassBox tách rời hoàn toàn logic mô phỏng và rendering — phù hợp cho nghiên cứu, học thuật hoặc tích hợp vào engine khác. Dự án cũng nâng cấp thuật toán đường đi từ A* động sang Dijkstra, đồng thời lên kế hoạch thay thế parser script bằng Forth để giảm footprint.


#SimCity #GlassBox #CityBuilder #C++ #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryKotlin
kotcity/kotcity

KotCity, an open source city simulator

490
Aug 23, 2021
RepositoryJava
dheid/micropolis

Micropolis is the Open Source Release of the original SimCity source code. This is a Java version originally written by Jason Long and enhanced with modern features.

56
Sep 3, 2026
RepositoryRust
OpenSC2K/OpenSC2K

OpenSC2K - Open Source remake of Sim City 2000 using rust and godot. Available for macOS, Windows and Linux

5.3k
Oct 20, 2026
RepositoryC
bvschaik/julius

An open source re-implementation of Caesar III

3.4k
Sep 12, 2026
RepositoryRust
Uriopass/Egregoria

3D City Builder without a grid

1.7k
Jun 2, 2025
RepositoryTypeScript
streetmix/streetmix

Streetmix makes it easy for people to design public spaces together.

749
Oct 24, 2026
RepositoryC#
jgosar/mine-city-2000

A program that converts SimCity 2000 cities into Minecraft worlds

739
Feb 8, 2025
RepositoryPython
chengmarc/minecraft-citygen

MC CityGen: Turn your own Minecraft builds into an entire city.

427
Oct 22, 2026
RepositoryJavaScript
Areso/1255-burgomaster

:european_castle: Little town (travian) game w/ RPG mechanics. Playable. WIP

142
Apr 9, 2024