Topic: Game Programming / Trying to make a bejeweled style game
I know this won’t be an easy answer, or come to think of it an answer at all, but bare with me. When you are coding break everything down. Start with your main game/idea/demo and break it down into its main sections, eg:
blocks start on screen
blocks swap places
if (3 in a row) delete
if(delete) spawn more boxes
etc
After that, take each of these main sections, and break it down into even more basic sections, eg:
blocks swap places:
select a block
select a second block (adjacent)
swap x/y coords
run a line check (checking if there is a line of 3+)
Following that step you can usually see the code you need straight off the bat eg: swap x/y. For others however you will need to break it down even further eg: running a line check, which is linked to a whole different section altogether.
Once everything is broken down to its most simple components, It’s just a matter of asking, “What function can I use to accomplish this tiny task”, and I guarantee you that with enough effort and searching you WILL find that function.
Sorry if you already knew that, and sorry I can’t give any specific help, but hopefully this has helped you or anyone reading this thread in some way.
Best of luck, Odracir123 :)