Sunday, August 5, 2012

More random bits of progress

Another amalgam of little things:

  • I put all the Fire Emblem map tiles into the map editor so I could make cooler maps. Just for fun and to see if the map editor's tile loading was extensible. I changed the tile image HashMap to a TreeMap so it would sort alphabetically so it wouldn't be all scrambled in the editor screen.
  • Added a primitive fade transition, so when changing game states it will fade through black instead of just changing screens instantly. 
    • Right now it's simply filling the screen with black and changing its transparency, switching the game screen when the black is least transparent. I'll need to either change this or create a different transition so I can fade anything in and out like menus and sprites. I think I can either go through each pixel in an image and change its transparency or apply some sort of alpha mask to the whole image.
  • Finally got around to adding sound. I made a SoundLoader that loads all sound clips, plays, stops, pauses, and otherwise manages them. Not very complicated so I don't think I'll have to change this much later but I might want to add support for .mp3 as right now it only takes .wav.
  • Made an entity editor so I can create characters, items, dialogues, quests, skills, etc with a GUI. The character tab is the only one that does anything right now. I just need to finish the inventory and skills lists, and add functionality to the "change portrait" button,
  • Improved dialogue display so it can display dialogue of any length properly. There's two lines of text at a time and the words wrap! There's also a blinking cursor when the lines fill and waits for user input to continue. It actually loads text from a file that knows which dialogue text belongs to which object.
  • Started working on combat mode. The camera can now properly pan to any target center tile, and a display a blinking cursor during combat mode. User input for this mode moves the cursor like any other sprite.

Maybe I should focus on one thing at a time instead of doing little things everywhere? But it's more fun this way and I keep thinking of things along the way...





No comments:

Post a Comment