🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest spawn Activity
Freezing and pulling 100% at a CPU typically means you're running circles while computing something and never finish. One such case is in the spawn food code:
/*Choses a position at random anywhere on the play grid, execpt for the edges or the space which the
* snake head occupies.*/
do { foodGridP…
![Platform spawn system](https://uploads.gamedev.net/forums/monthly_2020_10/b03f6629775149bd9abb6ea8186195fd.first.png)
There are many ways to do this…I will tell you of one using: smoothstep
- I'm assuming that your screen Y coordinates go from 0 at the top down to MAXY at the bottom of your screen
- Let's assume that at the bottom of your screen i.e. at Y = MAXY you want 10 platforms and at the top i.e. at Y = 0 of your…
Advertisement
Advertisement