Small mouse hold bug for mobile devices. Make fat thumbs not be an issue
BIN
The Great Conversion.zip
Normal file
BIN
branch_ex.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
conveyor_ex.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
9
game.js
@ -166,6 +166,8 @@ var LASTPOSITIONUPDATE = 0
|
|||||||
|
|
||||||
var BRIDGEDBELT = false
|
var BRIDGEDBELT = false
|
||||||
|
|
||||||
|
var ALLOWEDTOCLICK = true
|
||||||
|
|
||||||
var MOBILE = false
|
var MOBILE = false
|
||||||
|
|
||||||
var BELTDOWN = {type:"BELT",direction:DOWN/*,direction2 - defines a secondary direction. For two belts at once.*/}
|
var BELTDOWN = {type:"BELT",direction:DOWN/*,direction2 - defines a secondary direction. For two belts at once.*/}
|
||||||
@ -307,6 +309,8 @@ function goHome() {
|
|||||||
GRID_X=20
|
GRID_X=20
|
||||||
GRID_Y=20
|
GRID_Y=20
|
||||||
ITEM_SELECTED=undefined
|
ITEM_SELECTED=undefined
|
||||||
|
MOUSEDOWN=false
|
||||||
|
ALLOWEDTOCLICK=false
|
||||||
endARound()
|
endARound()
|
||||||
for (var button of MENU.buttons) {
|
for (var button of MENU.buttons) {
|
||||||
if (button.submenu_buttons) {
|
if (button.submenu_buttons) {
|
||||||
@ -1693,6 +1697,8 @@ function releaseEvent(e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ALLOWEDTOCLICK=true
|
||||||
|
|
||||||
if (MOVEMODE) {
|
if (MOVEMODE) {
|
||||||
STARTDRAG=undefined
|
STARTDRAG=undefined
|
||||||
}
|
}
|
||||||
@ -2681,8 +2687,9 @@ function DisplayMenu(x,y,menu,ctx) {
|
|||||||
var colWidth = menu.width/menu.cols
|
var colWidth = menu.width/menu.cols
|
||||||
var levelBoxBounds = {x:x+col*colWidth-((menu.cols!==1)?colWidth:colWidth/2),y:y+24+24*row,w:colWidth,h:16}
|
var levelBoxBounds = {x:x+col*colWidth-((menu.cols!==1)?colWidth:colWidth/2),y:y+24+24*row,w:colWidth,h:16}
|
||||||
if (MouseOverBounds(levelBoxBounds)) {
|
if (MouseOverBounds(levelBoxBounds)) {
|
||||||
if (MOUSEDOWN) {
|
if (MOUSEDOWN&&ALLOWEDTOCLICK) {
|
||||||
MOUSEDOWN=false
|
MOUSEDOWN=false
|
||||||
|
ALLOWEDTOCLICK=false
|
||||||
loadStage(menu.levels[i])
|
loadStage(menu.levels[i])
|
||||||
gameState=WAITING
|
gameState=WAITING
|
||||||
}
|
}
|
||||||
|
BIN
screenshot1.png
Normal file
After Width: | Height: | Size: 322 KiB |
BIN
screenshot2.png
Normal file
After Width: | Height: | Size: 246 KiB |
BIN
screenshot3.png
Normal file
After Width: | Height: | Size: 466 KiB |
BIN
screenshot4.png
Normal file
After Width: | Height: | Size: 427 KiB |
BIN
screenshot5.png
Normal file
After Width: | Height: | Size: 225 KiB |
BIN
writer_ex.png
Normal file
After Width: | Height: | Size: 7.9 KiB |