That only took 5000 lines?!?
They’re separated into a lot of scripts so I don’t actually have an exact number, a lot of the enemies and obstacles feed off the same code. A lot of static classes to get common functions from. Mostly out of laziness haha
I just actually checked it, it’s 6,118 unity does a lot of heavy lifting for you. This type of game with a classic 2d blitting library like SDL2 would easy triple that optimistically
I work with Unreal Engine and will second what OP said about reusing code across multiple objects/enemies. Like for example with creating multiple enemies you’d probably start by making a base enemy which has all your logic for basic movement, taking damage and attack then extend/instance that base and tweak from there.
I think Unity has a demo project with this type of game.
500 lines…but using unity which is like an iceberg.
Can you tell us more about engine, frameworks etc?
Absolutely! I’m using Unity Engine which you can use C# or Java to code. I chose c# basically at random at first but I’m very happy with the language. I used mostly the UnityEngine namespace along with some extras for UI because I’m not great at it. Spent most of the development time squashing bugs when I tried to port it onto iOS.
That looks super cool! Congrats!
Thanks mate!
I’m assuming you used Unity?
Oh yeah Unity is amazing
wow good job
Thank you! You guys are very nice in this sub
That’s neat. Congrats!
Looks amazing! Was there a reason its iOS only?
There is a reason but it’s not a good one haha I don’t know anyone with an android or pixel so I can’t do tests. Porting it to iOS caused so many issues that I wouldn’t want to port to anything that I didn’t know worked. Simulators only go far and don’t actually run on the hardware so I’m kinda locked in. That being said there’s a test version on the google play store, if you want to play it go right ahead but you’ll have to tell me the bugs since I can’t see them myself
Where can I play this?