00:00
00:00
Newgrounds Background Image Theme

Hellzwulf just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

2,914,757 Views | 60,181 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2011-01-06 18:39:08


At 1/6/11 12:15 PM, Sam wrote:
At 1/6/11 12:05 PM, Redshift wrote:
At 1/6/11 12:04 PM, Starogre wrote:
At 1/6/11 11:13 AM, Sam wrote: How's everyone been?
Who are you?
Who are YOU?
Absolutely fucking useless, aren't you?

I'm confused. To sum this up, I've been around for quite sometime. Signed up in 2005, been around since 2002 though. :P


BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-06 19:04:43


At 1/6/11 07:02 PM, EJR wrote: hey guys

I expect you all to know who I am.

Who the fuck are you? GTFO N00B!!!11!!11!!11!1!!!

Response to The Flash 'Reg' Lounge 2011-01-06 19:35:56


At 1/6/11 07:05 PM, EJR wrote:
At 1/6/11 07:04 PM, Archawn wrote:
At 1/6/11 07:02 PM, EJR wrote: hey guys

I expect you all to know who I am.
Who the fuck are you? GTFO N00B!!!11!!11!!11!1!!!
sorry only cool people can talk to me

sup bro


the events are merely fictional, written, directed, and acted out by all who create them

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-06 23:00:54


Sup EJR man dude broseph broham brotendo Super Broio Bros 64

Response to The Flash 'Reg' Lounge 2011-01-07 03:30:09


sweet Im cool

Response to The Flash 'Reg' Lounge 2011-01-07 07:03:08


At 1/7/11 12:37 AM, EJR wrote:
At 1/6/11 11:00 PM, FrozenFire wrote: Sup EJR man dude broseph broham brotendo Super Broio Bros 64
hi how are you

Hey, did you also enter the game jam? ( Reference of coolness ?!? )


"Insert deep, brain twisting sentence here"

Response to The Flash 'Reg' Lounge 2011-01-07 17:58:54



"To live is the rarest thing in the world. Most people exist, that is all."

- Oscar Wilde

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-07 22:38:11


At 1/7/11 10:23 PM, EJR wrote:
At 1/7/11 07:03 AM, tomdeaap wrote: Hey, did you also enter the game jam? ( Reference of coolness ?!? )
yes but kevin never finished our game.

you have the worst luck when it comes to game jam


BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-08 16:56:25


At 1/8/11 02:23 AM, EJR wrote:
At 1/7/11 10:38 PM, turtleco wrote: you have the worst luck when it comes to game jam
yeah. first time our play button didn't work so we got a really shitty score and never retaliated, and the second time it didn't even get finished.

Unlucky EJR, I'm 2 out of 2 for completed game jam games, although the first one screwed up a bit.


don't be late | Collab101 | Australian Users List | Nayhan's actionScript examples > click

Response to The Flash 'Reg' Lounge 2011-01-09 14:06:38


I found this substitute for Math.floor() in the haXe community. I know just setting a Number to an int works faster than Math.floor. This seems really large to be fast.

public function fastFloor(f : Number) {
        
        var accum : Int = 0;
            
            
        if (f>0) {
            while (f>=32768) { accum+=32768; f-=32768; }
            if (f>=16384) { accum+=16384; f-=16384; }
            if (f>=8192) { accum+=8192; f-=8192; }
            if (f>=4096) { accum+=4096; f-=4096; }
            if (f>=2048) { accum+=2048; f-=2048; }
            if (f>=1024) { accum+=1024; f-=1024; }
            if (f>=512) { accum+=512; f-=512; }
            if (f>=256) { accum+=256; f-=256; }
            if (f>=128) { accum+=128; f-=128; }
            if (f>=64) { accum+=64; f-=64; }
            if (f>=32) { accum+=32; f-=32; }
            if (f>=16) { accum+=16; f-=16; }
            if (f>=8) { accum+=8; f-=8; }
            if (f>=4) { accum+=4; f-=4; }
            if (f>=2) { accum+=2; f-=2; }
            if (f>=1) { accum++; f--; }            
            return accum;
        } else {
            while (f<=-32768) { accum-=32768; f+=32768; }
            if (f<=-16384) { accum-=16384; f+=16384; }
            if (f<=-8192) { accum-=8192; f+=8192; }
            if (f<=-4096) { accum-=4096; f+=4096; }
            if (f<=-2048) { accum-=2048; f+=2048; }
            if (f<=-1024) { accum-=1024; f+=1024; }
            if (f<=-512) { accum-=512; f+=512; }
            if (f<=-256) { accum-=256; f+=256; }
            if (f<=-128) { accum-=128; f+=128; }
            if (f<=-64) { accum-=64; f+=64; }
            if (f<=-32) { accum-=32; f+=32; }
            if (f<=-16) { accum-=16; f+=16; }
            if (f<=-8) { accum-=8; f+=8; }
            if (f<=-4) { accum-=4; f+=4; }
            if (f<=-2) { accum-=2; f+=2; }
            if (f<=-1) { accum--; f++; }            
            return accum;            
        }
    }

