# ENIGMA Development EnvironmentWebsite is in read-only mode due to a recent attack.

### Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

### Messages - Josh @ Dreamland

2461
##### Tips, Tutorials, Examples / Re: draw_healthbar() function
« on: December 07, 2009, 02:42:36 PM »

Anyway, the function looks sound, aside from a few things I'd const.
Code: [Select]
`        int Rl,Gl,Bl,Rh,Gh,Bh;        Rh = __GETR(maxcol);        Gh = __GETG(maxcol);        Bh = __GETB(maxcol);        Rl = __GETR(mincol);        Gl = __GETG(mincol);        Bl = __GETB(mincol);        Rl = (int)(Rl + ((Rh-Rl)*(amount/100)));        Gl = (int)(Gl + ((Gh-Gl)*(amount/100)));        Bl = (int)(Bl + ((Bh-Bl)*(amount/100)));`
I would make that snippet
Code: [Select]
`        const int        Rh = __GETR(maxcol),        Gh = __GETG(maxcol),        Bh = __GETB(maxcol),        RL = __GETR(mincol),        GL = __GETG(mincol),        BL = __GETB(mincol);        const int        Rl = (int)(RL + ((Rh-RL)*(amount/100))),        Gl = (int)(GL + ((Gh-GL)*(amount/100))),        Bl = (int)(BL + ((Bh-BL)*(amount/100)));`
The compiler would probably take care of all that anyway, even if left inline, so it doesn't really matter.
Come to think of it, that's probably the most efficient code I've had submitted. (Sorry, Retro. I won't hold frac() against you)/

Oh, one more thing. Your switch statement. Find out which direction GM defaults.

I'm personally tickled to see another someone's taken interest in the program, especially one that knows some C++. (Or, perhaps is brave enough to use GML knowledge to make a C++ function).

Out of curiosity, are you working with the code that comes with R3 or the code from the SVN repo? Judging by the __, I'd say it's the R3 version. In either case... When I get home, I'll take a closer look at your function and see about incorporating it into R4. I'll credit your current username for it; if you want it under a different name, let me know.

(And yes, those of you who are elitist and don't consider one function a significant contribution, I know it's not much relative to the entire project. However, it's nothing to sneeze at, and if we had 900 more people like Revel, the project would be done already.)

2462
##### Tips, Tutorials, Examples / Re: A Few Alternate Functions
« on: December 06, 2009, 09:42:14 PM »
Ah, you inputted the zero along with it. Try without the zero.

2463
##### Announcements / Re: Changes
« on: December 06, 2009, 12:43:55 PM »
And being liberal as hell with '!'. What could be more fun?

Some call it political suicide. I call it "Shut the hell up, my software is free."

2464
##### Announcements / Changes
« on: December 06, 2009, 12:22:43 PM »
Good news, everybody!!!

I've decided that after a year of development with nothing whatsoever to show, we're getting a new logo!!

Here it is! !! !

Preposterously big and annoying to the very core of your EXISTENCE. !!
Feel free to riot so I have a topic to delete! ! !!

With that, I'm increasing the price of ENIGMA roughly 150%. I don't have the figures at the moment as the math is beyond me, but it will cost more to make up for all the spending without return I've been doing!
!!!

!!
!!1!1  !! !

Futhermore, I'm firing my Mac developer. Turns out he can't get the world's shittiest code to function on the world's shittiest operating system. A shame, I know

...what else does Sandy do that's deplorable?

You know what, screw it. That was my fun for the day.
And yes, I'm serious about the price increase. ENIGMA's new price is 0 * 1.50, which is... *crunches numbers*... \$0.00.

Oh, and I think maybe I'll stick to the old logo.

Also, miky reminded me of an additional disclaimer. Mac isn't really the shittiest OS; I think Vista earned that title when it did away with HLP. "The Help for this program was created in Windows Help format, which was used in previous versions of Windows and it is not supported in Windows Vista." Though, I'm actually on Vista now... At least it boots. World's shittiest OS... Bah, I'll think on it. Really, I'm just mad because it's been a pain trying to get XLib things to compile on it.

Good day. ^_^

I figure I'll insert the point of this message. Yes, it's 90% troublemaking, but more importantly, there's a lesson in the other 10%.
I know development has taken a while, but progress has been made. It's also a bit more visible than Yoyo's, as you can follow it in the SVN if you really like.

Remember that this project started not long after the release of GM7. In the meantime, I've released three times, they have released nothing. This latest release has been done to refurbish, rethink, and recode everything. Yoyo's just porting GM with help from free software. Think about it. They have \$2 million to form a team. A team of "professionals." They claim they're not struggling... Heh, I even tell people what's going on at the moment.

Speaking of. Presently, I need to logically relocate a large block of code that handles identifiers in order to tolerate ::, an integral part of C++. No one said parsing C++ would be without incident. Once the libs parse right, there's really nothing standing in the way.

Peace.

2465
##### Tips, Tutorials, Examples / Re: A Few Alternate Functions
« on: December 06, 2009, 10:31:22 AM »
If I may, I believe 167 is what you meant, not 176. Also, it's not a degree sign. Render it large, you'll see an underline. Degree sign is 248.

2466
##### Tips, Tutorials, Examples / Re: move_contact_solid();
« on: December 06, 2009, 10:25:30 AM »
It ends the script in C++ AND GML.

Exit was incorporated into GML because there was no way to return void; "return;" is valid in a C function returning void but invalid in all cases in GML. exit; is the equivalent to return 0;.

2467
##### Issues Help Desk / Re: current svn trunk build is NOT SAFE TO USE.
« on: December 05, 2009, 07:05:36 PM »
kkg--
You load LGM and see the splash screen, then drag-and-drop doesn't freeze? Not just right click, dragging tiles.

2468
##### General ENIGMA / Re: Pixel-Perfect Collision by default ? Box2D
« on: December 05, 2009, 04:24:16 PM »
I had plans for incorporated physics, yes. I was thinking of using Newton, however, rather than Box2D. That can always be an option, however.

As for generating a polygon from a sprite, that's feasible for the most part. There's a bit of turmoil between Ludamad and me that would have to be resolved before I would be able to continue using Colligma. I haven't spoken to him in months. I mention this because originally, he was going to allow for polygon based collision detection as a replacement for bitmask based collisions.

As for disabling the collision system entirely: I intend to allow users to disable practically everything about ENIGMA at their option, including selected local variables (any can be disabled, not necessarily all or none), and of course high-octane systems like collisions, networking, and 3D. Not every game uses those; it'd be stupid to constantly include them all. Although originally I wanted the process to be automatic, I may end up making it manual, at least at first.

The current collision system is pixel perfect, but not many functions were implemented using it. We'll see how this turns out.

2469
##### Announcements / Re: Major forum upgrade
« on: December 04, 2009, 09:46:27 PM »
Anorexic... Font... used to... Ubuntu...

2470
##### Announcements / Re: Major forum upgrade
« on: December 04, 2009, 03:46:57 PM »

I'm posting from the university library to tell you all:

ALL I HAVE TO DO IS FIND THIS ONE BLOODY PAPER AND I'M FREE!!!
AHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHA
*jumps out window*

2471
##### Announcements / Re: Major forum upgrade
« on: December 02, 2009, 06:08:33 PM »
*claps*

2472
##### Proposals / Re: Just an appreciation
« on: December 02, 2009, 05:53:16 PM »
Retro-- Most of those are mutually exclusive
Score_-- It gets about 300 KB with -Os, I believe. I can probably do some custom optimization to help that when the time comes.
Anyway, essay'ing to do, ciao.

2473
##### Announcements / Re: Trunkification (svn rearranged)
« on: December 01, 2009, 08:19:31 PM »
ENIGMA's going to be doing the same on my part for a bit here. I gave serp SVN commit privileges, so perhaps he will develop it. I'll be doing my three essays and presentation this week and Monday. After that, I'm free...

2474
##### Off-Topic / Re: Code::Block Plugins
« on: November 29, 2009, 10:30:02 PM »
;_____;

GML was easy to read because it had nothing. It had some 500 functions, all of which were highlighted. About 2,000 global things, also highlighted. That's it.
This C parser gives ENIGMA what it needs to highlight C++ functions, but honestly, I don't think that's such a good idea anyway.

Also, I hate when #define stops being highlighted after the space. That's annoying as hell. But if you like that, maybe someone else does and has written such a plugin.

2475
##### Announcements / Re: Victory
« on: November 28, 2009, 08:01:30 PM »
Okay, I won't.