Hey Corona Fans,
Hoping the forum will help me a bit further in my first try out for a game.
First about me:
Can code in: C#,PHP,Objective-C. Made apps and websites. But never a game. So I learned a bit about LUA and Corona SDK with the excellent tutorials from Jay. (Maker of outlaw).
But now I want to make a game and I am stuck because I can’t figure the simple logic. (Is this normal?)
The game goes like this:
You have a game board. In the centre of the screen you have 6 icons that has a square overlay over that you move with swipe. Above and down the icons are other icons. You can move them up and down into the overlay field (you can move only left or right with the overlay) with the square. I want to match the icons from up and down in the middle.
Problem:
This is my logic. I make an array for the centre field to check if any of the 6 icons are a match (3 or higher). But how should I code the column that is moving up and down into the matching field. Push the icon in the array and removing the one that is being pushed down or up ?
How would I know which one I just pushed in the centre field?
Bare with me it’s my first game and game logic is much harder than programming non-games.