![]() ![]() ![]() There are multiple copies of the graphics so a bunch can be shown on the screen without blinking. Positions 0 - 25 and pfx=14 sets the man a little after the beginning and scrolls left or right, allways showing a As the game is played the display will show a portion of the arrays 25 positions wide at a time. The arrays will start at position 0 and go up to position 100 right now but should go to 400 or 500 for longer levels. The position is a number from the left of the playfield and the graphic is a set of bricks, stars, spikes, hearts. In each of the arrays we get to define things like this pf1 = "position=graphic position=graphic ect ect.". Row, pf3 for the third row, pf4 for the forth row, and pf5 for the bottom row (the ground). These arrays hold the positions of the brick platforms, stars, hearts, and spikes. pf1 is displayed across the top row of platforms on the playfield, pf2 for the second The playfield is created from these 5 arrays pf1, pf2, pf3, pf4, and pf5. '-I chose this method of defining the whole array in one statement versus defining a whole lot of individual variables of the same array '-Issues: do not let the same object show up twice on the screen it will blink, that's why there are 9 images, to avoid repeats '-The screen will show 25 blocks of the playfield and calculate 30 to push objects off the screen '-ground are ground images icon door to next level ![]() '-bricks are red bricks spike are red spikes '-bricks are green bricks spike are green spikes '-bricks are blue bricks star are red stars icon is the sign pointing left '-bricks are brown bricks star are blue stars icon is the sign pointing right '-These are all 5 blocks wide These are 1 block wide These are 2 blocks wide '-The second number represents the object on that position - pf1 = "18=1", 1 is the brown bricks '-The first number represents the position from the left on the playfield - pf1 = "18=1", 18 is the playfield position '-These arrays correspond with 5 different levels of platforms and objects on the play field - pf1 = "18=1", pf1 is the top row of platforms Pfw = 100 'Playfield width - not used yet Pfy5 = 640 'Playfield line 5 Y position, the ground Will be showing the author name with the level screen later on to give credit where credit is due! Thanks in advance. Here is an example of the routine that creates the whole playfield (variables pf1, pf2, pf3, pf4, pf5). Who would like to take on the challenge of creating the play fields for the different levels. Stuff like the end game screens and some fine tuning on the graphic images. I've been working on this for quite a while with more to go. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |