FreezingMoon / AncientBeast

The Turn Based Strategy Game/eSport. Master your beasts! 🐺
https://AncientBeast.com
GNU Affero General Public License v3.0
1.67k stars 585 forks source link

game launcher #30

Closed DreadKnight closed 11 years ago

DreadKnight commented 12 years ago

The game could benefit by being integrated with some of the game portals out there that allow visitors to browse and play games right from the browser. There's a list of such game portals that's being compiled in another issue, see #492 for it. The problem is that their canvases or iframes for the games themselves are overall too small to properly enjoy the game.

The project should have a launcher that could include:

To keep it very simple, there could be another frame with website link and fullscreen toggle at the top, containing the game.

Some helpful code might be found here https://github.com/toji/game-shim

DreadKnight commented 12 years ago

Most browsers use F11 key for this kind of stuff. We could have like a click-able button to execute F11 maybe and cycle between fullscreen and small; there's already an ability type icon suitable for it.

DreadKnight commented 12 years ago

Seems coded buttons are excluded from using function keys. A lame workaround would be to mention something like "Press F11 for full screen.".

DreadKnight commented 12 years ago

On second thought, the HTML5 youtube player has a button that turns it full screen, so it's possible.

Hypersomniac commented 11 years ago

http://www.ailis.de/~k/archives/66-jQuery-Fullscreen-Plugin.html

DreadKnight commented 11 years ago

For facebook and other portals that allow playing games from the browser, we should have a launcher that allows playing the game (iframe?) while also linking to the homepage, along with a fullscreen or open in new tab buttons; will revamp this.

DreadKnight commented 11 years ago

This can be tested over here for example http://gamejolt.com/games/arcade/ancient-beast/15964/