1,165 karma · joined Apr 17, 2022 (4y ago) · 273 submissions
I'm creating Metropolis 1998, a 2D city builder/simulation video game.
https://store.steampowered.com/app/2287430/Metropolis_1998/
comment 2y ago · link · parent
If Chris Sawyer made a city builder that dived deep into simulation.. that's what I'm aiming for.
Still in early development: https://store.steampowered.com/app/2287430/Metropolis_1998/
comment 2y ago · link · parent
One thing they did that has stuck with me though was this plastic bag contraption with some material inside to represent the human lungs. There was a hole at the top which the DARE officer placed a lit cigarette, then began (somehow) pumping air from the hole down into the lung material. I remember watching the material quickly go from white to brown and tarry. By the time the cigarette was out, she looked us all in the eyes and said "this is what smoking does to your lungs"
190.
20 points · by YesBox · 2y ago · 7 comments
comment 2y ago · link · parent
Thanks Chris!
[1]https://store.steampowered.com/app/2287430/Metropolis_1998/
comment 2y ago · link · parent
People take pride in craftmanship. If AI can match that, that isn't better for them. More choices (competition) means more money diverted in marketing and ads. That isn't better for game studios and all their non-marketing branches.
All this to say, the more competition there is on the market, the winners end up being marketplaces, not game studios. Music is a commodity at this point. PC/Console video games are far behind that, but walking the same path. Mobile games are not far behind music. IIRC about 80-90% of mobile games development budget is for marketing and ads. There are around 10x mobile games released every year, compared to Steam.
I'm biased because I'm working on my own (PC) game, and I am very grateful to be working on this before the tidal wave hits. It will probably be awhile before AI can match hand-crafted/polished digital experiences.
Just sharing my thoughts as a game developer who grew up in the 90s. This isn't personal, humans will almost always take the path of least resistance. If AI matches expert level output, the outcome is inevitable.
comment 2y ago · link · parent
1. The streets have their own graph, as does each individual building. There's an address book; each building stores the driveway tile connecting to the street graph here.
2. Pathing inside homes uses A*. In order to make this extra fast, I bake the 8-directional egress weights for each tile in the building/yard.
2b. This gets condensed down into a 16-bit bitmask (2 bit chunks, 8 directions) and then stored in a hash table
2c. Each bit-chunk has four possible states:
FULL_BLOCK (e.g. a wall)
HARD_BLOCK (e.g. a large object that prevents walking through the tile from any direction)
SOFT_BLOCK (e.g. a smaller object that prevents passage on one edge)
NO_BLOCK (e.g. an unoccupied tile, or a tile with a tiny object)
This way a unit pathing inside a building does not need to check for obstacles on every tile. This also allows units to pass through tiles with objects provided the object is not huge and is rotated in such a way that the exit and entrance edge is not blocked. Lastly, an agent can still walk through a wall if the player e.g. forgot to place a door, to prevent the simulation from breaking down.
3. I use a waypoint system (stored in a queue) for agents so they can traverse through the different graph hierarchies with ease. This is also used to e.g. tell the unit to walk to their car first if they are driving.
4. Pathing on the street uses a different method (though still utilizes a baked graph) that makes it extra zippy.
[0] https://store.steampowered.com/app/2287430/Metropolis_1998/
comment 3y ago · link · parent
Seems to be fixed now, but it reminded me of the early search engine days.
Funnily enough, when I used dogpile.com, it returned relevant results
201.
Ask HN: Any indie game developers here?
17 points · by YesBox · 3y ago · 15 comments
comment 3y ago · link · parent
https://archive.org/details/rbmsbk_ap2-v4_1954_V08N3/page/n3...
comment 3y ago · link · parent
Im working on a game in the same vein: Metropolis 1998, a city builder with real time traffic and interior building views, which you can design yourself if you want. Aesthetically, it's a beautiful throwback to the games I grew up playing as a kid.
comment 3y ago · link · parent
I'm currently making an isometric pixel art game using SFML [0]. Technically this is not possible since SFML does not use a depth buffer/z value, but I found a way around this.
I still feel limited in SFML in many ways, like being forced to use the color channels to pass custom codes to the GPU for shaders (while still needing to use color)
Is it possible to setup a custom vertex array in raylib? Beyond world pos, texture pos, and color, is it easy to pass additional information to the GPU for customizing assets in the shader?
Most (all?) of the examples I've see are 3D, but I imagine raylib would have no problem handling a 2D game? Or is specifically designed for 3D and 2D is an afterthought/non-existant?
[0] https://twitter.com/YesboxStudios/status/1676924625912045568
comment 3y ago · link · parent
Hello!
I'm making a roller-coaster tycoon inspired game, in the form of a city builder. I ended up creating my own path finding algorithm that 10x's the performance of A*. I felt this would be useful since pathfinding is one of the major slowdowns of simulation games.
https://twitter.com/YesboxStudios/status/1647224184597102592