Thread: Pool Game
View Single Post
Pool Game
Old
davidghemer
Member
 
Status: Offline
Posts: 38
Join Date: Nov 2011
Default Pool Game - 11-30-2011, 09:53 PM

I decided for some crazy reason to have a go at developing a pool game.

Not too sure how far I will get, but I've attached the first stage. At this stage I can aim the cue and adjust the amount of power on the shot. I've also implemented collision detection on the one ball (other balls hidden for now).

For the next stage I will introduce collision detection for the cushions.

Feel free to use and modify.

#################################################
# EDIT -
# Click on the PoolGame_LATEST.a2w attachment for the latest version
#
# Instructions
# -----------
# Down arrow to pull the cue back (increase power).
# Power is discrete so press the button once to increase power by one
# Up arrow to decrease power
# Left and right arrows to aim the cue ball
# Space to complete a shot
# Restart the game if the yellow ball is pocketed.
#################################################
Attached Files
File Type: a2w PoolGame_Stage1.a2w (589.4 KB, 82 views)
File Type: a2w PoolGame_LATEST.a2w (883.7 KB, 161 views)


For video tutorials on programming in Alice 2.2 check out my YouTube channel

http://www.youtube.com/user/drdave785

Also check out my Programming in Alice blog at

http://programminginalice.com

Last edited by davidghemer; 12-12-2011 at 03:54 AM. Reason: Add pointer to the latest code
   
Reply With Quote