Skip to content

Commit

Permalink
did some polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
loglot committed Dec 13, 2024
1 parent 8e48d44 commit 8e660c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/variousParts/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class Menu{
this.width[0]=(this.width[0]*4+500)/5
this.width[1]=(this.width[1]*4+1500)/5
this.rotation=((this.rotation*6+1)/7)-this.settingSelect/(this.Catagory.length*10)
this.alpha=(this.alpha*6+this.alphaTarget)/7
this.alpha=(this.alpha*6+this.alphaTarget+.3)/7
if(kd.BACKSPACE.isDown()||buttons[1]){
this.game.state="menu"
}
Expand Down Expand Up @@ -119,7 +119,6 @@ export class Menu{
ctx.save();
this.game.draw.Text("=>", 50, 750, "black", "white", ctx, 120)
this.CatagoryY = (this.CatagoryY*9 +(-100 * (this.settingSelect)))/10
this.game.debug.add((this.CatagoryY))
for(let i = 0; i < this.Catagory.length; i++){

var ything =450+ (100*i) + (this.CatagoryY)
Expand Down
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ function stick(){
game.display.tick()
kd.tick()
game.debug.tick()
game.menu.tick()
if(game.state=="menu"||game.menu.alpha>0){

game.menu.tick()
}
FPSCalc()


Expand Down

0 comments on commit 8e660c5

Please sign in to comment.