User Tools

Site Tools


projects:ljgf

Table of Contents

LJGF

Lightweight Java Game Framework - a small and efficient game framework for Java 6. LJGF was never created with the intention to compete against the big Java game frameworks out there. Instead I wrote it for fun and a small game I had to make. It was and is merely an exercise to learn more about the capabilities and limitation of Java's 2D graphics and multimedia features, so I tend to neglect it a bit.

Anyhow, the codebase is small and not overly complex, so it can act as ideal starting point for your very own frameworkTM.

Status

LJGF is in a more or less stable (beta) stage of development (despite its version number) and currently features

  • a light and fast game engine for windowed and applet games
  • a simple sprite system including animation support
  • bitmap font rendering
  • generic resource loading
  • multiple screen chains
  • sound support for PCM-based (WAV, AU, AIFF, …) and MP3-encoded data

Version History

0.0.7 2010-05-15
----------------
*** 0.0.7 breaks backwards compatibility ***

* Added vertical scrolling support via GameField.scrollY().
* Added SpriteGroup.render() and Sprite.render() overloads, which allow
  to force redrawing of sprites.
* Added SpriteGroup.updateDirtyAreaSprites() method for updating sprites
  in dirty areas.
* Added simple collision and scrolling example.
* Fixed artifact drawing for Sprite instances.
* Fixed clipping in ParallaxBacground class, which caused it to reset
  clipping areas for the whole Graphics context.
* Fixed location offsets for GameFields.
* Renamed moveX() and moveY() methods of ParallaxBackground to setX()
  and setY ().
* Sprite.moveX() and Sprite.moveY() do not set an absolute position
  anymore, but instead change the coordinates relative to their original
  value.
* RectCollisionArea code uses some simplilfied alignment now to get the
  correct collision side.

0.0.6 2010-04-13
----------------
* Improved main loop to use a high resolution timer implementation along with
  better yielding and sleeping - this should reduce the overall CPU load.
* Fixed catch count in the example.

Download

LJGF is distributed as public domain software and as such suitable for any task and project that requires a small and easily extensible game framework. You can download it from the projects directory.

For the most recent development version, you also can use the Bazaar repository using

bzr branch http://sysfault.org/projects/ljgf
projects/ljgf.txt · Last modified: 2010/05/15 16:34 by marcusva

Page Tools