TheKackler Posted February 6, 2011 Report Share Posted February 6, 2011 Hi Guys! I am new the forums... and this is my first post! For fun I am rewriting Lunar Lander in LabVIEW... do you guys know vector based games out there? I am trying to emulate a game engine similar to what I have dabbled with on the XBOX (Loops below run async with eachother (I think)). User input loop Physics Calculation Loop Screen update Loop I have quite a bit done but I wasn't exactly sure what properties I needed to have for everything so I keep adding stuff and breaking stuff... But I have a lander with thrust & rotation, gravity and basic collision detection. I realize now I need a state machine that handles Pre game, In Game, Game Over and Post game... I am having fun but need two week breaks after realizing the architechure needs tweeking! I was curious what approaches you have seen! -TheKackler 1 Quote Link to comment
Michael Aivaliotis Posted February 6, 2011 Report Share Posted February 6, 2011 You can't imagine how happy you made me right now... I'd love to see this implemented. Is it possible for us to see some of the code? What are your plans for this. Perhaps post it on the LAVA CR? Quote Link to comment
Yair Posted February 8, 2011 Report Share Posted February 8, 2011 Here are a couple of games which might help you: http://decibel.ni.com/content/docs/DOC-3372 http://zone.ni.com/devzone/cda/epd/p/id/3729 Quote Link to comment
TheKackler Posted February 8, 2011 Author Report Share Posted February 8, 2011 (edited) (I see that i have posted this in the wrong area... Oh well... one's first post seldom goes swimingly) @Michael: Do you have a link to LAVA CR etiquite? My code is deep in development and has some horrific syntax and improperly named VIs and controls. Is "unreleasable" code ok to release to CR? I assume it is easy enough to "upRev" when available. Some have suggested I Blog about my Lunar Lander antics but I'm not sure it is blog worthy... maybe worthy of a thread here? dunno... I am interested in having my code critiqued but I'm afraid the easy ugly gets in the way. @Yair: Thanks! I saw the asteroids. I've seen that before but now that i have gotten this far i would like to see how they did rotation and colision detection! -TK Edited February 8, 2011 by TheKackler 1 Quote Link to comment
jcarmody Posted February 9, 2011 Report Share Posted February 9, 2011 y... maybe worthy of a thread here? dunno... Definitely worth a thread here! Quote Link to comment
vugie Posted February 9, 2011 Report Share Posted February 9, 2011 For fun I am rewriting Lunar Lander in LabVIEW... do you guys know vector based games out there? I am trying to emulate a game engine similar to what I have dabbled with on the XBOX (Loops below run async with eachother (I think)). User input loop Physics Calculation Loop Screen update Loop I have quite a bit done but I wasn't exactly sure what properties I needed to have for everything so I keep adding stuff and breaking stuff... But I have a lander with thrust & rotation, gravity and basic collision detection. I realize now I need a state machine that handles Pre game, In Game, Game Over and Post game... I am having fun but need two week breaks after realizing the architechure needs tweeking! I was curious what approaches you have seen! -TheKackler Just by coincidence I'm reading now about Apollo Lunar Module from the control point of view and I'm loosely thinking about implementing its simplified model using lvODE (for physics and collision detection). Here are some interesting details regarding engines, sensors and controls used in module: http://ntrs.nasa.gov..._2009014419.pdf http://ntrs.nasa.gov..._2009014409.pdf Most important parameters for simulation are specified here. Some time ago I tried the Apollo add-on for Orbiter (free realistic space sim), but it is very hard to use (even to understand all the details). Here is a movie from LM landing made with Orbiter: http://www.youtube.com/watch?v=xegm21k7ck0 And here is another interesting approach... Regarding the place for showing the game: there is a Code In-Development section on LAVA, which is good for posting a code to be reviewed by others. Quote Link to comment
Michael Aivaliotis Posted February 10, 2011 Report Share Posted February 10, 2011 @Michael: Do you have a link to LAVA CR etiquite? My code is deep in development and has some horrific syntax and improperly named VIs and controls. Is "unreleasable" code ok to release to CR? I assume it is easy enough to "upRev" when available. Some have suggested I Blog about my Lunar Lander antics but I'm not sure it is blog worthy... maybe worthy of a thread here? dunno... I am interested in having my code critiqued but I'm afraid the easy ugly gets in the way. I just want to see it. You can just attach it to the current thread as a zip file. Whatever you have. Edit: I just moved this thread to a different subforum. Quote Link to comment
TheKackler Posted February 10, 2011 Author Report Share Posted February 10, 2011 @Michael I'll try and upload it tonight. @vugie Wow that is some neat stuff! I'll have to read up! Quote Link to comment
TheKackler Posted February 10, 2011 Author Report Share Posted February 10, 2011 which button do I press to attach .zip files? (I feel like such a noob! ) Quote Link to comment
TheKackler Posted February 10, 2011 Author Report Share Posted February 10, 2011 which button do I press to attach .zip files? (I feel like such a noob! ) nm... i see it in advanced editor Quote Link to comment
TheKackler Posted February 11, 2011 Author Report Share Posted February 11, 2011 Game still in development... but feel free to check it out. It will run more smoothly after I remove extra controls/local variables. Bounding box is current visible (RED) but visibility is a Boolean that can be disabled. Launch the VI: _LunarLander.vi Run application and use arrow keys ←, ↑, → -TK LunarLander.zip 2 Quote Link to comment
TheKackler Posted February 11, 2011 Author Report Share Posted February 11, 2011 Bleh.... if it complains about the variables .vi change the name of LunarLander_Globals.vi to MouseGames_Globals.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.