link

Response to The Flash 'Reg' Lounge 2011-01-09 22:06:13


At 1/9/11 02:06 PM, Chickumbleh wrote: I found this substitute for Math.floor() in the haXe community. I know just setting a Number to an int works faster than Math.floor. This seems really large to be fast.

that does seem pretty large but I guess haXe probably compiles it with some serious optimizations...

also floor and casting to int aren't the same. floor always rounds down (floor(1.5) = 1, floor (-1.5) = -2) whereas int just truncates (meaning rounds up for negative and down for positive) (int(1.5) = 1, int(-1.5) = -1)

Response to The Flash 'Reg' Lounge 2011-01-10 01:53:08


hello.


Sig made by me

Once again i'm falling down a mountain like a metaphor

Here ends another post by the grand master of all things: fluffkomix

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 05:48:26


At 1/9/11 02:06 PM, Chickumbleh wrote: I found this substitute for Math.floor() in the haXe community. I know just setting a Number to an int works faster than Math.floor. This seems really large to be fast.

I tested that against my one-liner:

static inline function myFloor(f:Float){
	return f > 0 ? Std.int(f) : Std.int(f)-1;
}

Both compiled with hAxe: mine ran 6x faster. (10 million loop with +/- pi)


#include <stdio.h>

char*p="#include <stdio.h>%cchar*p=%c%s%c;%cmain() {printf(p,10,34,p,34,10);}";

main() {printf(p,10,34,p,34,10);}

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 05:53:25


Although, for larger values that "fast" floor function takes more time, while my function and even Math.floor take only a constant time to run for any value.

I really have no idea why that fastFloor function would be considered faster.


#include <stdio.h>

char*p="#include <stdio.h>%cchar*p=%c%s%c;%cmain() {printf(p,10,34,p,34,10);}";

main() {printf(p,10,34,p,34,10);}

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 07:13:34


Lol: http://gust.isjackd.in/ng/ngff.swf

In summer '08 we wanted to do a programming collab where everyone makes some part of a shooter. The art there is by Xeptic and most by Luis.
Unfortunately the level of ability then was such that it took me some time just to spoonfeed El-Presidente how to make the exploding asteroids in AS3.
Also then (as now) my programming style makes grown men cry.

Before that I was working on this with Luis. http://gust.isjackd.in/ng/_shooter.swf
But then he got tired of it and decided he wants to do the collab instead.


BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 11:13:36


At 1/10/11 05:48 AM, Redshift wrote: static inline function myFloor(f:Float){
return f > 0 ? Std.int(f) : Std.int(f)-1;
}

trace(myFloor(-3)); //returns -4


Doomsday-One, working on stuff better than preloaders. Marginally.

Response to The Flash 'Reg' Lounge 2011-01-10 13:31:10


Before that I was working on this with Luis. http://gust.isjackd.in/ng/_shooter.swf
But then he got tired of it and decided he wants to do the collab instead.

lol thats so embarassing i want to delete your posts


None

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 15:08:29


I liked the snowman boss game.

Response to The Flash 'Reg' Lounge 2011-01-10 18:23:50


At 1/10/11 11:13 AM, Doomsday-One wrote:
At 1/10/11 05:48 AM, Redshift wrote: static inline function myFloor(f:Float){
return f > 0 ? Std.int(f) : Std.int(f)-1;
}
trace(myFloor(-3)); //returns -4

Doh! Stupid edge cases.. But even if you added an entire check for that, it would still be faster than fastFloor.


#include <stdio.h>

