The point of the blogpost is that the solutions with std::vector<Particle*> aren't very good. So I agree that that one shouldn't be done here. The third solution presented doesn't have std::vector<Particle*>.
The pointers bit is solved in the last solution mentioned in my post.
Somewhere else someone said that if we swap the particles around with a memcpy then we can get rid of the holes in the buffer. That indeed sounds like a better solution than what we're doing with the ring buffer.
My reason to use placement new by the way is that I like to use constructors and this allows doing that.
You might gain a bit by adding subtle colour to your lighting. It seems like your lights are all white now (are they?). In reality street lanterns are often slightly yellowish, while the floodlights you have would be quite white. Adding some colour (not too much!) might improve the variation and atmosphere a bit.
I really like your core approach: a real RPG that's playable in the way one plays casual mobile games. Lots of people start making a game without having a clear goal, while I think designing around clear goals and limitations gives a project a lot of focus. :)
I'm making this in C++, so I'm not really using any tools for it. I load the VST instruments and effects myself, generate all the notes and musical structure myself and then produce the actual audio using those VST instruments.
I've just checked out some Noatikl videos on Youtube, sounds pretty cool! I found some very atmospheric stuff made with it.
I find it interesting how they go in a completely different direction: Noatikl creates far more 'experimental' music than I intend to do, and it seems intended to be used by a human who plays around with the settings.
I think this is indeed the 'secret sauce' that makes my music generator different from anyone else's. However, the randomness is actually a bit more random than you seem to suggest. For example, for chord progressions, one of the rules I've implemented is that two chords in a row need to have two notes in common. So C-E-G can for example go to E-G-B-C# but not to D-F-A. In cases where this leaves too few options, chords with one note in common are also allowed.
This rule limits the randomness significantly, but at the same time it doesn't actually define a list of chord progressions that the program can choose from. The only thing I've actually defined for this part is a list of common chord types (major, minor, 6, 7, 9, sus4, aug, dim, etc.).
What I posted is the literal text of our coding standard, so yes, this is what we use.
As far the example you give: it didn't say "add loads of useless comments". ;) I agree that those kinds of comments shouldn't be added and I indeed sometimes have interns remove comments that are too much like that. Comments should be about context and intent, not just describe what you can read in C++. Good comments is a topic by itself, I plan on writing a blogpost about that. In practice however, my experience is that even good programmers often don't write enough comments so I'd rather emphasise writing more comments than writing less comments. Not useless comments though. ;)
One way you could add a challenge is to make it difficult to reach the right balance. You mention interconnected systems. If using too much electricity makes production break but producing too much electricity uses too much water then you need to balance that. Balancing an economy is often the core challenge of a sim game. This does require being able to do things wrong if you want it to actually become a challenge.
Defending against enemies can also be the core challenge. The core loop then becomes gathering resources fast enough to build enough defences for how many enemies are coming. Few sim games go this way though, but it can be your focus if you want it to. :)
Looks interesting! I like how it takes a bit of a different setting compared to the standard medieval village building of so many sim games. :)
The one question that I think is essential to making this kind of game is: what's the core gameplay of your sim? The simple answer is of course "building", but what's the focus? For example, the focus of classic Settlers is logistics: setting up your roads in such a way that they don't become congested. The essence of Anno is balancing the tax income from citizens with the cost of producing their ever increasing needs. The essence of Banished is constantly reassigning a limited group of workers to wherever they are needed most. The essence of Planet Coaster is making beautiful parks and exciting rollercoasters (the economy is too simple to really be a challenge or core concern for the player).
What's going to be the main challenge in your game?
Hmm, interesting point, I'll add vision to the list!
For your sniper you might also consider adding a view-in-a-view where you can see a small extra area far away in the direction you aim, so you need to look around to see everything through the scope.
I saw projective texturing mentioned elsewhere as well and haven't tried it myself yet. I'm curious whether that has the same effect though: does it also add perspective, or does it only do the squashing? What I mean by that is: if I squash the top and correct it using projective texture, does that only have a horizontal effect or does the texture also change vertically as it there were real perspective? If the latter is the case this would not be the same effect as what I'm trying to achieve here.
Hmm, good point! That would probably have been a more efficient solution to this particular problem. Still, I wanted the additional subdivisions for other purposes as well and for the other things the simple subdivisions I have now work better. I've added a note on this to the post now.
The main thing we're working on is the new matchmaking for Awesomenauts, which is launching really soon. Plenty of interesting things I could write about in that: it's by far the most complex thing we've ever built.
The reason I asked, is that your art style seems to lack an "idea" at its core. What is the art trying to communicate, what style is it trying to be? Is the art intended to make the people and their shelters look tiny and fragile compared to this vast deserted, hostile land? Or the feel of detailed miniatures full of life that Settlers and Anno have? Are you trying to communicate the harshness and suffering of a post-apocalyptic world, or the optimism of rebuilding? Or something else? Is it realistic, cartoony, grotesque, dirty, nasty, funny, something else?
I think your visuals could benefit from working to some kind of goal.
I usually put my assets into 3dsmax really early and start fooling around with things and with Photoshop to add stuff until I get the look I want. Like concept art, except that I can't draw. ;) It's easier to get the "perfect" look in a program like 3dsmax than in a game engine, and then I can figure out how to achieve that look in real-time.
That description indeed sounds very interesting, I love city builders and haven't played one in this kind of setting yet. :)
This made me curious: "finding a line between realism (which is hard to do on a budget) and having a unique style." Do you have a target for your style yet? What should the game look like when it's finished? You mention AAA games and those usually make some sort of render target or concept art really early that represents what they're working towards, so I'm curious how/whether you defined the style you're going for.
I put a lot of time into making those pictures to make it understandable for artists (instead of just for coders), good to hear that worked out and makes it clear! :D
An alternative compression for normal maps is to store them in a 2-channel texture, using only RedGreen (or LuminanceAlpha or whatever). The third dimension can be calculated from that. I think this was considered a relevant approach when I learned normal mapping 10 years ago, but I haven't made any normal maps in years so I have no idea whether that approach is still used today though. It's still 4x larger than DXT1. What do you generally use for normal maps these days?
The point of the blogpost is that the solutions with std::vector<Particle*> aren't very good. So I agree that that one shouldn't be done here. The third solution presented doesn't have std::vector<Particle*>.
The pointers bit is solved in the last solution mentioned in my post.
Somewhere else someone said that if we swap the particles around with a memcpy then we can get rid of the holes in the buffer. That indeed sounds like a better solution than what we're doing with the ring buffer.
My reason to use placement new by the way is that I like to use constructors and this allows doing that.
Nice to hear you like them! :)
Looks cool! :)
You might gain a bit by adding subtle colour to your lighting. It seems like your lights are all white now (are they?). In reality street lanterns are often slightly yellowish, while the floodlights you have would be quite white. Adding some colour (not too much!) might improve the variation and atmosphere a bit.
I really like your core approach: a real RPG that's playable in the way one plays casual mobile games. Lots of people start making a game without having a clear goal, while I think designing around clear goals and limitations gives a project a lot of focus. :)
I'm making this in C++, so I'm not really using any tools for it. I load the VST instruments and effects myself, generate all the notes and musical structure myself and then produce the actual audio using those VST instruments.
I've just checked out some Noatikl videos on Youtube, sounds pretty cool! I found some very atmospheric stuff made with it.
I find it interesting how they go in a completely different direction: Noatikl creates far more 'experimental' music than I intend to do, and it seems intended to be used by a human who plays around with the settings.
I think this is indeed the 'secret sauce' that makes my music generator different from anyone else's. However, the randomness is actually a bit more random than you seem to suggest. For example, for chord progressions, one of the rules I've implemented is that two chords in a row need to have two notes in common. So C-E-G can for example go to E-G-B-C# but not to D-F-A. In cases where this leaves too few options, chords with one note in common are also allowed.
This rule limits the randomness significantly, but at the same time it doesn't actually define a list of chord progressions that the program can choose from. The only thing I've actually defined for this part is a list of common chord types (major, minor, 6, 7, 9, sus4, aug, dim, etc.).
Thanks! :) Are there any other music generators you particularly liked that I should check out?
Looks cool! Writing weird shaders is one of the most fun parts of game development. :)
What I posted is the literal text of our coding standard, so yes, this is what we use.
As far the example you give: it didn't say "add loads of useless comments". ;) I agree that those kinds of comments shouldn't be added and I indeed sometimes have interns remove comments that are too much like that. Comments should be about context and intent, not just describe what you can read in C++. Good comments is a topic by itself, I plan on writing a blogpost about that. In practice however, my experience is that even good programmers often don't write enough comments so I'd rather emphasise writing more comments than writing less comments. Not useless comments though. ;)
One way you could add a challenge is to make it difficult to reach the right balance. You mention interconnected systems. If using too much electricity makes production break but producing too much electricity uses too much water then you need to balance that. Balancing an economy is often the core challenge of a sim game. This does require being able to do things wrong if you want it to actually become a challenge.
Defending against enemies can also be the core challenge. The core loop then becomes gathering resources fast enough to build enough defences for how many enemies are coming. Few sim games go this way though, but it can be your focus if you want it to. :)
Looks interesting! I like how it takes a bit of a different setting compared to the standard medieval village building of so many sim games. :)
The one question that I think is essential to making this kind of game is: what's the core gameplay of your sim? The simple answer is of course "building", but what's the focus? For example, the focus of classic Settlers is logistics: setting up your roads in such a way that they don't become congested. The essence of Anno is balancing the tax income from citizens with the cost of producing their ever increasing needs. The essence of Banished is constantly reassigning a limited group of workers to wherever they are needed most. The essence of Planet Coaster is making beautiful parks and exciting rollercoasters (the economy is too simple to really be a challenge or core concern for the player).
What's going to be the main challenge in your game?
:)
Hmm, interesting point, I'll add vision to the list!
For your sniper you might also consider adding a view-in-a-view where you can see a small extra area far away in the direction you aim, so you need to look around to see everything through the scope.
Any cool things on your list that I missed? :)
I saw projective texturing mentioned elsewhere as well and haven't tried it myself yet. I'm curious whether that has the same effect though: does it also add perspective, or does it only do the squashing? What I mean by that is: if I squash the top and correct it using projective texture, does that only have a horizontal effect or does the texture also change vertically as it there were real perspective? If the latter is the case this would not be the same effect as what I'm trying to achieve here.
Thanks! :)
Hmm, good point! That would probably have been a more efficient solution to this particular problem. Still, I wanted the additional subdivisions for other purposes as well and for the other things the simple subdivisions I have now work better. I've added a note on this to the post now.
The main thing we're working on is the new matchmaking for Awesomenauts, which is launching really soon. Plenty of interesting things I could write about in that: it's by far the most complex thing we've ever built.
Thanks! :)
The reason I asked, is that your art style seems to lack an "idea" at its core. What is the art trying to communicate, what style is it trying to be? Is the art intended to make the people and their shelters look tiny and fragile compared to this vast deserted, hostile land? Or the feel of detailed miniatures full of life that Settlers and Anno have? Are you trying to communicate the harshness and suffering of a post-apocalyptic world, or the optimism of rebuilding? Or something else? Is it realistic, cartoony, grotesque, dirty, nasty, funny, something else?
I think your visuals could benefit from working to some kind of goal.
Interesting way of working!
I usually put my assets into 3dsmax really early and start fooling around with things and with Photoshop to add stuff until I get the look I want. Like concept art, except that I can't draw. ;) It's easier to get the "perfect" look in a program like 3dsmax than in a game engine, and then I can figure out how to achieve that look in real-time.
That description indeed sounds very interesting, I love city builders and haven't played one in this kind of setting yet. :)
This made me curious: "finding a line between realism (which is hard to do on a budget) and having a unique style." Do you have a target for your style yet? What should the game look like when it's finished? You mention AAA games and those usually make some sort of render target or concept art really early that represents what they're working towards, so I'm curious how/whether you defined the style you're going for.
I put a lot of time into making those pictures to make it understandable for artists (instead of just for coders), good to hear that worked out and makes it clear! :D
An alternative compression for normal maps is to store them in a 2-channel texture, using only RedGreen (or LuminanceAlpha or whatever). The third dimension can be calculated from that. I think this was considered a relevant approach when I learned normal mapping 10 years ago, but I haven't made any normal maps in years so I have no idea whether that approach is still used today though. It's still 4x larger than DXT1. What do you generally use for normal maps these days?