CodeBase - Animated Sprites placed with mouse click

Return to the CodeBase listing

Category: Sprite

Version: 1.0

0
0

Information

Uploaded: 23rd Feb 2008 23:25

Modified: 23rd Feb 2008 23:28

Author:  Visigoth

Summary

A small program that demonstrates placing 2D sprites where the mouse is clicked.

Full Description

I've been fooling around abit with sprites lately, and came up with this code to place animated sprites whereever the mouse is clicked. It uses a sprite type and a mouse type to keep track of the mouse state as well as sprite info. It will place a sprite, play it, then delete it after it is done playing it. Requires the media file for 2 images in the code.

Comments

No comments yet.