I’m semi-actively working on a Neopets-esque browser game (it’s actually closer to Flight Rising but people usually don’t know what that is). Anyways, my day job is literally web development so I know how to optimize things. And the main thing that needs optimizing in those games is storing the graphics. Especially if you offer a lot of color combinations for the creatures. The standard way is to have your backend generate a png with the specific traits of a creature and store that in a database. But storing images is expensive as hell and I’m not looking to pay for storage for my stupid little hobby project.
Long story short, since Laravel’s Blade templates can be used to serve Server-generated XML and SVG is just XML I’m just writing the graphics as code and serving it on demand. Good thing that I can draw, because making those graphics is kind of finicky and I don’t think I could find an artist who knows enough about programming or a programmer who’s good enough at art to do that process for me.
You should really crunch the numbers in a spreadsheet, serving sprites from a CDN isn’t very expensive
Especially initially - you could set spending limits while it’s growing, then look at ads or donations or whatever and make sure you don’t end up with a big unexpected bill
Instead of raw dogging SVG, you should look at the image programs that do vector images (I think krita is a free one) and meet an artist halfway. It would also very much help if you want to add animations at some point
You could also look how other people have solved this… Game programming is a very different flavor of coding, they’ve solved this problem many times over, and even if you want to do it differently there’s plenty to learn from how others have done it
I’m semi-actively working on a Neopets-esque browser game (it’s actually closer to Flight Rising but people usually don’t know what that is). Anyways, my day job is literally web development so I know how to optimize things. And the main thing that needs optimizing in those games is storing the graphics. Especially if you offer a lot of color combinations for the creatures. The standard way is to have your backend generate a png with the specific traits of a creature and store that in a database. But storing images is expensive as hell and I’m not looking to pay for storage for my stupid little hobby project.
Long story short, since Laravel’s Blade templates can be used to serve Server-generated XML and SVG is just XML I’m just writing the graphics as code and serving it on demand. Good thing that I can draw, because making those graphics is kind of finicky and I don’t think I could find an artist who knows enough about programming or a programmer who’s good enough at art to do that process for me.
You should really crunch the numbers in a spreadsheet, serving sprites from a CDN isn’t very expensive
Especially initially - you could set spending limits while it’s growing, then look at ads or donations or whatever and make sure you don’t end up with a big unexpected bill
Instead of raw dogging SVG, you should look at the image programs that do vector images (I think krita is a free one) and meet an artist halfway. It would also very much help if you want to add animations at some point
You could also look how other people have solved this… Game programming is a very different flavor of coding, they’ve solved this problem many times over, and even if you want to do it differently there’s plenty to learn from how others have done it
Just things to think about
I’m NOT a programmer. It’s a joke.