Skip to content

Commit

Permalink
avatar fly
Browse files Browse the repository at this point in the history
  • Loading branch information
mudroljub committed Feb 19, 2025
1 parent 31be4fe commit c7bbd3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/actor/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function createAvatar({ skin = STONE, r = 1.2 } = {}) {
export default class Avatar extends Player {
constructor({
skin = STONE,
jumpStyle = jumpStyles.FLY_JUMP,
jumpStyle = skin == DISCO ? jumpStyles.FLY : jumpStyles.FLY_JUMP,
maxJumpTime = .66,
size = 1,
speed = size * 4,
Expand Down
6 changes: 3 additions & 3 deletions core/io/GUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,20 @@ export default class GUI {
}

closeGameScreen() {
this.gameScreen.classList.remove('rpgui-container', 'framed', 'pointer')
this.gameScreen.classList.remove('rpgui-container', 'framed')
this.gameScreen.innerHTML = ''
}

openGameScreen(html) {
this.gameScreen.classList.add('rpgui-container', 'framed', 'pointer')
this.gameScreen.classList.add('rpgui-container', 'framed')
this.gameScreen.innerHTML = html
}

getStartScreen({ goals = [], title = 'Press to START!', subtitle = '' } = {}) {
const li = goals.map(goal => `<li>${goal}</li>`).join('')
return `
<ul>${li}</ul>
<h2>${title}</h2>
<h2 class="pointer">${title}</h2>
${subtitle}
`
}
Expand Down

0 comments on commit c7bbd3b

Please sign in to comment.