char*p="#include <stdio.h>%cchar*p=%c%s%c;%cmain() {printf(p,10,34,p,34,10);}";

main() {printf(p,10,34,p,34,10);}

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 21:15:13


At 1/10/11 06:23 PM, Redshift wrote: Doh! Stupid edge cases.. But even if you added an entire check for that, it would still be faster than fastFloor.

If what you have said is true, quite possibly. I mean, the code is so horribly unoptimised it makes me cry. They could have totally removed the "f--" and "f++" bits of that code (since 'f' is no longer used afterwards), which would have made it so much faster!

At 1/10/11 07:13 AM, GustTheASGuy wrote: Before that I was working on this with Luis. http://gust.isjackd.in/ng/_shooter.swf
But then he got tired of it and decided he wants to do the collab instead.

Snowman boss! Wicked!


Doomsday-One, working on stuff better than preloaders. Marginally.

Response to The Flash 'Reg' Lounge 2011-01-10 21:16:36


What is the Newgrounds API thing do and what's it's for again? :o


""Victory Loves Prepareness"" | I'm a Icon Mod.

PSN: PK-Lucas//Gamertag:PSILeo

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 21:28:34


At 1/10/11 06:23 PM, Redshift wrote:
At 1/10/11 11:13 AM, Doomsday-One wrote:
At 1/10/11 05:48 AM, Redshift wrote: static inline function myFloor(f:Float){
return f > 0 ? Std.int(f) : Std.int(f)-1;
}
trace(myFloor(-3)); //returns -4
Doh! Stupid edge cases.. But even if you added an entire check for that, it would still be faster than fastFloor.

I didn't check its speed, I was shocked that something so large could be fast. I know that Math functions are usually extremely slow, the trig functions, Math.abs(), ect. It wouldn't surprise me if it was much faster than Math.floor(), but I did doubt its speed.

It seems like the haXe community has let me down :(

Response to The Flash 'Reg' Lounge 2011-01-10 21:49:08


That fastFloor() function uses a partially unrolled loop. Thing is, you don't need any kind of loop to compute the floor of a number. So either the person who made that is delusional, or it was used it some bizarre context.


#include <stdio.h>

char*p="#include <stdio.h>%cchar*p=%c%s%c;%cmain() {printf(p,10,34,p,34,10);}";

main() {printf(p,10,34,p,34,10);}

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 22:04:18


It was probably just a example of how a floor could be made.

Response to The Flash 'Reg' Lounge 2011-01-10 22:18:49


At 1/10/11 10:04 PM, Chickumbleh wrote: It was probably just a example of how a floor could be made.

Well, I found this: http://haxe.org/doc/flash/cheatsheet?ver sion=8376

But notice how that fastFloor function only exists for a few versions of that page.


#include <stdio.h>

char*p="#include <stdio.h>%cchar*p=%c%s%c;%cmain() {printf(p,10,34,p,34,10);}";

main() {printf(p,10,34,p,34,10);}

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-10 22:38:25


At 1/10/11 10:18 PM, Redshift wrote: Well, I found this: http://haxe.org/doc/flash/cheatsheet?ver sion=8376

But notice how that fastFloor function only exists for a few versions of that page.

And another mystery solved by the Flash Reg Crew! Nice job guys, let's go home.


Doomsday-One, working on stuff better than preloaders. Marginally.

Response to The Flash 'Reg' Lounge 2011-01-11 01:59:00


how have you all been since i last popped in here?


Sig made by me

Once again i'm falling down a mountain like a metaphor

Here ends another post by the grand master of all things: fluffkomix

BBS Signature

Response to The Flash 'Reg' Lounge 2011-01-11 07:15:49


At 1/10/11 10:38 PM, Doomsday-One wrote: Nice job guys, let's go home.

Reminds me of the army when people say that.

Response to The Flash 'Reg' Lounge 2011-01-11 11:56:49


At 1/10/11 09:16 PM, PSILeo wrote: What is the Newgrounds API thing do and what's it's for again? :o

It's used to decrypt forum messages.

Response to The Flash 'Reg' Lounge 2011-01-11 19:46:11


greetings everyone!

I've been around newgrounds and looking into the flash scene off and on since '06 with a few different aliases, but I've never really been an active member. I'm getting more serious about game development now so I just wanted to pop in and introduce myself.

So, how's everyone doing?