Now I’m no math expert, but would having decimals be helpful, but only when you want them? Sometimes there’s not enough, next to too much, without any “middle ground.”
Being that pixels only work in whole numbers, I don’t think that would be possible with positions, but should such number be imputed into it, it should round to the nearest whole pixel
So in a lot of cases you should just be able to change the scale of your calculation if you want more accuracy - for example multiply all values by 10 or 100. I can't really give you a good example without knowing more about the specific cases you run into.
Confusing... I may have a “simple menu” setting. Where everything does exactly what it says, no need to hover the mouse over buttons or anything.
As suggested by @Luminous, I might also make the menu have a background, and make the buttons glow when the mouse hovers over- or play some animation just to make it look more “polished” and less “beta”
Okay, so the idea is simple, kill all enemies to reach the next level. I was going to make a pac-man system where the game has an algorithm that dictates what enemies show up, but now its just random again. I think theres a bug involving more spawning then there should be, I dunno yet
I think it’s a messaging problem, when you destroy two enemies faster than the system can handle, it only registers one, making the game impossible to beat without sniping the enemies slowly.
Comments
This is the avatar for the discord server, so this is what to look for
Anyway; I’m not sure what to do next. New mode? What do you think
Occasionally I find myself in a situation where a decimal would work rather than a whole number
Floating point numbers in general have a lot of drawbacks, and they can lead to confusing situations since they are actually stored as estimates internally (see https://stackoverflow.com/questions/588004/is-floating-point-math-broken or http://floating-point-gui.de/ if you're interested in why), but it would be possible to add them as a new datatype if it's really needed.
As suggested by @Luminous, I might also make the menu have a background, and make the buttons glow when the mouse hovers over- or play some animation just to make it look more “polished” and less “beta”
Also- menu music is another possibility
Anyway. The idea/concept works for the most part. The enemy spawning system works pretty well, too.
What REALLY sets this apart is that the first 6 levels with always spawn the same types every time
Afterward- the spawning is somewhat random again, but not to a degree of the other modes.