So I've finally rounded up a little free time and have decided to play around with the little "one key input" Halloween contest that's currently going on. What I've decided to shoot for is a simple little strategy game of a match-3 style.
GridSize = 30
MakeGrid
DisplayGrid
AutoScale
WS
= _NewImage(GridSize
* 8, GridSize
* 8 + 16, 32) _Font 8 'this creates a 30x32 screen
count = 3
count
= (count
+ 1) Mod 3 + 1 Grid(x, y) = count 'Assign values of 1 to 3 equally amongst the grid
xswap
= Int(Rnd * GridSize
) + 1: yswap
= Int(Rnd * GridSize
) + 1 Swap Grid
(xswap
, yswap
), Grid
(x
, y
) 'Shuffle the grid
Scale = (DH - 80) / 640
DisplayScreen
= _NewImage(640 * Scale
, 640 * Scale
, 32)
Now, all this is doing at the moment is tossing a bunch of numbers up on the screen for us, with values of 1, 2, or 3. The goal here would be to clear the screen of all numbers, making matches from the bottom up as you go. Simple enough game play, but one which many people end up failing to do properly. All you need to do to fail is to get stuck with something like 1, 3, 2, 2, 1, 3 for the bottom numbers of the last six columns, and you've lost. It's impossible to make another match-3 with those 6 numbers! There's a few hiding behind those that you need to access, so you didn't clear the rest of the puzzle properly to get a win! :(
Of course, at this point, there's no actual game here -- just a way to toss the numbers up on the screen. You can't match them or eliminate them in and way, shape, or form so far. :P
All I'm curious about at this point is how the AutoScale works out for everyone. This should make a rather small screen, then scale over to fit any desktop out there -- and it shouldn't cover your Window's Taskbar, leaving a little room open at the bottom of the screen. Can folks test this little snippet out for me and let me know how things work with the scaling department for you guys? I don't know of a simple way to get Taskbar height that's cross compatible for all OSes, so I'm just eyeballing it with my display and hoping it doesn't cover anything.
The goal, if scaling works properly, is to substitute numbers for images of candy, and then it'll become a match-3 candy puzzle! (Expandable to Match-4, 5, 6, ect, if I want to add harder levels as a player progresses.) I just need to find a good candy spritesheet somewhere, which shouldn't be too hard to come up with with all the Candy Crush type games out there, and then I can turn this little concept into a Halloween-themed game! (And come Christmas, I can swap candies for reindeer, snowmen, presents, and snowflakes!)