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


0 Members and 4 Guests are viewing this topic.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #30 on: January 10, 2012, 10:33:17 PM »
How do you guys feel about a loose interpreter?

By loose I mean, you can just put in plain Javascript code and it'll work. Or you could put in the HTML5 GM syntax and it'll work.

I'm going to be making a lot of simple commands to make things easy on people, one command that does a whole bunch of complicated stuff so the user doesn't need to. Though I feel some people will want extra functionality. Such as getting down and dirty with normal Javascript commands.
Here's an example:
Drawing a line in HTML5 GM Script
Code: [Select]
DrawLine(100,150,450,50)
Drawing a line in Javascript but using it in the HTML GM
Code: [Select]
context.moveTo(100, 150)
context.lineTo(450, 50)
context.stroke()

Both do the same thing, one is easier, the other allows more flexibility.
What do you think? Good idea to allow both?

Edit:
Here's a spoiler!

It's working.....   buahahhahahhahaa
« Last Edit: January 10, 2012, 10:36:13 PM by Gan »

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #31 on: January 10, 2012, 10:51:45 PM »
I say keep it in, it's another good feature! This would make it an incredibly useful tool for people who are willing to delve* deeper. Why take away functionality? And well done, Gan. Here we have the very first screenshot of this new tool!


*One of my favorite words.
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 #32 on: January 10, 2012, 11:33:10 PM »
Will do!

*Excellent choice of words by the way

Edit:
Just added a complete, sophisticated, and precise down to the millimeter debugger:

I feel I must go to bed(sorta cause I have work tomorrow) but I have a desire to stay awake and continue the progress!
Tomorrow I will continue tweaking. I have plans to copy lots of commands from SilverCreator's documentation and make HTML5 GM versions!
« Last Edit: January 10, 2012, 11:48:46 PM by Gan »

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #33 on: January 10, 2012, 11:54:05 PM »
Looks faaantastic! Did you get that far with an interpreter in one day?

Oh and is that your final name? HTML5 Game Maker?
It's not bad it's just kind of the most obvious name possible.
« Last Edit: January 11, 2012, 11:39:35 AM by Connors »
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 #34 on: January 11, 2012, 12:00:12 AM »
Well, I did work on the interpreter quite a bit a few days ago. Today all I had to do was update it to support classes and custom methods. :D Oh yeah, and debugging.

I'm thinking I like the name HTML5 GameMaker. It's easy to remember, it's obvious(which is much needed for beginners) and it can be shortened to HTML5 GM.

If you want a horrendous name, go look at some of those names for those android phones...
Sugon Universe Z IV Lightning G19 HD Inspire Pro 786b3
^Not an actual phone, just a mockery of one

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: HTML5 Docs - I need your input
« Reply #35 on: January 11, 2012, 07:00:53 AM »
GM5 could catch on. A logo with a tiny HTML between the GM and the 5 could work.
I survived the spammage of 2007

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #36 on: January 11, 2012, 09:04:52 AM »
Mmm, I think I like it...

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #37 on: January 11, 2012, 06:21:14 PM »
Drawing demo!
http://f.cl.ly/items/1l1Z1E3Y1B0E0V1p3v2R/HTML5%20GM%20Demo%20-%20Broadband.m4v

