We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

make game size responcive - Mochi Games for Oxwall | Forum

tammy harris
tammy harris Jul 26 '14

i have got this to work on embed games to make them responsive to different size screens 

also i heard that you thinking of make is so site users can upload games 
that will be way cool 

on upload a game this should be auto generated in embed textra

with the game links auto put in 

replace the (  GAMELINK.COM )
WITH THE URL OF YOUR GAME IN THE 3 PLACES

<style type="text/css" media="screen">

html, body {height:100%;}

#flashcontent { width:100%; height:100%; }

</style>


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="700" id="test" align="middle">

<param name="movie" value="https://www.GAMELINK.COM" />

<param name="quality" value="high" />

<param name="bgcolor" value="#ffffff" />

<param name="play" value="true" />

<param name="loop" value="true" />

<param name="wmode" value="transparent" />

<param name="scale" value="showall" />

<param name="menu" value="true" />

<param name="devicefont" value="false" />

<param name="salign" value="" />

<param name="allowScriptAccess" value="sameDomain" />

<!--[if !IE]>-->

<object type="application/x-shockwave-flash"

data="https://www.GAMELINK.COM" width="100%" height="700">

<param name="movie" value="https://www.GAMELINK.COM" />

<param name="quality" value="high" />

<param name="bgcolor" value="#ffffff" />

<param name="play" value="true" />

<param name="loop" value="true" />

<param name="wmode" value="transparent" />

<param name="scale" value="showall" />

<param name="menu" value="true" />

<param name="devicefont" value="false" />

<param name="salign" value="" />

<param name="allowScriptAccess" value="sameDomain" />

<!--<![endif]-->

<a href="https://www.adobe.com/go/getflash">

<img src="https://www.adobe.com/images/shared/d...ash_player.gif" alt="Get Adobe Flash player" />

</a>

<!--[if !IE]>-->

</object>

<!--<![endif]-->

</object>



Stig
Stig Aug 11 '14
Thanks Tammy will try that then.

Yes game upload for members is a great idea and should be implemented.
I'd like to restrict which members can upload though (very important).

They would need to choose the file either (.swf/.unity3d or iframe/embed code).
Title, description, tags, and slug all same as is now already.
But I want option to make submitted games to go into review status if possible too!
That's all I'm asking.

Dev come on man please can you let us know if you have started working on this or if and when you will be making a start on it? Thanks!
The Forum post is edited by Stig Aug 11 '14
tammy harris
tammy harris Aug 12 '14
not only that it should be able html5 games and use the api plugin so developers can hook to notifications and stuff
Stig
Stig Aug 12 '14
Yep. Game page needs to be responsive so as to fit all the game in.

Eg check this game out http://arcadegamers.club/games/mafia-kills

The games size is 960x600. But it don't fit in the page :(

Dev can you update/fix?
tammy harris
tammy harris Aug 12 '14
If u use the above code will fix it 
Stig
Stig Aug 12 '14
Thanks Tammy but I cannot use that code as that is for .SWF (flash) files.
That game is a .Unity3d game and requires different embed code.
I will have to look into a responsive embed code for .unity3d games.
Currently am just using iframe.
Thanks.
tammy harris
tammy harris Aug 12 '14
I don't have any games in that format if I find some in have a go at make responcive
Joseph
Joseph Sep 14 '14
tried the code but doesnt work the game does not load
tammy harris
tammy harris Sep 15 '14
works fime for me in every bowers make shore you put the right url to the game swf file
You do not have permission to reply this topic