logoalt Hacker News

Show HN: Micropolis/SimCity Clone in Emacs Lisp

84 pointsby vkazanovtoday at 8:46 AM18 commentsview on HN

This is a little game implemented over a week of tinkering and targeting Emacs.

The point is both to have fun with this kind of simulations, and also explore the "functional core / imperative shell" approach to architecture. I also developed a tile and tile effect definition DSL, which makes this even easier to extend. From this point of view it's a success: easy testing, easy extension,

Gameplay-wise the simulation is too simplistic, and needs input from people interested in this kind of toys. The original Micropolis/SimSity is the last time I built a virtual city.


Comments

yuppiepuppietoday at 1:38 PM

Amazing! I have added this to the HN Arcade https://hnarcade.com/games/games/micropolis-simcity-clone-in...

show 1 reply
michaelanckaerttoday at 10:40 AM

This is great! We need more ASCII games/simulations and it's only a bonus if it's in Emacs :-)

mghackerladytoday at 2:19 PM

This may be unrelated but I swear emacs has a color tile library for games, it's used in tetris iirc

brimtowntoday at 11:46 AM

This is wonderful. Consider decoupling the core from Emacs, or packaging in a way that doesn’t require it as heavily.

I’ve been doing my own exploration of terminal ASCII games via Dwarf Fortress instead of SimCity. I’ve learned that letting a coding agent play is an interesting way to get feedback as well :)

https://github.com/brimtown/claude-fortress

show 4 replies
DonHopkinstoday at 1:33 PM

Fantastic! Can you make Emacs shake the screen by scrolling vertically and horizontally whenever there's an earthquake?

Finally RMS can play SimCity.

morkalorktoday at 1:23 PM

Congrats on your Seventh Sally!

boxedtoday at 8:49 AM

You should have a screenshot.

show 1 reply
devcraft_aitoday at 3:00 PM

[dead]