Megaman Health bar - Canvas

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Megaman Health bar - Canvas

Postby Hblade » Wed Apr 28, 2010 8:06 pm

Hi guys if you owuld like to use this you can it's a megaman styled health bar :D It's made with a canvas so no images are needed, but the font used in the demo is :3

the code in draw actor.
Code: Select all
erase(0, 0, 0, 1);
for (line2=0;line2<hpmax;line2++)
{
    setpen(0, 0, 0, 0, 1);
    moveto(0, (hpmax)-line2);
    lineto(width-1, (hpmax)-line2);
}
for (line=0;line<hp;line++)
{
    setpen(255, 255, 0, 0, 1);
    moveto(0, (hpmax)-line);
    lineto(width-1, (hpmax)-line);
}
for (design=0;design<hpmax;design+=2)
{
    setpen(0, 0, 0, 0, 1);
    moveto(0, (hpmax)-design);
    lineto(width-1, (hpmax)-design);
}


here's the demo
Megaman HP Bar.zip
(5.37 KiB) Downloaded 171 times


screen.JPG
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest