Jump to content

TylerH

Members
  • Posts

    525
  • Joined

  • Last visited

Posts posted by TylerH

  1. No one has committed any updates to it since klepto2's initial release. He may be working on it locally, but I couldn't say for sure. I may improve it if we could get a list of "bugs" running to work on systematically.

  2. @ZioRed:I uploaded an example with some component base code, as well as C# events integrated into the Leadwerks callbacks. Did you get a chance to check it out? I think it would be best if we all worked together, as opposed to having 3 completely separate implementations of this pattern.

  3. A friend of mine implemented this very pattern into an old Leadwerks C# framework. I liked the flexibility, but it seemed bloated.

     

    The best example usage I came across in using his system came in two ways:

    1) We had components that made up the player: Camera, Controller, and Control components, that handled the Leadwerks camera, the Leadwerks controller, and our input system, respectively.

     

    2) We had a set of components that made up the actual gameplay logic behind the player; it was a survival RPG, and you had to eat (Hunger), sleep (Energy), and drink water (Thirst)/Water. It was a "stranded on an island" game.

     

    There was a component for each of the 3 "needs", and a Health component. Each component could talk to the other components by querying the player (parent of all 4 components) for the other using a Name, or get the entire set of 3 by using a FamilyID string.

     

    It was pretty awesome. I have attached the source code for the entire game (C# in Leadwerks x.x, I think it was 2.0). What was also pretty cool, was that you could create components in either C# or Lua, and it made no difference. Components could still talk to each other and be interacted with the same way, though this required a .NET Lua module that allowed importing .NET types into Lua.

     

     

    I also attached a RAR with the most recent version of source code for said game framework. You might be able to find a playable version of the game in the Showcase of the old Leadwerks forum.

     

    EDIT: http://forum.leadwerks.com/viewtopic.php?f=32&t=2254&start=0 There is the old thread, but it seems I deleted the archive from the server.

    Survival.zip

    Modules.rar

  4. One more thing: All of the polled input commands (basically every Leadwerks input command) will not work with a custom context, like this control, or the one I made using Tao.OpenGl.

     

    I have been researching a way to add custom support in the C# wrapper to circumvent the polled input and provide an identical use API for custom contexts, but have not really done anything on it yet.

  5. My solution was lost, but it was a matter of changing ALL calls into Leadwerks commands that return strings to return an IntPtr, and using Marshal.PtrToStringAnsi to convert it to a string.

     

    (Just re-added incase anyone searches this thread in the future)

  6. The technique for this is called spring dampening. You create a "Spring" class that has two vectors or entities, and does the calculation in an Update call to determine the forces to apply. It is then dampened and modified to simulate elasticity, breaking, etc.

     

    It is commonly used in 3rd person cameras. I will look for an implementation I have done previously and report back here my findings.

  7. My desktop is kind of cluttered, and the wallpaper was spur of the moment because the black debug screen was getting annoying. I am in the middle of porting all my stuff over to Windows Server 2008 R2 and Windows 7 x64.

     

    post-3-12731971001109_thumb.png

  8. Well, if by auto-building you mean setting up, I think anyone making large scale levels for games is using the Leadwerks Editor. There is no reason you can't setup a game entirely in code or the world as well, but there are advantages and disadvantages to both approaches.

     

    :)

  9. The official headers, as maintained by the community in the C# language and .NET/Mono, will be available here:

     

    To update:

    http://code.google.com/p/leadwerks-csharp/

     

    To commit (if a member):

    https://code.google.com/p/leadwerks-csharp/

     

    I would recommend an SVN client such as TortoiseSVN.

     

    Anyone may checkout the SVN anonymously to receive the headers, and I will add anyone to the project who wishes to commit upon request. If privileges are abused, you will be warned, then removed from the project.

     

    NOTE: HTTP for anonymous checkout, HTTPS for anyone wishing to commit (post-approval).

     

    This is intended to be the be-all-end-all thread on the C# Headers and their availability.

     

    As of 5/6/2010 the SVN is on Revision 2 using klepto2's latest posted release.

  10. So are the callbacks/delegates you wanted working? Or still missing?

     

    I have the "official" code that I worked on about a year ago that remained consistent, memory leak, and bug free throughout the course of engine updates, and can incorporate that into this.

     

    I never caught on at the beginning as to if Ubu encapsulated my old or new C# headers for this wrapper, or wrote the core imports from scratch; regardless, we will get things up to date and trucking, I have loads of things I want to bring to Leadwerks that will come quickly and easily via C# (and Lua :blink:).

×
×
  • Create New...