Open Side Menu Go to the Top

07-03-2012 , 03:52 PM
Hi everyone,

I've been trying to build a basic wheel of fortune game in html 5 following a simple tutorial but I keep getting totally lost as I'm a massive newb.

This is the tutorial I've been trying to follow: http://www.switchonthecode.com/tutor...g-html5-canvas

I'm trying to modify it so it only has three segments, but everytime I try and sandbox the code so I can modify the relevant parts it does not create the wheel (the button gets made intact) and I can't get any further.

Any idea what I might be doing wrong/simpler way to construct a basic game like this in html 5?

Many apologies if this is literally the simplest/dumbest/most laughable question in the history of this forum.
Building a basic wheel of fortune in HTML 5 Quote
Building a basic wheel of fortune in HTML 5
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Building a basic wheel of fortune in HTML 5
07-04-2012 , 01:08 AM
Find this:

Code:
var arc = Math.PI / 6;
and replace with this:

Code:
var arc = Math.PI / 1.5;
That gave me a 3-segment wheel.
Building a basic wheel of fortune in HTML 5 Quote
Building a basic wheel of fortune in HTML 5
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Building a basic wheel of fortune in HTML 5

      
m