Melly
|
|
« Reply #20 on: June 06, 2009, 12:56:38 PM » |
|
So Adam, which do you think is better optimized, yours or DrPetter's flash code? Totally silly question, by the way.
|
|
« Last Edit: June 06, 2009, 01:03:12 PM by Melly »
|
Logged
|
|
|
|
Melly
|
|
« Reply #21 on: June 06, 2009, 01:08:31 PM » |
|
Also would like to add I'll make sweet love with whoever create a first-steps tutorial of sorts, cause I'm pretty lost over here.
|
|
|
Logged
|
|
|
|
AdamAtomic
*BARF*
Level 9
hostess w/ the mostest
|
|
« Reply #22 on: June 06, 2009, 02:49:36 PM » |
|
So Adam, which do you think is better optimized, yours or DrPetter's flash code? Totally silly question, by the way.LOL i haven't seen his code but its probably fucking great, DrPetter is the BEST, I love him. I actually want to add native support for SFXR and Musagi if I can manage it...
|
|
|
Logged
|
cup full of magic charisma
|
|
|
Melly
|
|
« Reply #23 on: June 06, 2009, 02:59:47 PM » |
|
Also Adam, I heard that uint is actually slow in AS3 as compared to int. Do you think otherwise? I noticed you use it around a bit.
|
|
|
Logged
|
|
|
|
AdamAtomic
*BARF*
Level 9
hostess w/ the mostest
|
|
« Reply #24 on: June 06, 2009, 03:37:29 PM » |
|
I genuinely haven't noticed anything, and have no idea why it would be slower? If it is I can happily switch to ints Flash is soooo weird about some stuff
|
|
|
Logged
|
cup full of magic charisma
|
|
|
Bennett
Jinky Jonky and the Spell of the Advergamez 3
Level 10
|
|
« Reply #25 on: June 06, 2009, 03:51:04 PM » |
|
Wow, thanks for putting this out. I can't wait til I get a chance to make a game with it.
|
|
|
Logged
|
|
|
|
Melly
|
|
« Reply #26 on: June 06, 2009, 04:30:28 PM » |
|
Another thing I noticed is that usind Math.floor() seems unnecesary when you can just throw an int() there.
|
|
|
Logged
|
|
|
|
AdamAtomic
*BARF*
Level 9
hostess w/ the mostest
|
|
« Reply #27 on: June 06, 2009, 04:34:30 PM » |
|
that's possible, I dunno which operation is more efficient though?
|
|
|
Logged
|
cup full of magic charisma
|
|
|
Melly
|
|
« Reply #28 on: June 06, 2009, 04:36:17 PM » |
|
well, using Math.floor generates overhead, while using int doesn't. I'm not even sure why there is a Math.floor. Maybe there is some specific use to it?
The difference would be negligeable unless you were doing a shitton of the things though.
|
|
|
Logged
|
|
|
|
AdamAtomic
*BARF*
Level 9
hostess w/ the mostest
|
|
« Reply #29 on: June 06, 2009, 04:41:08 PM » |
|
I do a shit ton of them I should profile it
|
|
|
Logged
|
cup full of magic charisma
|
|
|
Melly
|
|
« Reply #30 on: June 06, 2009, 04:46:12 PM » |
|
Math.floor does return a Number, so using int might not be good if you want to maintain the value as a Number. Unless you use Number(int()), heh.
Not sure when that would apply.
|
|
|
Logged
|
|
|
|
moi
|
|
« Reply #31 on: June 06, 2009, 05:31:09 PM » |
|
I don't know about flash, but in other languages, there are cases where you really need a math.Floor. I found that it's generally the case for develloping a 2D-in-3D tile engine for example.
|
|
|
Logged
|
subsystems subsystems subsystems
|
|
|
Glaiel-Gamer
Guest
|
|
« Reply #32 on: June 06, 2009, 05:45:31 PM » |
|
well, using Math.floor generates overhead, while using int doesn't. I'm not even sure why there is a Math.floor. Maybe there is some specific use to it?
Flash used to not have int as a data type, and floor is a pretty common function anyway Also, it might behave differently for negative numbers, not sure
|
|
|
Logged
|
|
|
|
|
PGGB
|
|
« Reply #34 on: June 08, 2009, 02:54:27 AM » |
|
Really cool engine. I will probably do some Flash games now. You might want to add Linux to the main site under MXMLC.
|
|
|
Logged
|
|
|
|
AdamAtomic
*BARF*
Level 9
hostess w/ the mostest
|
|
« Reply #35 on: June 10, 2009, 08:15:40 PM » |
|
Version 1.1 is out! We have a few tutorials, some fun mods of Mode, updated documentation, all that good stuff! http://flixel.org/forums/index.php?topic=6.0
|
|
|
Logged
|
cup full of magic charisma
|
|
|
Hideous
|
|
« Reply #36 on: June 11, 2009, 02:56:05 AM » |
|
I looked at this the other day. It seems to me that it is indeed bloody amazing.
|
|
|
Logged
|
|
|
|
Bennett
Jinky Jonky and the Spell of the Advergamez 3
Level 10
|
|
« Reply #37 on: June 11, 2009, 05:07:39 AM » |
|
I tried this out just now in Flash rather than Flex Builder, and it works fine so long as you add the following line to FlxGame.as: import flash.display.MovieClip; and change the class declaration to: public class FlxGame extends MovieClip If you make your project file (e.g. Mode.as) the main class of a flash document, it becomes a MovieClip rather than a sprite, so this is necessary. But it works fine! Actually, I spoke too soon, obviously some other things will need to be changed. But it looks great, Adam, this will be really fantastic, especially for entering competitions, where time is a major factor.
|
|
« Last Edit: June 11, 2009, 05:12:57 AM by Bennett »
|
Logged
|
|
|
|
Hideous
|
|
« Reply #38 on: June 11, 2009, 05:28:50 AM » |
|
Thing I am most confused about though is building levels. Someone needs to write up how that works.
|
|
|
Logged
|
|
|
|
AdamAtomic
*BARF*
Level 9
hostess w/ the mostest
|
|
« Reply #39 on: June 11, 2009, 07:29:27 AM » |
|
This is the current "non-proc" level design thread: http://flixel.org/forums/index.php?topic=38.0And this thread covers a simple mod to FlxBlock to allow you to specify a specific tile: http://flixel.org/forums/index.php?topic=39.0You can also just pass a single tile to the FlxBlock if you want. I personally feel like level design is a major hurdle for rapid game design, so Flixel is designed mainly for procedural generation. You can definitely work around this without TOO much trouble though!
|
|
|
Logged
|
cup full of magic charisma
|
|
|
|