There's one week left for the FlashLite competition, I think most people will
have their entries ready and submitted or inthe final stage of testing by now.
Just thought I'd start a thread where we can post info about what we made and
why... what we came up against etc.
For my entry I decided to make a game. I've been working on tile based engines
for Flash 6 and 7 for a while and decideded (without looking at the CDK) that I
would make one of those for FlashLite.
I checked out the CDK to see what I would need to do to to port my current
tile engine. I was pretty horrified when I found out there was no attach movie
or arrays. I set about adding all my clips manually to the stage and naming
them as I would have if they had been attached. Each tile is a movieclip with a
different graphic on every frame.
For my levels I build a virtual array every time the user enters a new room.
Each level is a new swf, and each room is a frame in that swf. I have each
frame labeled like map_row_col (map_2_4 for example). On that frame I set 2
strings, one for the tile type, and 1 for the gfx frame. I pass that to a
rendering frame in the main movie with splits the strings into 143 tiles and
143 gfx tiles (the screen is 11 tiles wide by 13 tiles high (tile is 16 * 16))
then applies that to each tile, making the redundant ones invisible.
When I move the character I check against the virtual array to make sure there
are no collisions.
Screen shots are at:
http://www.flash-git.net/levelMapGems2.png Hopefully we can all show what we submitted?
G