From 140183b55a90356fd81e3e33c0cbf18b56dd29fd Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Sat, 8 Jun 2024 13:40:48 +0100 Subject: [PATCH] correct isometric level (#51) --- CHANGELOG_SINCE_LAST_VERSION.md | 1 + mathsteroids.js | 23 ++++++++++++++--------- titlescreen.js | 12 +++++++----- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/CHANGELOG_SINCE_LAST_VERSION.md b/CHANGELOG_SINCE_LAST_VERSION.md index 1711bf3..0148496 100644 --- a/CHANGELOG_SINCE_LAST_VERSION.md +++ b/CHANGELOG_SINCE_LAST_VERSION.md @@ -1 +1,2 @@ - Fix control buttons bug +- Correct isometric level diff --git a/mathsteroids.js b/mathsteroids.js index 24b9b63..3d5105f 100644 --- a/mathsteroids.js +++ b/mathsteroids.js @@ -791,12 +791,16 @@ function draw_shape(){ var vangle = 0 var hangle = 0 var N = 100 - if(circle==1){hangle=3*Math.PI/4} + if(circle==1){ + hangle=3*Math.PI/4 + } var prev = vangle var preh = hangle - for(var i=0;i