Home
Welcome to GM2Color!
GML2Color is a free utility which converts GML code from plain text into a choice of HTML, BBcode, or Wikidot markup. The tool originally took around four days to create, but since that time it's undergone a number of improvements. I have to say, the most exciting part of the process was categorizing the 1,812 syntax constructs which comprise the language. I hope you enjoy using this site as much as I enjoyed building it!
I've made the code lists publicly available for download (see the left navigation bar) in case anyone wishes to take on a similar project without having to organize all of the GML constructs. The PHP source code is also up for download.
Let me see?! I want to see!!
Below is an example of code generated using GML2Color.
var ii;
room_caption = "Prime Number Gen (" + string(fps) + " FPS)";
// A cool color-shifting button
for (ii = 0; ii < btn_count; ii += 1)
btn_hue[ii] += random(100/(max(fps,30)+1));
/*
Blah blah current_time blah blah
Blah ds_list_add(id,val) blah // blah
*/
if running {
start_timestamp = current_time;
for (ii = 0; ii < freq; ii += 1) {
if is_prime(num_current) {
ds_list_add(lst_primes,num_current);
prime_count += 1;
}
num_current += 2;
// Determine time used in calculating last prime
if ii == freq - 2 then prev_timestamp = current_time;
if ii == freq - 1 then last_time = current_time - prev_timestamp;
}
total_time += current_time - start_timestamp;
} |
Ew, it's a bug! I found a bug! Ewww!
I am human; I make mistakes from time to time. If you find any bugs, please let me know.
Shout Box
FedoraMan: SHHHH!!!
Fede-lasse: Thanks, Daniel. I'll use this for my site!
Daniel: Glad you like it :-)
Daniel: @death-droid -- Well, to be precise, it depends on whether we're dealing with a dairy cow or a slaughter cow, and in some cases on the gender of the cow. But I believe most cows drink both milk and water at some point in their lifetime, so I decided to include both.
Fede-lasse: Try making a random question generator, so the bots won't find out... Or at least the guys who make them.
Fede-lasse: By the way, when I enter this:
if (!keyboard_check_direct(argument0)) {
It won't recognize the keyboard_check_direct(). Please fix that :)
Daniel: Thanks for bringing that up, Fede. It was a small bug; should be fixed now.
Daniel: So far the spambots have been generic ones, i.e., not written for this site in particular, so the cow question has held them off thus far. If it becomes a problem in the future I'll switch to something more robust.
me: BAZWAT! OMG n00b 11101010101. hello mum, im on the internet
death-droid: Ok dude wtf is with your post
death-droid: Daniel you should implement recaptcha into your website
Youcanwin: No matter how talented a man may feel he is in bed, he defines his sex by his erection, by its strength and hardness http://www.farebunk.com/
Youcanwin: No matter how talented a man may feel he is in bed, he defines his sex by his erection, by its strength and hardness http://www.farebunk.com/
Youcanwin: No matter how talented a man may feel he is in bed, he defines his sex by his erection, by its strength and hardness http://www.farebunk.com/
CoolGamrSms: I think the bots figured out a way in.
