Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Need a glass box sprite? in any color?

Author
Message
David Gervais
Retired Moderator
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 26th Dec 2006 14:25
Here is a medialess sprite builder I made for making colorfull square sprites 32x32 with a glass like reflection on them. Could be used for games like collapse, columns, tetris, etc.

The function here is the heart of the code, I simply create an initial sprite, make it the mouse cursor and when you click the left mouse button I create 99 sprites and throw them all over the screen.

Run this code and and feel free to post comments.



I wonder if this kind of stuff would be popular with the medialess challenge thread, but we'll see.

Cheers!
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 26th Dec 2006 15:59
cool.

David Gervais
Retired Moderator
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 26th Dec 2006 18:12 Edited at: 27th Dec 2006 15:00
By adding xsize and ysize values to the function it is now possible to use this to make buttons, breakout bricks, etc. I like it.

Here is the source..






Cheers!
Hobgoblin Lord
18
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 26th Dec 2006 19:29
very good work Dave.

http://www.cafepress.com/blackarrowgames
Check out my great stuff here

Login to post a reply

Server time is: 2024-05-09 16:51:58
Your offset time is: 2024-05-09 16:51:58