Thread: Tile editor updated screenie

  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Tile editor updated screenie

    Lots of work has been done on this little beasty. Animation is now supported (runs in a separate thread) as well as a host of other new features.

    Will let you know when I need testers. Yes, I've made lots of backups on my system and on the dev team's systems so I won't lose this one.

    If anyone can think of a feature they would like to see in a tile editor, lemme know about it and I'll try to implement it if it's practical.

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by Bubba
    If anyone can think of a feature they would like to see in a tile editor, lemme know about it and I'll try to implement it if it's practical.
    Change the program icon.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    LOL. I knew someone would say that. I thought that was the least of my worries at the moment but it is in the plans.

  4. #4
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    It looks good Bubba. The only thing I have to say I don't like is, it was written with MFC. Well whatever floats(or should I say sinks) your boat.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    W/o MFC the code base would be ten times the size it is.

    Use the tools you need to get the job done I say.

    I'm having problems with MFC leaking GDI objects, but at certain times. Several threads on other board, forums, and MFC sites also state this happens.

    I also fixed the thread issue that was taking up tons of resources.

    Code:
    static UINT DoThreading(LPVOID p)
        {
          CAnimSequence *ptrSeq=(CAnimSequence *)p;
          while (ptrSeq->m_bActive)
          {
            ptrSeq->DoThreading();
          }
          AfxEndThread(0,true);
                
          return 0;
        }
    
        void DoThreading(void)
        {
            m_fCurTime=(float)::timeGetTime();
            float fElapsed=m_fCurTime-m_fLastTime;
    
          
            Update(fElapsed);
            //Draw();
    
            m_fLastTime=m_fCurTime;
          
                  
        }
    As long as the second DoThreading() doesn't have a loop, everything is ok. When you put a loop in it, for some reason the CPU usage shoots up to 99%.

    EDIT: Scratch that. Once the thread starts, it goes way up.
    Last edited by VirtualAce; 12-24-2005 at 03:48 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need testers for editor
    By VirtualAce in forum Game Programming
    Replies: 43
    Last Post: 07-10-2006, 08:00 AM
  2. Tile map loading/saving
    By sand_man in forum Game Programming
    Replies: 16
    Last Post: 04-23-2005, 09:38 PM
  3. Tile Engine Scripting Idea. Suggestions?
    By napkin111 in forum Game Programming
    Replies: 8
    Last Post: 07-28-2003, 02:01 PM
  4. tile collision detection help needed...
    By werdy666 in forum Game Programming
    Replies: 0
    Last Post: 01-01-2003, 02:57 AM
  5. Tile Editor
    By Nick in forum Linux Programming
    Replies: 3
    Last Post: 08-10-2001, 11:24 PM