![bricks n balls interesting trip bricks n balls interesting trip](https://i.ytimg.com/vi/hvq2hRpXGF0/maxresdefault.jpg)
- #Bricks n balls interesting trip how to
- #Bricks n balls interesting trip code
- #Bricks n balls interesting trip download
In the next section you will come to know the purpose of We are adding this rectangle in the Canvas as well as in a List of so once all the line in the game will be completed and you have successfully completed stages it means you won the game. We are maintaining the game stage information in the text file. So for each brick we have specified colors. As I have discussed earlier, we have three types of bricks that need to be broken. It will help to identify which type of brick is that. We have picked up three different colors to display brick. We have created a dynamic rectangle with a filled different color. There are many things that need to be noticed in the above code. Int brickType = Convert.ToInt16(brickInfo) īricks.Insert((j + ((i - 1) * 10)) - 1, rct) If (!string.IsNullOrWhiteSpace(brickInfo)) Congratulation!!!") īrickInfo = stagesInfo.Split( ' ,') MessageBox.Show( " You have completed all the Stage.
#Bricks n balls interesting trip code
Let's see the code for how we are moving the game ball.Ĭopy Code private void brickGenerator( int currentStage) This two control will be help us to create great User Interface. Our important controls are Canvas and Grid control. Even so many articles are written on each and every point. but i am not going to discuss each one in depth. We have used WPF features to enhance User interface. XAML CodeĪs we have dynamically generated bricks on the top, so we do not need more xaml code to generate bricks.Ĭopy Code It means the ball will be moving on the right bottom corner.ģ - X increments and Y will decrement. The 0th direction we need to increment X and Y. The values of X and Y are zero at that place, when we are moving to Top Left in the canvas is the starting positing of the X and Y axes. The current rotation is anti-clock wise and if the ball touches the bottom brick with current position 0 then the next move will be on the direction of 3 (please see Inside the Black game area, the ball can be rotated either clockwise or anti-clock wise.ĭepending on that we create a value for each rotation to indicate which state of rotation is going on in the game. Each indicates how many times the ball needs to touchĪ particular brick to be broken. The value can between comma can be 1, 2 or 3. If no value is supplied between tww commas then it will not generate bricks in the game area. There are many possible combinations that can be created. Each line contains information of how top bricks will look like. You can find a text file with the project with a number of comma separated values inside it.Ĭopy Code ,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,Ībove is one possible example of how it may look like. You can move these bricks using the touch screen at a time. You can see there are two balls and two moveable bricks at the bottom. Initially the screen will be totally blank. Opposite color slider will not work for you. While playing the game, make sure Blue ball hit the Blue slider and Red with Red one. To resume in play mode you need to hit space again. In between the game if you feel to pause the game, then simply press space bar.
#Bricks n balls interesting trip how to
You can press F1 to get more information about how to play the game. by pressing F5 button game will be started. I have created seven different stages to play this game.Īs you can see in the above screenshot. You can switch the slider position from left hand finger (that handle Red one) could move Blue slider if you touch with your right hand finger first. with the help of single finger you can move only Red slider. you need to use two finger to move the brick. First touch will be considered as the movement for the Red brick and the another for Blue. You can move your finger on that area to move sliders. You can handle Red/Blue sliders using GoldenPlate. Right Arrow: Blue brick will move to right
You can challenge your friend by creating complicated game levels. This game will provide you the intermediate file to create your own game levels as many as you want. You should try your best to complete all the levels. The game ball touches the bottom area then the game will be over. In this game you need to handle two bottom bricks (Red and Blue) with your finger. This game is a brick ball game that needs to break bricks on the top using two balls.
#Bricks n balls interesting trip download