airloha.blogg.se

Bust a move 4 sprites
Bust a move 4 sprites











bust a move 4 sprites
  1. #BUST A MOVE 4 SPRITES CODE#
  2. #BUST A MOVE 4 SPRITES PC#
  3. #BUST A MOVE 4 SPRITES FREE#

Happily, there's a function in 'coredll.dll' that satisfied this need:Ĭopy Code if ((GetAsyncKeyState(( int).Left) & 0x8000) != 0)Īngle+= 2 // x- if ((GetAsyncKeyState(( int).Right) & 0x8000) != 0) One of the first problem I had on this project, was to handle the key presses more accurately than the key related events of the winforms. Otherwise, when you press an hardware key, an application could be started and appears on top of the game window.

bust a move 4 sprites

GXInput : This class come from a MSDN sample game project, and is very useful to register all the hardware keys of the pocket pc.GraphicsHelper : This helper class contains static members used by various GDI+ methods (some of them are only used for testing purpose.).AngleHelper : This helper class is used to calculate the movement of the player bubble sprite from its angle and distance.This bitmap is cached and used during the game (by the BubbleGame class) as the background, so we only have to draw the moving bubbles, not the fixed ones. It has a method called ' CreateBoardBitmap ' that will create a bitmap from the in-memory game board (with complete background, walls, ceiling, and fixed bubbles). It has methods for loading a level in memory, for detecting Player bubble collisions, detecting bubble neighbors and falling bubbles, as well as detecting if a bubble has reached the deadline. GameBoard : This class represents the in-memory game board.MovingSprites : This class will hold all the destroyed and falling bubbles while they are moving on screen.BubbleSprite : Represents a moving bubble (player bubble, falling and exploding bubbles), this class keeps track of the direction and speed of each bubble, as well as its position on screen and on the game board.LauncherImages : Just like the BubbleImages class, this class act as a Bitmap cache for the Launcher bitmaps.BubbleImages : In this class, you'll find some static methods and fields that act like a Bitmap cache of the Bubble images.Bubble : This class represents a bubble on the in-memory game board, it hold some useful info like the kind of bubble (its color), the position of the bubble on the game board, and the rectangle of the bubble on the screen (the position of the bubble sprite on the screen).BubbleGame : This is the main class of the game, it contain all the high-level features and game logic (most of it in the ' Go ' method).There's a class for each important part of the game: You lose a live when a bubble reach the deadline (the red line). The ceiling will get down every 8 launched bubbles.

bust a move 4 sprites

If there's more than three bubble of the same color on the board, they explore, and every bubble that's not attached will fall as well. The bubble will 'stick' on the first encountered bubble. You have a limited time to launch a colored bubble on the board. The main idea is based on the famous Puzzle Bobble game: the goal of the game is to destroy every bubble on the board.

#BUST A MOVE 4 SPRITES PC#

It's worth to be noted that I currently do not own a Pocket PC, I borrowed my boss' ppc at the beginning of the project (thank Patrick !) just to see if the animation speed would be decent, but after that I only used the emulator, so I hope that it will perform nicely on a 'real' pocket pc ! In the 'Menu' button on the game screen, you'll find a 'Constant frame rate' entry, uncheck it if the game is too slow.

  • Perhaps use GAPI to improve animation speed (I did not have this opportunity with the emulator.
  • Add some special bubbles (exploding bubbles, multi-color bubble, and so on.).
  • it will be much more easy once the level editor is finished !)
  • More levels (the sample levels were created with Notepad.
  • Better graphics (the launcher is not really finished, the bubbles are not so nice, the background.).
  • Anyway, a lot of things could be enhanced further more: Happily, they extended the deadline, so I had time to improve the whole thing :). It was functional, but did not have any graphics, and only had a random level generator. Net compact framework variant of this famous game ? I started this project from scratch at the beginning of April, when I saw that CodeProject organized a contest, but at the end of April, it wasn't finished.

    #BUST A MOVE 4 SPRITES FREE#

    So why not create a free and open source. Many variants are playable on many platforms, but the only clones I saw for Pocket Pc were not free. I always loved the original Puzzle Bobble game. This is my contribution to the CodeProject compact framework contest.













    Bust a move 4 sprites