made a look up table for all possible values, will adjust later

This commit is contained in:
Meleeman01 2024-12-01 06:24:05 -06:00
parent 2dbc436d6c
commit 31637dc5c2

View File

@ -37,24 +37,25 @@
{'3':{'450':.2445}}, {'3':{'450':.2445}},
{'4':{'450':.242}}, {'4':{'450':.242}},
{'5':{'300':.239}}, {'5':{'300':.239}},
{'6':{'300':.239}}, {'6':{'600':.2365}},
{'7':{'300':.239}}, {'7':{'5000':.234}},
{'8':{'300':.239}}, {'8':{'300':.2312}},
{'9':{'300':.239}}, {'9':{'600':.2287}},
{'10':{'300':.239}}, {'10':{'300':.226}},
{'11':{'300':.239}}, {'11':{'500':.2235}},
{'12':{'300':.239}},
{'13':{'300':.239}}, {'12':{'800':.2209}},
{'14':{'300':.239}}, {'13':{'550':.2183}},
{'15':{'300':.239}}, {'14':{'400':.2157}},
{'16':{'300':.239}}, {'15':{'300':.2131}},
{'17':{'300':.239}}, {'16':{'900':.2105}},
{'18':{'300':.239}}, {'17':{'500':.2079}},
{'19':{'300':.239}}, {'18':{'spin again':.2053}},
{'20':{'300':.239}}, {'19':{'900':.2027}},
{'21':{'300':.239}}, {'20':{'Bankrupt':.2000}},
{'22':{'300':.239}}, {'21':{'600':.1974}},
{'23':{'300':.239}} {'22':{'400':.1947}},
{'23':{'300':.1921}}
]; ];
const canvas = document.getElementById('wheelCanvas'); const canvas = document.getElementById('wheelCanvas');
const ctx = canvas.getContext('2d'); const ctx = canvas.getContext('2d');
@ -126,7 +127,7 @@
console.log(anglePerSegment); console.log(anglePerSegment);
let currentRotation = rotation; // Start from the current rotation let currentRotation = rotation; // Start from the current rotation
spinSpeed = 0.239; // Initial speed spinSpeed = 0.1921; // Initial speed
function animate() { function animate() {