CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Location
    Detroit MI
    Posts
    80

    Recommendation on C# Level Editor Controls

    Hey There,

    I'm working on a mobile game and a level editor for it in C# .NET.

    I need a recommendation on which control to use (and some high-level info on how to go about implementing) for the canvas.

    I need to be able to:
    - drop PNG files, move them, stretch them, rotate, etc.
    - be able to read info on all child objects to serialize to XML
    - be able to add layers for sprite/png groups
    - adjust opacity/ alpha of sprites and layers

    Any recommendations on the "canvas" control I should use? I've seen XNA implementations, but given that XNA is moribund and overly complicated, I'd prefer a different, more conventional winforms approach.

    Any suggestions greatly welcomed.

    Thanks!
    Last edited by BigWinston; January 30th, 2013 at 09:25 AM.
    Regards,

    Big Winston

  2. #2
    Join Date
    Jan 2013
    Posts
    7

    Re: Recommendation on C# Level Editor Controls

    Hi BigWinston

    Are you writing the editor for use on the Mobile Platform too? An old project i have recently been reviewing used a large picturebox to hold the map image, and a 2d array for placement information. i just added or removed an index to the image into the array, refreshed the picturebox and then moved it to the panel. Dont know if this is the best method but it worked fine for me.
    as for the abilities you require, some may be native to c# but i think you may have to write some of the blending stuff (its in XNA but not winforms - i may be wrong though)
    i guess you will be targetting more than just windows phones, so im not sure how well XNA will work with Android or Ios, ive never tried or researched the possibilities.

    also take a look at this http://www.codeproject.com/Articles/26166/2D-Map-Editor , i might sign up and dowload it out of curiosty

    good luck

  3. #3
    Join Date
    Mar 2005
    Location
    Detroit MI
    Posts
    80

    Re: Recommendation on C# Level Editor Controls

    Hi. Thanks for the suggestions.

    No, I dont want the level editor to run in game, just output an XML I will use in the game.

    Maybe I'll go the XNA route afterall....
    Regards,

    Big Winston

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured