Anyone playing my Lunar Lander game won’t know it, but we’re spying on them! The game gets around 20,000 hits a month, which is very roughly one a minute or so, so I thought it’d be the perfect vehicle to test out some real-time gaming techniques.
I’ve replaced the original game with one that transmits your position to ElectroServer, although you won’t notice any difference at all. The only way to see the all the current players is via the swf below :
[kml_flashembed publishmethod=”dynamic” fversion=”9.0.0″ movie=”//games.seblee.me/moonlander/MoonLanderViewer.swf” width=”600″ height=”300″ targetclass=”flashmovie” allowfullscreen=”true” fvars=”baseurl=//games.seblee.me/moonlander/”]
(Visit original post to see Flash content)
[/kml_flashembed]
The button in the top left makes it full screen. If all you can see is an empty landscape, it means that no one is playing. Usually someone will turn up within a couple of minutes, but if you can’t wait, then why not open the game in a new window and watch yourself playing?
[The ElectroServer is no longer installed so sadly this won’t work any more! But you can try the html version – game and viewer]
At the moment it’s very very primitive. It’s just literally receiving the data and updating the visuals as it gets them, that’s why the movement is quite jerky, even despite the fact that there’s a little realtime easing on there. Of course, I’m going to have to get a lot more into this, comparing the timings with the server so I can adjust for any inconsistencies in data, and of course predicting where the players should be now, rather than where they were a few hundred mils ago.
But I still find it utterly compelling, and naturally I’ll be explaining all of this in my upcoming Flash game programming training courses.
Last night, I left it running (it draws the trails of anyone playing as they go) and this is the image I woke up to :
I can’t help but think that Jer Thorp would be proud of me ๐
[UPDATE] due to popular request there is a high res version of this now on my Flickr page.
27 replies on “Multi-user gaming in Flash – Lunar Lander tests”
That’s awesome! I’d like to have a hi-res poster of your time-lapse on my wall ๐
I’m sorry it’s a bit low res right now but maybe I’ll work on a vector version just for you Jobe ๐
@Jobe I made it into a wallpaper for my aux monitor.
Sweet visualisation! Are you going to try some prediction techniques for the paths?
Yep that’s next on my list. Actually Jobe’s book has some really great examples in, particularly for calculating the latency and synchronising client and server time.
I am proud of you! The time-lapsed graphic is beautiful. I’d love to see a bigger version. Of course it would be great to harvest some simple user data (age, gender, etc. and see if there are any distinguishable playing styles…
Thanks Jer! I have to admit the idea was inspired by (ie stolen from) your smart rockets. ๐ I’ll def be doing a larger resolution version, I was even thinking about whether I could use the AlivePDF library to create a vector graphics file to print really huge! //alivepdf.bytearray.org/ ๐
Oh and I also meant to ask how you would get information like that? I could probably get their geo location from their IP address, but anything else I guess we’d have to ask, huh? I wonder who’d be wiling to offer that information?
I think it’s interesting how it exposes the different processing speeds of the game on different systems. I can watch my ship slowly crash to the ground in 4 mins while seeing others whiz past at a much faster rate.
I think we’re definitely seeing some differences in frame rate, but I’m wondering if there are other factors that could cause that weird difference in speed. I’ll be setting up server-client time syncing and that should get to the bottom of it ๐
FYI Mac FP9 and FP10 are both slooooow. FP10.1 runs roughly the same speed as Windows version.
that’s interesting. Is that for the viewer or for the game itself? There is a huge bitmap in the background of the viewer, that I’ll get rid of and re-upload, but the game itself should be pretty light.
The game itself.
I tried some other browsers, Firefox and Chrome both seem fine. I can only get it to run slow in Safari (4.0.4). I get the impression it’s not frame rate related as the altitude counter seems to tick away happily.
You can email me if you want me to run some tests or want full system specs or something.
It actually is frame based (but it really shouldn’t be!) I’ll definitely be looking at optimising but if you could give me specs on the machines, that’d definitely be useful, and I’ll also ask you to check if I update it. The other thing about this game is that I’m running at 60fps which is double what I usually try, so I’m thinking older players might not like that ๐ Thanks for your help!
I’ve optimised it now, can you check again and let me know? ta!
That is absolutely brilliant!!! ๐
That’s wonderful.
The delay is interesting – I managed to flick tabs in time to see myself crashing.
Nice bit of crowd-sourced generative art there! Don’t tell Zen Bullets… he’ll be dead jealous ๐
Massively high res version now posted //www.flickr.com/photos/sebleedelisle/4306603442/
@alistair Just seen it, and yes, very jealous ๐ Quite beautiful. I’m wondering if there are any other well known games that might produce comparable patterns. It has the makings of an interesting study.
I’ll be recreating a whole bunch of retro games for my upcoming course, so I’ll check it out! ๐
[…] die Session deutlich an Fahrt. Mit viel Witz zeigte er seine Ansätze zur Motion-Detection, Spiele und 3D-Anwendungen in Verbindung mit 3D-Brillen. Dabei war das Publikum immer voll integriert und […]
Very nice. ๐
It would be even better to release a version which lets you see other players trying to land around you. Not a full zoomed out view like in the SWF above, but just including a few other ships immediately surrounding you. It would definitely add to the game.
I have a new favorite desktop background. I hope you don’t mind.
no of course not! Enjoy ๐
[…] Multi-player Lunar Lander – I never finished this, but was delighted to accidentally create some generative art as all the players around the world left trails on the game screen. It even made it into Matt Pearson’s generative art book! […]
[…] who knows me will know that I’m fascinated by real-time multi-player games (remember my Lunar Lander trails?) so the first thing I’ve done is put together a little demo to test out the MMO capabilities […]