MiniEnterprise

This is the place to talk about anything not related to Transport Tycoon itself.

Moderator: General Forums Moderators

Post Reply
User avatar
lukasz1985
Route Supervisor
Route Supervisor
Posts: 445
Joined: 27 Mar 2013 08:58
Location: Poland
Contact:

MiniEnterprise

Post by lukasz1985 »

Lately, still inspired by TTD - I've been working on something a little similar, so I created a game in Python and pygame (it's an early prototype). It's entitled MiniEnterprise. It's free to play. In the game the player not only is responsible for transporting cargo, but also for building industries and distributory buildings, and transfer stations (which act like a normal stations in TTD - their catchment area allows for goods accepting and delivery from industries and to markets). For now - only road vehicles and lots of unfinished features (and bugs, I guess :D ). The game is available on itch https://lucius39.itch.io/minienterprise. Below are some screenshots. If you have suggestions and opinions - these are welcome. Have a nice day!
splash.png
splash.png (37.41 KiB) Viewed 2023 times
gif1.gif
gif1.gif (430.36 KiB) Viewed 2023 times
gif2.gif
gif2.gif (426.58 KiB) Viewed 2023 times
zachbryanmerch1
Engineer
Engineer
Posts: 3
Joined: 01 Oct 2026 04:00
Location: United States
Contact:

Re: MiniEnterprise

Post by zachbryanmerch1 »

Really cool to see a new TTD-inspired game in the works — the screenshots and GIFs look charming already, especially the little vehicles moving around. I love how transport management games still inspire new projects decades later. Do you plan to add things like signals, timetables or multiplayer further down the line? Either way, I'll definitely check out the itch page and give it a try. Best of luck with the development!
User avatar
lukasz1985
Route Supervisor
Route Supervisor
Posts: 445
Joined: 27 Mar 2013 08:58
Location: Poland
Contact:

Re: MiniEnterprise

Post by lukasz1985 »

Something new for you.

I will keep blogging here the progress of this small game development. Currently I'm enhancing the graphics, here is some print-out from the TODO list:

- Vehicle hovering with track displayed on hover - DONE
- Trucks waiting at transfer stations - DONE
- Subsprites like in scenegraph (DONE 50%)
- Fix UI scaling
- Bigger entities (2x2 and bigger)
- New graphical style
- Distinct trucks
- Roads not being "sticky"
- One way roads
- Railroads and stations

And a screenshot (a GIF):
dev_1.gif
dev_1.gif (1.06 MiB) Viewed 165 times
User avatar
lukasz1985
Route Supervisor
Route Supervisor
Posts: 445
Joined: 27 Mar 2013 08:58
Location: Poland
Contact:

Re: MiniEnterprise

Post by lukasz1985 »

Lines of code (Python):

# 2026-08-03 20:18:06.135943 - 5573
# 2026-08-04 11:37:18.215054 - 5931
# 2026-08-05 12:26:57.877826 - 6575
# 2026-08-06 07:52:37.565375 - 6791

... Tthere was a break for some time, since I was in hospital...

# 2026-11-03 09:42:29.479215 - 7971
# 2026-11-03 11:08:57.248148 - 8323
# 2026-11-04 08:15:44.544311 - 8473
# 2026-11-04 17:19:04.068387 - 8397
# 2026-11-04 18:53:45.169819 - 8454
# 2026-11-04 20:16:46.686900 - 9328
# 2026-11-05 10:52:46.080920 - 9420
User avatar
lukasz1985
Route Supervisor
Route Supervisor
Posts: 445
Joined: 27 Mar 2013 08:58
Location: Poland
Contact:

Re: MiniEnterprise

Post by lukasz1985 »

Smooth zoom to cursor position interacting with scrolling. The zoom steps by multiplies of two to retain integer pixel size on each zoom checkpoint (0.25x, 0.5x, 1x, 2x, 4x, 8x).
On the gif are also visible culling glitches at high zoom level, which are to be fixed.
Some UI got enhanced (now the toolbar can be scrolled).

It was a lot of work to implement grid-based spatial culling (spatial indexing) and the code needed a solid refactoring.

It maybe not a big of change but now the game performs pretty well on bigger maps (Python with pygame is not as performant). The performance improvement can be measured in 5-10x improvement.
Still lower zoom levels force the engine to draw lots of sprites, and drawing is the bottleneck.

I would really welcome some suggestions if you have experience with some other python 2d libraries or engines like pyopengl or Arcade, since I'm not sure of how much performance gain will the game get if migrating to other graphical backend.

dev_3.gif
dev_3.gif (10.24 MiB) Viewed 52 times
dev_2.gif
dev_2.gif (7.07 MiB) Viewed 53 times
Post Reply

Return to “Off-Topic”

Who is online

Users browsing this forum: No registered users and 2 guests