:eek: That code is ingenious. I'm in awe.
Printable View
:eek: That code is ingenious. I'm in awe.
right at the start you'll see some white lines/dots at the middle right of the screen. go and drive over them, it wild!
It is WILD! This game is great. One thing though, I am having trouble downloading the fla?
me too! me too! wazzup!Quote:
One thing though, I am having trouble downloading the fla?
cool!
Ok, I don't know why the .fla won't download (crappy free webhotel :mad: )... I've uploaded the .fla to another server. It's quite big, 1.2Mb zipped, because the image is saved in high quality (the image quality in the swf is determined in the fla).
You can grab the .fla and view the movie here: http://hem.passagen.se/strille/works...z_mapping.html
I've added collision detection (get's bumpy when you drive off the road), I've used the same method as PercyPea, that is a hitTest with a shape. I've also added fog, but that slows things down a bit, so it's turned off by default.
That would be cool. One problem is that the image is a bit too small to function as a "landscape". You could perhaps use different images depending on you position, they would be like islands (airports?) on a solid ground color.Quote:
How about making the Up/Down buttons change the ground scale and the strip sizes, so that it looks like a flight simulator
truly i thing of beauty strille. i'll work on the trees and stuff tomorrow (footy tonight, go canetoads!). thanks to percy and yourself i think this will truly be a ground breaking flash technique! kudos to you guys!
great work strille!
In the two links I originally posted, I use the same technique with the masks, ie ones on the horizon are 1 pixel, and go down to about 8 pixels in size. Though you cant change them like you can in yours.
The turning and the sky really adds to the game, tis really cool.
I added an opponent last night in my version, they are currently only following a set path, but I just wanted to get the scaling/rotation set up correctly.
Unfortunatly its on my home pc, so i'll upload it tonight when im home from work.
Awesome work guys. Who ever said flash had boundaries?!
So who's going to be the first to produce flashQuake then? :D
this is truly ground breaking!
Hmmm, I'm trying to recreate this in Flash 5 by myself (since I'm unable to open the FLA). I think I can remake it, the only thing I'm not sure of is the getting smaller as it gets further away bit. I'll post my progress later :D
PercyPea->moderator!!! lol
Man, this code is fwicking awesome. Its so simple and quick and....man tu est le dieu du Flash mon ami.!
i had to post something on this thread
WOW!
hey strille, how did u calculate the gradual increment of the strips?
Im guessing it has to do with the outlines of the mask. If you put a red outline, it might put the strips....maybe. But hey, i know nothing on this subject.
I tried to calculate as I would with real 3D, but then the incriments(going from big to small) are done WAY do sudden!!
Man this is too cool. Love to see another car on the track. I was trying to think on ways to placing obstacles on the track, but I just have no idea. So I can't wait to see how you guys put trees and stuff in!! I would love to help out to develop this game, but I am just too crap in actionscript, so I am just going to watch:D
You should be able to use a seperate 3d engine to place trees and other objects at a depth higher than the track and then scale them using a tweeked z-scale value (using the birds-eye map for the x-z placements and hit testing). Someone showed this kind of engine a while back, but I can't remember who ...Quote:
Originally posted by funkydonkey2000
Man this is too cool. Love to see another car on the track. I was trying to think on ways to placing obstacles on the track, but I just have no idea. So I can't wait to see how you guys put trees and stuff in!! I would love to help out to develop this game, but I am just too crap in actionscript, so I am just going to watch:D
May have a play with this engine at the weekend but allready have too many half started projects :rolleyes:
Will watch with interest what you guys produce.
ok trees. the map system can be used for anything (i think?). right now it's very crude so i'm gonna work on it some more over the next few days.
i used the macromedia samauri calculation for the 3d however the end result had to be scaled to fit a 5:1 aspect. i'm still not sure this is 100% accurate so any comments would be cool.
the trees are pretty crappy so i'm sure some of you artist types could do a better job (just remember that there are 25 tree images).
i processed the objects (trees) in the same loop that the slices are processed so i prolly won't be able to add more objects than there are slices but you prolly wouldn't want to either. currently there are sizteen trees in the scene. which i think is enough.
anyway i'm off to try add a player and opponent.
http://www.nlc.net.au/~oceana/games/z_mapping.html
http://www.nlc.net.au/~oceana/games/z_mapping.zip
have fun!
blink
ps: bingo! siriuss
Great job guys. And you know I don't give praises easily , I usually just ***** and moan.
A couple of questions:
1.How did you even come up with this idea. It seems you wouldn't expect a flat 2D image to be able to scale and distort enough to give you a 3D road like this.
2.For those of you ( if any ) who had some classes or know from on-line resources/sites, was this the way Nintendo did their rotation ( was it called mode 7? ) on SNES??? I'm sure they tech that in game programming schools.
GO TREES!!
Hey !
I've been previously toying with the released engine from Strille, and the one in this thread gave me some ideas
http://grafikdezign.free.fr/strille/strille.htm (i called it strille so that there is no ambiguity from where the source comes from, and it happens to be a great name for a game anyway ;))
and i was thinking that a combinaision of the two engines that we've seen could lead to some fun 3D emulation in Flash
Would you think it would lag too much ? (best quality doesn't on my comp, but i kind of have an heavy configuration ...)
I think there is a great potential to do a "dungeon master-like" ... if some coder was interested, i would gladly join the project ...
or i will try to go on it alone ... whatever ... :)
The source :
http://grafikdezign.free.fr/strille/strille.zip
It looks very good, lux :)Quote:
Originally posted by luxregina
Would you think it would lag too much ? (best quality doesn't on my comp, but i kind of have an heavy configuration ...)
I think there is a great potential to do a "dungeon master-like" ... if some coder was interested, i would gladly join the project ...
or i will try to go on it alone ... whatever ... :)
Quite laggy with better quality, but even with low quality it can be made into great game. I will look into source later and see if I can understand any of it :) Would love to do something out of it, but I am afraid it might be too complex for me.
It looks very good, lux :)
Thanks ! though, as i was saying, i cannot take absolutely no credit for the engine as i didn't touched a line of the code ... i didn't even changed the map, just played with the textures and got a quite good grip on the engine ... so all praise go to Strille ! :)
(...) and see if I can understand any of it :) Would love to do something out of it, but I am afraid it might be too complex for me.
Surprisingly, it is simplier than it looks ( a bit like the engine we 're talking about in that thread ) apart for the angle calcultations that can be quite complex
Note that the last line is still in comment for graphic purpose, but you could un-comment it : i guess that all the interactivity ( test on specific locations, and, why not, even AI could be made on the 2D way ...
strille: you could make that into an awesome 500cc game:D
blink: HA HA - GO THE BLUES!!! are you by nechance an aussie??? he he cockroaches rule:D:D:D
lux: very cool graphics! mabey you could have a look at strille's maze engine (it's on his site). it kinna gives you the same results but has a much higher frame rate.
leight: yeah canetoad to the core. i do live in cockroach land (central coast) so i've been coppin' it all day. boy that joey johns is a freak!
anyway back to the z-mapping;
i added an opponent dude, no collision, he just goes around the track.
it's elvis (inspired by phreax's lil dude), only this fella's got a square head.
i suggest you load the .swf and wait a sec and you will see him fly by. then you can speed up and track behind him or whatever else you wanna do.
i'm not confidant i've got the dude's angle to the camera just right so any help with the algorythm would be great (it's in the elvis anim mc).
the .swf is just under 300k, no pre-loader (well there's no-one bigger than elvis!)
http://www.nlc.net.au/~oceana/games/z_mapping.html
http://www.nlc.net.au/~oceana/games/z_mapping.zip
have fun!
blink
Very nice work, Blink. The engine keeps looking better and better. It reminds me so much of my F1 racing game I had for DOS!
Lux thats awesome. Are you going to make the first doom in flash???
ha ha blink, I thought it was another tree test until I saw that little thing on the mini map.. and I wondered what the heck was it?... until that little thing zoomed by and I laughed my ass off.
Sorry to be a bit off-topic ...
mabey you could have a look at strille's maze engine (it's on his site). it kinna gives you the same results but has a much higher frame rate.
I did : he has two engines : one is more or less tile-by-tile, and is faster i agree ... the other one ( the raycasting engine ) is more attractive, but the weight of my textures seems to slowdown the engine a lot ... I'm working on diverse graphic solutions to increase the framerate ...
By the way, your Kart is getting fancier and fancier !!!
sspskater -> Are you going to make the first doom in flash???
No, i'm afraid that the poor framerate forbid this use of the engine
Though, i would be tempted by a remake of Dungeon Master ( or Eye of beholder, or Ultima underworld ... )
For exploration / RPG, the framerate is less capital so the game will still be playable ...
we'll see what i can do with that new engine, though, i want to stay focused on 2K : in front of the diversity of cool new flas that pop up right now, it's easy to lose track of old projects ;)
lux: cool, look forward to your next update.
asclepeos: try driving just off to the side of the road and turn around so you can see the road coming toward you. the elvis dude will zoom right past you!
krill: thanks! hopefully i can add another two dudes without killing the frame rate.
great work blink
I got stuck with my opponent :(
haha that elvis guy is great! :D
just a few comments, if you click fog elvis will pop up for a frame then disapear, and the trees appear over the fog instead of under it.
and shouldent it run faster is the trees are bitmaps?
any way great engine! maybe ill play around with it once i get flash installed
PercyPea: thanks. i think the map to 3d is the way to go. you can just about add anything to the scene. and furthermore thank you for a super cool z-mapping system. i'm sure it's gonna spawn a whole new style of flash game.
jtnw: didn't even try that fog thing (thought is might be a cpu hog) i'll have a look at it. i think in the end the trees will be bitmaps, i'm at a really early testing stage right now (i still haven't got the 3d/2d aspect right, last try was 10:1). just a note here that i will really give the code a big cleanup when i've added the player so if you wanted to embark on any big project you might wanna wait a bit.
Very radical!
Amazing!
Awesome!
Inspiring!
Great!
etc..etc...
Thank you PercyPea and everyone else. This stuff is inspiring!
Unfortunately, I am moving and have no time to play. :(
-pXw
BlinkOk, great work. Those trees really reduces the "flatness" of the world. And I like that Elvis driver too :)
I've added some jumps, which I think works pretty well. The jump physics is a bit temporary rigth now... and the jumps are just marked on the road as darker areas, but it would not be difficult to make them real objects like your trees.
http://hem.passagen.se/strille/works...z_mapping.html
Luxregina, that very nice looking. And it's a bit cool to have a "game" named after you. I think it would be a bit to cpu intensive if you were to add z mapping to the raycasting engine, but I would not mind trying sometime. :) I do think I can speed up the raycasting engine a bit.
Not as cool as your engine though ! i really think it has a great potential ...Quote:
Originally posted by strille
(...) And it's a bit cool to have a "game" named after you. (...)I do think I can speed up the raycasting engine a bit.
For optimization, would you mind giving me an e-mail where i could discuss few points with you ? I really think that i can handle a second project aside 2K and would like to give a serious try at your engine ...
;) PercyPea
;) strille
;) BlinkOk
This is brilliant stuff guys! I feel like I'm witnessing revolutionary moments in flash history. Can't wait to play around with the code myself. BTW, thanks for the generosity that is expanding the flash community knowledge.
nailz
Wow, this is amazing.
I just played Blink's version on my old 266, with winMX running in the background, and it's didn't slow down (much).
Can't wait till the finished version comes out.
:D