Lines... lotsa lines. (If it seems slow, that's cause screen recording makes my whole computer slow)

Edit: I should probably specify. This demo is made up of a lot of 5 pixel long lines. Haha yeah. There's like a bazigigllion of them rendering each second.
« Last Edit: January 11, 2012, 06:24:20 PM by Gan »

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #38 on: January 11, 2012, 08:02:14 PM »
Update!

The interface and the interpreter are complete.

All I have left now is the HTML5 GM Commands I need to code/document and the saving feature...

Circuit


  • GMG-er

  • **


  • Posts: 299

  • blast from the past
Re: HTML5 Docs - I need your input
« Reply #39 on: January 11, 2012, 08:45:11 PM »
Awesome!  I'm really amazed at how quickly you're putting this together.  When do you think it will be ready?

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #40 on: January 11, 2012, 08:59:39 PM »
It'll be ready... hmmmmm.

Well, I'm going on a long trip to florida tomorrow so I'm unsure if I'll be able to program much. Trip ends Monday, school starts Tuesday...

I'm going to delve(probably tonight) into SilverCreator's docs and start copying commands. Depending on how many commands I add to HTML5 GM will also affect the time.

Then the final feature I want to add is saving. Saving will work through the forum login. So that's the only seemingly tough thing I gotta figure out. When saving is successful, just gotta add a splash screen and put on the GMG!


I'd like to say... it'll be soon.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: HTML5 Docs - I need your input
« Reply #41 on: January 12, 2012, 01:09:31 AM »
CreateTimer(name,method,interval) - Creates a timer
StopTimer(name) - Stops the timer
StopAllTimers() - Stops all timers
KeyIsPressed(keyByLetter) - Returns true or false if the key is down
KeyIsPressed(keyByAsciiValue) - Returns true or false if the key is down
Key() - The last key pressed
MouseX() - The X position of the mouse
MouseY() - The Y position of the mouse
MousePressed() - Returns true or false if the mouse is pressed
LoadSound(name) - Loads the sound ahead of time
PlaySound(name) - Plays the sound, good for sound effects
PlaySound(name, id, loop) - Plays the sound, good for music cause can be stopped by the same id
StopSound(id) - Stops the sound
LoadImage(name) - Loads the image ahead of time
DrawImage(name,x,y, rotation) - Loads the image if not already loaded, then draws
GetImageSource(name) - Gets the source of the image
GetImageData(name) - Gets the raw image data for custom manipulation
DrawLine(x1,y1,x2,y2) - Draws a line
DrawOval(x,y,width,height) - Draws an oval
DrawPixel(x,y) - Draws a pixel
DrawRect(x,y,width,height) - Draws a rectangle
FillRect(x,y,width,height) - Draws a filled rect
DrawString(string,x,y) - Draws the string
ClearScreen() - Clears the screen
ScaleContext(x,y) - Scales the context in the canvas
RotateContext(rot) - Rotates the context in the canvas
TranslateContext(x,y) - Moves the context in the canvas
SetStrokeColor(color) - Sets stroke color
SetFileColor(color) - Sets fill color
Abs(num) - Absolute value of number
Arccos(num) - Arc Cos of number
Arcsin(num) - Arc sin of number
Arctan(num) - Arc tan of number
Arctan2(num,num) - 2nd Arc tan
Ceil(num) - Ceilings the number
Cos(num) - Cos of number
Sin(num) - Sin of number
Tan(num) - Tan of number
Floor(num) - Floors the number
Pi() - Returns PI
Random(num1, num2) - Returns a random whole number between num1 and num2
Round(num) - Rounds the number
Sqrt(num) - Square roots the number

context - The drawing context of the canvas. With this you can call native Javascript functions on the context of the canvas. Allows for greater HTML5 flexibility
canvas - The canvas of the game. You can access the 2D or 3D context, allows greater flexibility


That's my list of all the commands I want to add so far. Look good to you guys? Anything you would like added?
(If there's something you want to do that's doesn't have a command, you can search the Javascript for it and insert the Javascript into the HTML5 GM and it'll just work--That's what I call intense flexibility)
« Last Edit: January 12, 2012, 01:32:10 AM by Gan »

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: HTML5 Docs - I need your input
« Reply #42 on: January 12, 2012, 07:55:22 AM »
How will it save? If it saves onto the user's computer you can put it where you want, share it, back it up....
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 #43 on: January 12, 2012, 08:08:07 AM »
How will it save? If it saves onto the user's computer you can put it where you want, share it, back it up....
Hmmm. Haven't thought of sharing.

The plan is to have saving be automatic and in the cloud. The game will save every 2 minutes automatically to the GMG. It'll save under your forum account so only you can access it. It'll also save when you close the window and there will be a button where you can tell it to manually save.
I don't want people to lose data, this is the safest way.

As for sharing... at the moment you can export the compiled game to show off to people but I hadn't though of sharing the raw game code...

I suppose in the Export tab I can have a field where you can copy raw game data and then paste it to someone and they can load the raw game data from the main menu...

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: HTML5 Docs - I need your input
« Reply #44 on: January 12, 2012, 11:51:52 AM »
can u find the modulus of a number? ???
like: 5 % 2 = 1
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to