Saturday, November 27, 2010

Slowing down

Work starts on Monday (first day at a real software company, yay), but that means progress on hq will be slowed.  Anyway, things I've done since the last update:
  • background animation
  • parallax scrolling (includes acceleration/deceleration)
  • parsing character attributes (walking frame rate, speed, etc.)
  • linking character attributes with the processor
  • linking map friction with object behavior
  • object points for maps (creating objects at the start of a game)
  • correcting data parsing (various bugs)
  • pulled out the frame element parsing from the Frames class into a common parser so that the code can be reused (instead of duplicating the object point code into the Map class, a single call to the corresponding function can provide the same functionality)
Also, here's a video of the camera scrolling + background animation:



I plan to get platforms working next, but still thinking about the design (the last one had to perform operations on platforms in multiple places, going to see if that can be reduced and contained).



Azriel~

Friday, November 19, 2010

Maps


Exams over - time for an update. Cleaned up the loading code so it's easier to add objects to the game without having to recompile, and also wrote code for maps - analogous to backgrounds in Little Fighter 2.  However, maps will be more interactive and dynamic.

The syntax differs slightly from the LF2 background data files - filled rectangular areas now use rgba values to specify the colour, and pngs are able to be used for the images. The transparency tag hasn't been implemented, as you may use pngs if you want to have transparent areas in a layer

TODO list for maps:

  • parallax scrolling (with camera)
  • animation
  • layers that render over characters
  • linking map data with objects (bounds, friction, etc.)
Other things to do in the near future are opoints and interaction.  That's all for tonight.



Azriel~

Sunday, September 12, 2010

Loading...

Spent some time writing the code to load externally configurable file that determines the objects that are loaded into the game.  Works if you don't have any blank lines, but otherwise the app crashes.  Next update will be after exams (if work doesn't start so soon).  Anyways, this next term's workload + exams will be ×1000 stressful. not so fun.



Azriel~

Monday, July 5, 2010

Massive update



Been a while since I posted, I've ported approximately half of what's done in the Java version into c++, and I've got it set up to use either SDL or OpenGL for rendering. Above is a benchmark test when using OpenGL. The SDL version started slowing down at around 600 objects on screen (slower but gradually decreasing frame rate), while the OpenGL version could handle >5000 objects without lagging. Above 5000, you still get 30 fps, but keystrokes can be lost, and sometimes the animation jerks (stops for ~2 seconds, then restarts).

Anyway, next thing I'm gonna code are other objects, then collision detection.



Azriel~

Monday, March 29, 2010

Translating

Been translating the sourcecode from Java to c++, so far the data part has nearly been done (save for special effects). Haven't properly tested it (for both functionality and memory leaks (no more automatic memory management =z)). Been doing optimizations with the code as well, working with the data as a character array instead of as a string object (for the most part).

Anyways, we've started on openGL in uni, so might work on that in the upcoming holidays, depending on how quickly I manage to finish assignments.



Azriel~

Monday, January 18, 2010

not over yet

ya, haven't been working on hq, but I've been busy with uni work + summer school. Still haven't implemented the Java3D libraries.

Side note, I'll be taking an OpenGL course in uni maybe this year, maybe next, so there's a chance that I'll be porting this to c++.



Azriel~