Page 1 of 1
So I need help with spawning a item
Posted: Sun Apr 24, 2022 4:25 am
by Kallan00
So I am making a game where you collect randomly spawned berry's and for every berry collected you get a point for the shop to get upgrades, how would I go about all of this?
Re: So I need help with spawning a item
Posted: Sun Apr 24, 2022 10:42 am
by darkfrei
Kallan00 wrote: ↑Sun Apr 24, 2022 4:25 am
So I am making a game where you collect randomly spawned berry's and for every berry collected you get a point for the shop to get upgrades, how would I go about all of this?
How to make a player and berries or how to make the shop?
Re: So I need help with spawning a item
Posted: Sun Apr 24, 2022 1:50 pm
by yal2du
Kallan00,
You have to turn the idea in your mind into a concrete specification in a symbolic language. Above, you have taken the first step by providing a terse synopsis in English. The next step really depends upon your prior experience with programming, but most generally it entails breaking down the detailed actions to be accomplished to move between states in the experience, and expressing those in a representation of data structures and the algorithms that will operate upon them. The way you imagine this happening is different from how anyone else will imagine it. Eventually you will have broken down the tasks needed to be completed to such a level that you will understand how to accomplish it in löve, or at least lua, or there will be more specific questions that arise. That first step, breaking down the idea into concrete subtasks, needs to occur before anyone is going to be able to provide much input on how you might go about programming any portion of it.
https://eecs.wsu.edu/~cs150/tdd.htm