6 Final Project Inspiration
default.xml
Welcome to my game! Click to continue.Arial1925100#000000https://static.codehs.com/img/library/landscapes/grass.jpg1001005050https://static.codehs.com/img/library/landscapes/grass.jpghttps://static.codehs.com/img/library/objects/golfball.pnghttps://codehs.com/uploads/156ee7aecf48bcb3ba67a4a9779a9a2750501501050502001005050150200https://codehs.com/uploads/393f23b773e8d6ceb8964a66b44e538fhttps://static.codehs.com/audio/tamagotamagotamagotchi.m4ahttps://codehs.com/uploads/393f23b773e8d6ceb8964a66b44e538fhttps://codehs.com/uploads/393f23b773e8d6ceb8964a66b44e538fhttps://static.codehs.com/audio/tamagotamagotamagotchi.m4ahttps://codehs.com/uploads/d4c4bbca527fb934e09b407c96441593https://static.codehs.com/img/library/objects/golfball.pnghttps://static.codehs.com/img/library/objects/golfball.png
Instructions Page
Course Building Tools
Events
Actions
Sounds
Images
Set Instructions BackgroundAdd Instructions TextTextClick to continueFontArialSize23X position80Y position330Color   Add Instructions TextTextbut avoid the obstacles!FontArialSize23X position80Y position280Color   Add Instructions TextTexttoward the holeFontArialSize23X position80Y position230Color   Add Instructions TextTextClick to hit the ballFontArialSize23X position80Y position180Color   Add Instructions TextTextWelcome to mini golf!FontArialSize23X position80Y position130Color   Hit the BallBounce the BallCheeringPlay SoundFinish HoleBounce the BallSplashPlay SoundReset the Ball1010400250Set Hole Position:x =y =Set Ball Starting Position:x =y =50504004002002001001003040350501005015400Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Set Hole Position:x =y =Set Ball Starting Position:x =y =Set Background Image2502003504508050150101009030019075901519050502501015013515300100100350350Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Set Ball Starting Position:x =y =Set Hole Position:x =y =Set Background Image154504502520015015010180180300280Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Set Hole Position:x =y =Set Ball Starting Position:x =y =Set Background Image51035040010015050-8010015080-50100150120-20100150150101001501804010015021070100150240100100150270130100150300160100150330190100150360220100150390250100150420280100150-301801001500210100150302401001506027010015090300100150120330100150150360100150180390Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Add Obstacleimage =width =height =x =y =Set Hole Position:x =y =Set Ball Starting Position:x =y =400400https://codehs.com/uploads/f168ce8a2ad2f78a96206…20020015050Add Obstacleimage =width =height =x =y =Set Ball Starting Position:x =y =22520215450200500003005002500Add Rectangular Water Featurewidth =height =x =y =Add Rectangular Water Featurewidth =height =x =y =Set Ball Starting Position:x =y =Set Hole Position:x =y =50250425250150150150170Add Obstacleimage =width =height =x =y =Set Hole Position:x =y =Set Ball Starting Position:x =y =151545025040022550040022550275Add Rectangular Water Featurewidth =height =x =y =Add Rectangular Water Featurewidth =height =x =y =Set Hole Position:x =y =Set Ball Starting Position:x =y =Add New HoleAdd New HoleAdd New HoleAdd New HoleAdd New HoleAdd New HoleAdd New HoleAdd New HoleAdd New HoleWhen Ball Is in WaterWhen Ball Hits a WallWhen Ball Is in HoleWhen Ball Hits an ObstacleWhen Mouse is ClickedCreate InstructionsProgram
Output
Example
More
 
Reset Code
This student is viewing this assignment in English. View this page in English?

1 point

Great job completing Introduction to Coding in Sports!

This example shows what is possible if you continue in this experience?you can create a final project similiar to this!

Click your mouse to putt the ball. The ball will move in the direction of the mouse click. The force of the putt is determined by the distance between the cursor and the ball.

Slides and Notes

About

JavaScript Graphics