Jump to content


Photo

make a website in gm html5


  • Please log in to reply
12 replies to this topic

#1 njp

njp

    Panda

  • GMC Member
  • 2325 posts
  • Version:GM8

Posted 21 February 2012 - 01:30 AM

-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?
  • 0

#2 slam drago

slam drago

    The slam drag

  • New Member
  • 422 posts
  • Version:GM:Studio

Posted 21 February 2012 - 03:15 AM

HTML5 canvas is not the best way to build a website.

As you cannot copy/paste text
  • 0

#3 iSeiren

iSeiren

    www.DWorrall.com

  • GMC Member
  • 435 posts
  • Version:GM:Studio

Posted 23 February 2012 - 12:21 AM

As you cannot copy/paste text


In most cases, that is a good thing.
  • 0

#4 interpolicer

interpolicer

    GMC Member

  • GMC Member
  • 146 posts
  • Version:GM8.1

Posted 23 February 2012 - 02:24 PM

Web sites in HTML5 can't be crawled by search engines, right?
Besides, using the whole frame makes the site sloooowwww....
At the moment, your site takes about 12 seconds in my work computer.
  • 0

#5 GameGeisha

GameGeisha

    GameGeisha

  • GMC Member
  • 2740 posts
  • Version:GM:Studio

Posted 23 February 2012 - 03:52 PM

Web sites in HTML5 can't be crawled by search engines, right?

They most certainly can be if you code the content onto the page as text.
<!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
  • 0

#6 time-killer-games

time-killer-games

    GMC Member

  • Banned Users
  • 539 posts
  • Version:GM:Studio

Posted 23 February 2012 - 04:28 PM

You can embed flash of any kind within the canvas using HTML extension look for it the forums. As for the view thing, try this code or something similar in the step event of an invisible persistent object in the first room:

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 Artaex Media

Artaex Media

    Artaex Media

  • GMC Member
  • 1528 posts
  • Version:GM8

Posted 23 February 2012 - 05:05 PM


As you cannot copy/paste text


In most cases, that is a good thing.

* { select: none; } //CSS

No need for that :)
  • 0

#8 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 23 February 2012 - 05:16 PM

HTML5 canvas is not the best way to build a website.

As you cannot copy/paste text

Not hard to build in, at all.


As you cannot copy/paste text

In most cases, that is a good thing.

No, it's extremely annoying for users. I hate websites that do this. Or disable the right mouse button.
  • 0

#9 rucodemente

rucodemente

    GMC Member

  • GMC Member
  • 55 posts

Posted 23 February 2012 - 07:51 PM

The problem with HTML5 is that it seems everybody is doing all the mistakes people made with flash back in ye goode olde days.

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.
  • 0

#10 iSeiren

iSeiren

    www.DWorrall.com

  • GMC Member
  • 435 posts
  • Version:GM:Studio

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.
  • 0

#11 autukill

autukill

    GMC Member

  • GMC Member
  • 9 posts

Posted 25 February 2012 - 12:31 PM

-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?

Can you share the source?
:smile:

Edited by autukill, 25 February 2012 - 12:32 PM.

  • 0

#12 Sirosky

Sirosky

    GMC Member

  • GMC Member
  • 1323 posts
  • Version:GM8

Posted 25 February 2012 - 05:55 PM

^^ It's not very difficult to make, lol.

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.
  • 1

#13 alexandervrs

alexandervrs

    GMC Member

  • GMC Member
  • 417 posts
  • Version:GM:Studio

Posted 25 February 2012 - 06:51 PM

Creating canvas websites is that same when we created Flash websites back in 2004. They look nice but are clunky to update and non-indexable by search engines.
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users