![]() Log into App Inventor and start a new project. We'll build this app in stages, adding a little bit of the game at a time. Part I: Start a new app and make a ball that responds to fling events If you are not familiar with the basics, try stepping through some of the basic tutorials before continuing. This tutorial assumes you are familiar with the basics of App Inventor- using the Component Designer to build a user interface, and using the Blocks Editor to specify the app's behavior. Dynamic Positioning of sprites on a canvas, based on the size of the screen.Using the Sprite component and the TouchUp, TouchDown, and Flung events.The total score is the number of strokes it takes to complete the entire course. For each fling of the ball, the stroke count goes up by one. The ball will bounce off of the rectangular obstacle and the sides of the course. To play this mini golf app, the player first positions his/her ball within the confines of the tee, and then flings the ball toward the hole. This Mini Golf App demonstrates how to use the Fling, TouchUp, and TouchDown gestures for Sprites Note that these event handlers are also available for the Canvas.
0 Comments
Leave a Reply. |