![]() Next, we will make the projectile that will bounce against the paddle, walls, and blocks. ![]() Click the (+) sign and set the vx value to 100 and vy value to 0. ![]() Now in ||controller:Controller||, grab a ||controller:move mySprite with buttons|| and drag it into ||loops:on start||. Again, from ||sprites:Sprites||, drag a ||sprites:set mySprite stay in screen|| into the ||loops:on start||. Set the x value to 79 and the y value to 100. Next, drag a ||sprites:set mySprite position to x y|| from ||sprites:Sprites|| and put it into the ||loops:on start|| block. Draw a purple line near the bottom of the image. Then in the image editor, click on the 16x16 block until it reads 32x32. Then click on ||variables:mySprite|| and select rename variable. Drag a ||sprites:set mySprite to sprite of kind player|| from ||sprites:Sprites|| and place it in the ||loops:on start|| block. Once the editor loads, you will see a green ||loops:on start|| block already in the editor Workspace.Īt first, we want to create the main player of the game which in our case will be a paddle. Go to the MakeCode Arcade editor and select New Project to create a new game. Part Four: Ball and Paddle Interactions.Learn the basics to a basic bouncing projectile game! Use the arrow keys to bounce the projectile off of your paddle to destroy all the blocks on the screen!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |