Page 1 of 1

Next video ideas

Posted: Tue Jun 30, 2009 1:46 pm
by hallsofvallhalla
Okay I want to throw in some graphics and a css sheet in the next video. Everyone comfortable with that? Its an important step to creation and I know we are all tired of the ugly page. If so feel free to post some graphics here if you would like them included.

Re: Next video ideas

Posted: Tue Jun 30, 2009 3:18 pm
by Cooper
things like icons? or large graphic things.
by icons i mean do you want an image to click to, say, attack?
we could have:
heal button...maybe a potion type pic?
attack...sword etc?

cos that would be pretty good :)

Re: Next video ideas

Posted: Tue Jun 30, 2009 3:30 pm
by hallsofvallhalla
yes whatever you guys want to make I will add.

Re: Next video ideas

Posted: Tue Jun 30, 2009 4:49 pm
by Bones
I've got plenty of ideas here.
- Perhaps making attack.php into a little ajax window that appears in battle.php or something along those lines.
- Player made shops/market.
- Dynamic avatars made with items purchased from the shop
- Admin control panel? Some kind of admin only input system? Kind of like our registration, but admin only and it could control item/monster/world map creation
- Stamina(?) Not sure if you already explained this one, but stamina is really the only way to keep balance it seems, otherwise people can just play all day and level up far beyond the level cap/content that is made...
Stamina would replenish every day at midnight, each battle could cost 10stamina+ moving via grid system(if implemented) could take 1or more stamina.
-Combat, perhaps adding some kind of rock,paper,scissors system could be unique but something more like... High Strike, Low Strike, Defend
I don't know if it makes sense or even sounds remotely decent.

As for artwork, I'll be glad to supply anything needed.
Perhaps I could make up some monster and player avatars so you can add those to the site to make it a bit more dynamic then just text.
If I drew up an orc or something, then you could make it so the battle.php grabs images/[$creature].gif

I've got some more suggestions but this should do for now, also I just noticed grid based movement, awesome to see.
I'll comment on that when I get it implemented.

Dynamic avatars;
Hopefully that makes sense, so you've got your base.gif and then the item.gifs go ontop of the original image.
And then the image is saved as a custom created avatar for the character, if that makes sense... Could be a lot of work although I found some code that said it's supposed to do the trick.
$image = imagecreatefromgif("baseimage.gif");
$overlay = imagecreatefromgif("itemimage.gif");

Code: Select all

//
//base image (is under everything)
//
$image = imagecreatefromgif("baseimage.gif");
$width = imagesx($image) ;
$height = imagesy($image) ;

//
//create the final image to be output
//
$image_final = imagecreatetruecolor($width, $height);

//
//create a few colors, for drawing
//
$black = imagecolorallocate($image_final,0,0,0);
$white = imagecolorallocate($image_final, 255,255,255);


//Get destination coordinates
$dst_x = 75;
$dst_y = 75;


//fill image with background
imagefilledrectangle($image_final, 0, 0, $width , $height , $black);


//copy background to output image
imagecopyresampled($image_final, $image, 0, 0 , 0, 0, $width, $height, $width, $height);


//
// Add another image over the top
//
$overlay = imagecreatefromgif("itemimage.gif");
$width_o = imagesx($overlay);
$height_o = imagesy($overlay);
imagecopy($image_final, $overlay, $dst_w,$dst_h,0,0,$width_o,$height_o);

//
// Write some stuff on the image
//
imagestring($image_final, 3, 15, 32, "Hi there", $black);
imagestring($image_final, 3, 200, 32, "Holy Moly", $black);


//
// Send the image to the browser
//
header("Content-type: image/gif");
imagegif($image_final);

Re: Next video ideas

Posted: Tue Jun 30, 2009 4:59 pm
by hallsofvallhalla
well we are not doing ajax, all php and mysql to start.

we will eventually get to most those ideas but it can take a while :)

for the image, i was just thinking you put a image in the database under a field called icon, and it prints out the name .png in a image tag. You put this in the while loop and it turns out pretty well.

Re: Next video ideas

Posted: Tue Jun 30, 2009 5:04 pm
by Bones
Not sure if you got what I meant about the dynamic image, you're talking about turning the name into an image it's self?
As for the images I imagine like a paperdoll system.
Just multiple layers of image being combined to make a custom character.

From top to bottom
Hat, Hair, Shirt, Pants, Body

I've got plenty of item images and avatar bases that I've made that we could use if needed...
This is just 1 of my examples.
Image
Image

Re: Next video ideas

Posted: Tue Jun 30, 2009 10:23 pm
by Cooper
Bones, i like it! That would give the player a feel of being able to create their player :)

Re: Next video ideas

Posted: Wed Jul 01, 2009 2:56 am
by hallsofvallhalla
oh yes a paperdoll system is very easy, i did in it in my last game. You use div tags to accomplish this and I will go over that in the next video.

Re: Next video ideas

Posted: Wed Jul 01, 2009 11:41 am
by Noctrine
GD ftw.