make a website in gm html5
#1
Posted 21 February 2012 - 01:30 AM
-embed flash videos?
-how can you make the game fullscreen within just a div tag, so the view_width and view_port will adjust to the div width and height, i dont want the game/website to stretch within it and it needs to change when the div height and width change. very hard to explain, if you check out my current website http://www.illswimforyou.com you see how when you resize the browser the content doesnt resize just the view port does? i need the same thing but within a certain part (div tags) of an .html or .php document. could this be achieved with embedding an iframe?
#2
Posted 21 February 2012 - 03:15 AM
As you cannot copy/paste text
#3
Posted 23 February 2012 - 12:21 AM
As you cannot copy/paste text
In most cases, that is a good thing.
#4
Posted 23 February 2012 - 02:24 PM
Besides, using the whole frame makes the site sloooowwww....
At the moment, your site takes about 12 seconds in my work computer.
#5
Posted 23 February 2012 - 03:52 PM
They most certainly can be if you code the content onto the page as text.Web sites in HTML5 can't be crawled by search engines, right?
<!DOCTYPE html> <html> <head> <title>Valid HTML5 example</title> </head> <body> <h1>This is valid HTML5 and can be crawled by a search engine spider.</h1> </body> </html>If what you mean by HTML5 is HTML5 canvas applications (i.e. the kind that GMHTML5 generates), then you'd be correct.
GameGeisha
#6
Posted 23 February 2012 - 04:28 PM
view_wport[0]=browser_width
view_hport[0]=browser_height
Not sure if that is what your looking for though.
As for full screen, look up a JavaScript on Google that can do this, and embed the script with the HTML extension.
Edited by time-killer-games, 23 February 2012 - 04:30 PM.
#7
Posted 23 February 2012 - 05:05 PM
As you cannot copy/paste text
In most cases, that is a good thing.
* { select: none; } //CSSNo need for that
#8
Posted 23 February 2012 - 05:16 PM
Not hard to build in, at all.HTML5 canvas is not the best way to build a website.
As you cannot copy/paste text
No, it's extremely annoying for users. I hate websites that do this. Or disable the right mouse button.In most cases, that is a good thing.
As you cannot copy/paste text
#9
Posted 23 February 2012 - 07:51 PM
Long intros, heavy websites, lots of flashy effects just for the sake of it. The mail problem is that mobile usage is growing as hell, and if your site is not mobile friendly, you're losing a lot.
Beware of that... always remember: content and function are kings.
#10
Posted 24 February 2012 - 11:54 AM
As you cannot copy/paste text
In most cases, that is a good thing.* { select: none; } //CSS
No need for that
Your an arse on almost every topic i post on.
I never said it was the only way.
#11
Posted 25 February 2012 - 12:31 PM
Can you share the source?-how can you make the room and view width always be the width of the browser, but the room and view height being much bigger than the height of the browser, while the game is also filling up the browser as "fullscreen".
-embed flash videos?
-how can you make the game fullscreen within just a div tag, so the view_width and view_port will adjust to the div width and height, i dont want the game/website to stretch within it and it needs to change when the div height and width change. very hard to explain, if you check out my current website http://www.illswimforyou.com you see how when you resize the browser the content doesnt resize just the view port does? i need the same thing but within a certain part (div tags) of an .html or .php document. could this be achieved with embedding an iframe?
Edited by autukill, 25 February 2012 - 12:32 PM.
#12
Posted 25 February 2012 - 05:55 PM
I tried making one in HTML5 as well. Doesn't work well. I suggest against it. Not to ruin it for you but at this stage in GM: HTML5's development, you're better off with flash.
#13
Posted 25 February 2012 - 06:51 PM
A HTML5 canvas is part of the website, not a website itself. Websites are created with a collection of HTML elements, CSS for representation and styling in conjunction with Javascript for enhanced functionality.
Search engines like Google cannot search and parse the contents of a Javascript file nor can screen readers which a lot of disabled people use.
Finally disabling the user in any way, like disabling right click or text selection unless it's in order to enhance his experience (e.g. to capture right click for an application helper menu) is generally considered bad practice in web development.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











