Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java Game Programmaing- Easy 2D Level Building Using JA2DAPI

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,554
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 27, 2011

This video demonstrates how to use JA2DAPI's new CollisionMapScroller API to auto-generate a collision surface based solely on a rendering of the level.

In other words, you simply pass in an image of the level and the CollisionMapFactory creates a machine readable collision map based on the transparency in the image. Anything opaque is foreground/collidable and anything transparent is not.

This allows you to create more natural and visually-appealing levels, compared to the popular tile-based foreground generation approach.

I offer my apologies for the poor quality of the screen captures of the game. Capturing OpenGL is not easy. The game demo is actually very smooth.

Please see http://ja2dapi.sourceforge.net for more info.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • @TheSquirrel212 lol!

  • LOL CAT!!!

  • Are you in a church?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more