Hello @all;
Here is the first playable demo of that project, which causes me to work with FBA Creator.
Look at the code it start's with, download, relax and have fun. Source will follow up later when ready.
Code:
--------------------------------------------------
--
-- My favourite 3-in-a-Row swapping game(s):
--
--[[----------------------------------------------
--
Get 3 or more equal symbols in a vertical or
horizontal row so they vanish and reveal a new
background tile.
Two symbols are swapped by tapping between them.
New Symbols will be filled up from north, south,
west or east.
When all new background tiles are revealed,
the level will increase.
Symbols may be trapped in a cage or in a crate:
They have to be set free first, before they can
be swapped and vanish.
--------------------------------------------------
Birger Töpelmann June'09
made with FBA 0.2.0.135
------------------------------------------------]]
app = 0
pause = 0
level = 1
-- global constants needed for events
gridx1,gridy1,gridw,gridh = -1,-1,-1,-1
xclick,yclick = -1,-1
SOUTH = 0
NORTH = 1
WEST = 2
EAST = 3
TEST = 4
gravity = SOUTH
gravitynxt = gravity
--------------------------------------------------
SND_STUCK = loadsound("stuck.wav")
SND_SWAP = loadsound("swap.wav")
SND_REMOVE = loadsound("remove.wav")
SND_LEVEL = loadsound("meepmeep.wav")
SND_EXIT = loadsound("VISTA.WAV")
--------------------------------------------------
include "Events.fba"
include "PrintBig.fba"
--GRIDBACK = 0 -- define globals for Gamegrid
--GRIDSYMB = 0
--GRIDTABL = {}
include "Game1grid.fba"
--------------------------------------------------
Please consider that it is still under development, things to do are:
Check for valid moves available (here I'm really stucked in the moment);
Setup screen, for preselect count of different symbols;
setup the gamegrid size;
implement the trapped symbols;
help screens(tutorial);
a controlbar for going back one level, play, pause, stop & skip level.
different levels where the grid is shaped (walls);
a puzzle mode, where some symbols have to be joined to a group;
does anyone need a highscore list?
Any ideas how to add points?
Graphics & Font are made by myself, Sounds were found on a Backup CD from my ex 486.
And is it a failure or a feature? I have to start the app twice, to make it run on my PDA with WM6.
Regards Birger