Jump to content

Rick

Members
  • Posts

    7,936
  • Joined

  • Last visited

Everything posted by Rick

  1. looks like COM programming. not a fan of that really. I'd prefer to call delete instead of ->Release() for the simple fact that that's what we do with pointers. Having to call IncRefCount() is even worse. That'll be forgotten by people a large % of the time I'm guessing and cause some nice bugs.
  2. If that's the case, I don't smoke so I should get 10% off of LE3! I'll pass a physical if that'll help get more % off.
  3. I have a 3 month old and a 4 year old, and my wife and I both work. I'm using that as a little excuse. Valid or not However, when I do workout and eat right I do feel much better ofcourse.
  4. I use http://www.leadwerks...tyinaabbdo-r164 If doing this from C++ I pass in a pointer to the class that calls this function to the extra parameter. Then inside the C function, that you have to specify as the callback, I cast back the extra pointer to the class and expose a public method that adds an entity to a list inside that class. Then after this function is finished being called my list is populated and I can use it. Something like below. It's from memory so I might have screwed something up but you get the idea. void _stdcall myfunc( TEntity entity, byte* extra) { MyClass* cls = (MyClass*)extra; cls->AddEntity(entity); } class MyClass { private: list<TEntity> _entities; public: void AddEntity(TEntity e) { _entities.push_back(e); } void Update() { _entities.clear(); ForEachEntityInAABBDo(aabb, myfunc, this, ENTITY_ALL) // now my _entities list is populated } };
  5. Can you check collision with the water plane?
  6. The way I see it, and I'm using C++ for my game now and love working with C++, is that script will provide an easier deployment and faster development time (for some games) to all platforms. We have to understand that not all games are OMG AMAZING AAA FPS games. There are people making a decent living on mobile platforms selling 2D images of bobbleheads for gods sake. There is a middle ground. In engines like Unity this is the only way to make a game and that community has games coming out of it just fine. Lua also provides some out of the box functionality (like coroutines) that some of the other languages don't. Not that you can't mimic it, but that's precious development time and/or a library that you hope works on mobile platform if you plan to target it. In other words, not taking any prior context of YouGroove, yes you should be able to make an entire game from script. How good that game will be is up to your own ability.
  7. Nice work guys! Question about iClone. I assume I could just bring in Dexsoft already animated and rigged characters and easily add animations right? What is it about iClone that makes animating so easy? I really have zero experience in animating and have tried in the past only to get pissed and stop
  8. See LE3 is like an onion...
  9. A simple way would be to use DrawRect(). Draw 1 rect for the background (red normally), then draw another on top of the first one (green normally) to represent the health. The width of the red (first) rect can be any size you want. The width of the 2nd rect (green to represent health) is the % of health remaining from the total applied to the width. So let's say your enemy has max health of 100 and you want a rect width of 200 pixels to represent that. If the actual health is now 50 (because you hit the enemey), then you find the % of health left (which is 50%) in this case. So now you take 50% of the 200 pixel width (which will be 100 pixels) and that's the new width of your green health bar that you draw on top of your red background healthbar.
  10. LE only supports GMF (specific just to LE) model format. You have to convert your fbx to GMF. UU3D is a great tool to do this with.
  11. Have you ever had deja, deja, deja, deja, deja vu?
  12. Rick

    game over

    Do you use the LE controller? If so there is an IsAirborne() or something like that. You could check to see if they are airborne for x seconds.
  13. Rick

    A Red-Letter Day

    "new interface" you mean metro? I love metro on my phone. Excited to work with it on desktop but not getting Win 8 until I get a touch screen monitor to take full advantage of the metro interface.
  14. That is the scope issue we're all talking about
  15. Oh man I thought it was a 13 year old kid using AOL now. I guess that's the beauty of that quote. It makes no sense
  16. Now that's a quote! lol
  17. Is BMax not case sensitive? C is so .y isn't the same as .Y.
  18. Does mobile have enough power to do real-time shadows?
  19. What I notice is he's using the same goblin enemy model I am. I have to hurry and finish my game first so I can say he copied me and not the other way around Maybe threaten a lawsuit where I'll settle for a free copy of LE3
  20. Do you have the int main() from the program that doesn't work? Or an example with a basic int main() if the major program is to big. As Ruki suggests, if in your bottom example i goes out of scope (because maybe you define it in a function that exists, then you might be pointing to a not valid memory location.
  21. I assume you meant this (console->AddItem("b", to be this (console->AddItem("b",? It looks like AddItem() needs a type, but in your first example I don't see that. Does it really look like: console->AddItem<int>("b", ; There shouldn't be a mystery as to where it's happening as you can step through each line to see what values are what.
  22. I use Dexsoft models all the time and love them!
  23. Rick

    exit

    One way would be to have the loop condition be your way out. Generally my main loop looks like: while(!quit) { } And then I set quit to true to exit the main loop in whatever situation I need.
×
×
  • Create New...