fix: mobile entry click and add fullscreen button
- Delay virtual controls creation until after game starts (ctrl overlay was intercepting title screen touches) - Add touchstart handler on game container for mobile entry - Add fullscreen button overlay in top-right corner - Hide title text after game starts
This commit is contained in:
+5
-1
@@ -29,7 +29,11 @@ document.body.innerHTML +=
|
||||
'#btn-right{position:absolute;right:0;top:50%;transform:translateY(-50%);width:48px;height:48px}'+
|
||||
'.ctrl-shoot{width:64px;height:64px;border-radius:50%;font-size:24px}'+
|
||||
'.ctrl-prev,.ctrl-next{width:40px;height:40px;font-size:14px}'+
|
||||
'.ctrl-jump{width:52px;height:52px;border-radius:50%;font-size:20px}'
|
||||
'.ctrl-jump{width:52px;height:52px;border-radius:50%;font-size:20px}'+
|
||||
'#btn-fs{position:absolute;top:8px;right:8px;width:40px;height:40px;'+
|
||||
'background:rgba(255,255,255,0.2);border:1px solid rgba(255,255,255,0.3);'+
|
||||
'border-radius:8px;color:#fff;font-size:20px;z-index:20;'+
|
||||
'display:flex;align-items:center;justify-content:center}'
|
||||
: '')+
|
||||
'</style>'+
|
||||
'<div id="g">'+
|
||||
|
||||
Reference in New Issue
Block a user