Topic:   HTML5 Docs - I need your input   (Read 40919 times)


0 Members and 3 Guests are viewing this topic.

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #45 on: January 12, 2012, 01:28:44 PM »
Well if it's saved on the server maybe you can add an option for a file to be shared and others can load it. People WILL be making templates or engines or generally code they want to let others use.
But I still like the option of downloading/uploading files.
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Circuit


  • GMG-er

  • **


  • Posts: 299

  • blast from the past
Re: HTML5 Docs - I need your input
« Reply #46 on: January 12, 2012, 01:36:47 PM »
There should be a method to calculate the distance between 2 points:

function distance (x1, y1, x2, y2)
{
  return Sqrt(POW(x1-x2, 2) + POW(y1-y2, 2));
}

EDIT: there should also be a method to raise a number to a given power.

function POW (base, exponent)
{
  //etc.
}
« Last Edit: January 12, 2012, 02:46:49 PM by Circuit »

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #47 on: January 12, 2012, 03:14:25 PM »
can u find the modulus of a number? ???
like: 5 % 2 = 1
Yeah that'd work.

Quote
Well if it's saved on the server maybe you can add an option for a file to be shared and others can load it. People WILL be making templates or engines or generally code they want to let others use.
But I still like the option of downloading/uploading files.
I like that idea.

Quote
There should be a method to calculate the distance between 2 points:

function distance (x1, y1, x2, y2)
{
  return Sqrt(POW(x1-x2, 2) + POW(y1-y2, 2));
}

EDIT: there should also be a method to raise a number to a given power.

function POW (base, exponent)
{
  //etc.
}
I'll make sure to add those.



I'm going to try and add portability functionality where you can share game code. In the export tab you'd click a download button where it downloads your game file, then people can import it to try it out.

Now that I think of it, people will want to be able to play other people's games. So! I think I'll add an extra feature in the export tab. Where you'll be able to click a button that uploads your compiled game to the GMG and gives you a link you can copy. When you go to the link it'll open up a web page with your game that you can play. Share the link, and others can play your game.

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #48 on: January 12, 2012, 03:37:16 PM »
You sure you want to take on adding all that to this site? If it attracts enough people like you wanted we'll need more space and that costs money.
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #49 on: January 12, 2012, 04:14:36 PM »
Well, the thing is, the site will only store text. The compiled versions and saved files won't be that big. A huge project would still maybe only take up 70kb of space.

I figure if we use 70 kb per project and per compiled game, then that's 140kb total per project. Then lets say the average person has 5 projects, that'd be 700kb.

If we got 1000 members actively using I suspect it'd reach 7mb. 10,000 members would make it go to 70mb.

I don't have much of a worry about space. The GMG seemingly has plenty of it. Plus if we're getting too large and need to expand, I'll put up an ad to pay for it.

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #50 on: January 12, 2012, 05:25:37 PM »
Sounds awesome! Does this mean it's loading any pictures or sounds from the user's computer?
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #51 on: January 12, 2012, 07:52:33 PM »
Sounds awesome! Does this mean it's loading any pictures or sounds from the user's computer?
Good question. The user will have to upload his/her media onto the net. Their own site or some file hosting site.
To add an image to your game you just gotta paste the link of the image.

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #52 on: January 12, 2012, 08:13:13 PM »
And when it compiles?? ???
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #53 on: January 12, 2012, 08:15:23 PM »
It still has the link and still works.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #54 on: January 15, 2012, 02:10:21 AM »
Update time!

I finished all the commands! Can't tell ya if they work. I've tested some but I'll test the main ones. I'll probably leave some to you guys to test.
So far drawing seems to be perfect, works really well.

Now I just gotta add the saving feature and make a fancy splash screen. I'm unsure how difficult the saving feature will be.

Oh yeah, I also gotta add this:
Quote
I'm going to try and add portability functionality where you can share game code. In the export tab you'd click a download button where it downloads your game file, then people can import it to try it out.

Now that I think of it, people will want to be able to play other people's games. So! I think I'll add an extra feature in the export tab. Where you'll be able to click a button that uploads your compiled game to the GMG and gives you a link you can copy. When you go to the link it'll open up a web page with your game that you can play. Share the link, and others can play your game.

It's way too late, I'm off to bed.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #55 on: January 16, 2012, 05:43:48 PM »
Been testing more...
http://f.cl.ly/items/2d3m1O3U0Q3k363T282C/HTML5%20GM%20Preview%20-%20Broadband.m4v

Oh yeah, and I've reached a bit of success in connecting it to the forum. Still working on it.

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #56 on: January 16, 2012, 06:15:48 PM »
Is image duplication gonna be an issue? It leaves stamps behind or somethin'.
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #57 on: January 16, 2012, 06:16:23 PM »
Ah, that's cause I didn't clear the canvas before the draw.

To clear the canvas you do:
ClearScreen()

Charlo


  • GMG-er

  • **


  • Posts: 451
Re: HTML5 Docs - I need your input
« Reply #58 on: January 16, 2012, 06:40:24 PM »
Been testing more...
http://f.cl.ly/items/2d3m1O3U0Q3k363T282C/HTML5%20GM%20Preview%20-%20Broadband.m4v

Oh yeah, and I've reached a bit of success in connecting it to the forum. Still working on it.
Nice choice of image.  I could always use more promotion.   ;)

Regarding connecting it to the forum's member database, there's probably a lot of documentation out there about integrating with SMF's login system. I'm guessing the password table is encrypted using SHA1 (or perhaps another algorithm).  If that's the case, you can just use the PHP function sha1() on the user-inputted password to determine if it matches what's in the database. 

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #59 on: January 16, 2012, 06:57:16 PM »
Yeah, found some docs on that. Makes it real easy. You seem quite knowledgeable on this stuff...


Anywho I'm gonna work on designing more screenies...

Login Screen - If you are not logged in, this will show.
Main Menu Screen - If logged in, the main menu will show with the options:
• New Game - Creates a blank game.
• Choose Game - Shows a list of games saved in the cloud that you can edit.
• Load Game From File - Opens up a dialog where you choose the game and load it.
• Demo/Template Games - Shows a list of demo or template games that you can choose from. It'll make a new game for you, except contain the code of the Demo/Template game chosen.

Then for when you're making the game... It'll save the game to the cloud every 2 minutes. If unable to save it'll post red text in the top left exclaiming, "Unable to save...". There will also be a manual save button at the right. If you close it'll save the data, if unable to save on close it'll pop up a warning asking if you're sure you want to close.