CSCE 101: Introduction to Computer Concepts



Lab 4 - Mascot Smasher – MoleMash VariantAcademic HonestyThe work you turn in is to be your work, not copied from someone else, from the web, or generated by a program.Never allow anyone access to your files.Never give anyone your password.Never share your USB memory or email your files to anyone else.Never give anyone a printed copy of your file or an electronic copy.Never allow anyone to copy your work.PurposeYou will be creating a variation of the MoleMash game, for Mascot smashing.In this game, the mascot (sprite) will randomly switch between a picture of the good team, and the rival team. The objective is for the user to smash the rival team, and not hit the good team.Name your project MascotSmasherXY, where XY are your initialsDesignYou will design four different screens, as outlined below. Make sure to do the following:Give meaningful names to your components Style your screens: add color, change the text size, and change the shape of your buttonsScreen 1 (Completed in PreLab)Play MoleMash Button:When clicked, this button will switch you to the Mole Mash Screen.Play Mascot Smasher button:When clicked, this button will switch you to the Mascot Smash Screen.MoleMashScreen (Completed in PreLab)Creating the MoleMash GameFollow this tutorial to create your MoleMash game: Do not create any variations on the game.Back ButtonAdd a Back button to return the user to the original screen.MascotSmashScreenThis screen will be very similar to the MoleMash screen: Here are the differences:Mascot SpriteYour mole sprite will now be named a mascot sprite, it will start with an image of a mascot for a good team, and in code we will make it switch to an image of the rival team.ImagesYou will upload two images, which should be square in size and small, e.g. 40px by 40px. You could find these on Google Images or another place of your choice.Image 1: Mascot for good team (e.g. Gamecocks)Image 2: Mascot for rival team (e.g. Tigers)Make your Mascot sprite begin by showing an image of the good team.LivesWe will now use lives instead of Score.Mascot TimerInitialize the TimerInverval to 1000Code ChangesChange all references of Mole to MascotChange all references of Score to LivesLivesInitialize Lives to 30Every time the clock timer goes off, reduce the lives by 1Upon reset, change lives to 30When the Timer Goes offThe mascot will randomly change between the good team image, and the rival imageYou will do this by making use of the following blocks:The text blocks will contain the image file names, e.g. “usc.jpg”Additionally, check to see if the lives are below 1, if so, direct the user to the GameOver Screen. Note: you will need to make the GameOver Screen.When the Mascot is TouchedWe want to reward the user for smashing the rival team, and penalize them for touching the good team.You can use this if statement with the compare text block to determine which image they clicked on:You are comparing the picture, to the image file name, e.g. usc.jpg.If the user hit the good teamDecrease the lives by 5 because they are being penalized for smashing their own teamIf the user hit the rival teamIncrease the lives by 3 because they are being rewarded for smashing the rival teamMultiply the time interval of the clock by 0.95 to make the game speed up.GameOver ScreenCreate a simple Game over Screen. Make sure it contains a Back button.Submitting your filesMake sure you have tested your app, and that it works perfectlyOpen “My Projects” in the upper right of the App Inventor webpagePut a check next to the project you want to download (you can only download one at a time). Download the modified version of your app, if you have multiple copies.Select Projects ->"Export selected project (.aia) to my computer"The file will download so go, in Chrome, to the download location by clicking the arrow next to the file name at the bottom of the screen and selecting "Show in folder".Move the _______________.aia file to your X:\101Labs directory for grading.Make sure that your file is named MascotSmasherXY.aia, where XY are your initials, as this is the file we will be looking for when grading.Grade BreakdownPointsExpectation10%Completing all 4 screens and correctly navigating20%Completing the PreLab before lab20%Laying out Mascot Smasher50%Adding the Mascot Smasher logic ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download