Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Pool Game
Old
davidghemer
Member
 
Status: Offline
Posts: 38
Join Date: Nov 2011
Default Pool Game - 11-30-2011, 10: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 04:54 AM. Reason: Add pointer to the latest code
   
Reply With Quote
 

Tags
collision, game, pool, trigonometry

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.