ArisCool.com
» view source ::
dressup
HTML Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>How to make your own dress-up games</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- form {margin: 0;} form input, textarea {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;} textarea {padding: 3px;} p {margin-top: 0;} a {color: #22D;} a:hover {color: #006;} a:visited {color: #22D;} a:visited:hover {color: #006;} body { background-color: #FAFAF6; margin: 4px 4px 0 4px; padding: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 82%; color: black; } #content { background-color: #FAFAF6; margin: 0 auto; padding: 10px; height: 100%; text-align: left; } --> </style> </head> <body> <div id="content"> <h2 style="margin:0; padding:0;">Your Very Own Dressup Games</h2><br> <p>This tutorial will teach you how to create your own dress-up games (<a href="http://ariscool.com/funny" target="_blank">example</a>). </p> <p>A dressup game is a kind of web-games where you "dress-up" your character.<br>But the term can also mean decorating a room, creating a scenery, building a house, etc. </p> <p>Before we continue, please make sure that you have the required skills:</p> <div style="margin-top:4px;margin-left:16px;margin-bottom:18px;background-color:#FFD;"> <div style="margin-bottom:8px;"><input id="check1" type="checkbox" name="check1"> <label for="check1">I understand the process of <a href="http://www.gifworks.com/image_editor.html" target="_blank">creating transparent GIFs</a></label></div> <div style="margin-bottom:8px;"><input id="check2" type="checkbox" name="check2"> <label for="check2">I can upload images to <a href="http://photobucket.com" target="_blank">Photobucket</a> and I understand a bit of HTML</label></div> <div><input id="check3" type="checkbox" name="check3"> <label for="check3">I am willing to learn. I will do my best!</label></div> </div> <p>Ready?<br>Now, create your components (those small images that you drag-n-drop) and save them as transparent GIFs.<br>Create the background (the background can be PNG, JPG, or GIF).</p> <p style="font-size:smaller;color:#F22;">If you are artistically challenged, I recommend that you don't continue.<br>The result will be horrible and it will scare the children.</p> <p>Upload the images to Photobucket.</p> <div style="margin-top:4px;margin-left:16px;margin-bottom:18px;background-color:#F0F0F0;color:#444;"> <div>At this step, you should already have the URLs of the background and the components, e.g.:</div> <div style="margin-left:20px;"> Background: <b>http://i185.photobucket.com/albums/x277/maschail/sea/sea.jpg</b><br>Component1: <b>http://i185.photobucket.com/albums/x277/maschail/sea/bubbles.gif</b><br>Component2: <b>http://i185.photobucket.com/albums/x277/maschail/sea/seaweeds.gif</b><br>(and so on..) </div> </div> <p> Copy this <a href="http://ariscool.com/viewsource.php?id=funny" target="_blank">HTML code</a> and paste it to Notepad/Wordpad/your HTML editor.<br>(you have to copy the whole thing!) </p> <p> In the HTML code, you should see some weird codes like:<br><b>background_url</b>, <b>area_width</b>, <b>area_height</b>, <b>default_link_text</b>, <b>img_list</b> </p> <p> You customize your dressup game by replacing their values with your own:<br> <b>background_url</b> : <span style="color:#25C;">the URL of the background image.</span><br> <b>area_width</b> : <span style="color:#25C;">the width of the scene, in pixel. usually this is the same as background width.</span><br> <b>area_width</b> : <span style="color:#25C;">the height of the scene, in pixel. usually this is the same as background height.</span><br> <b>default_link_text</b> : <span style="color:#25C;">the default text for the link to share the scene.</span><br> <b>img_list</b> : <span style="color:#25C;">the URLs of the components.</span><br> </p> <div style="margin-top:4px;padding:6px;margin-left:16px;margin-bottom:18px;background-color:#FFF;border:1px solid #333;"> <div> <b>img_list</b> is the most important part of the customization.<br>This is a snippet of the code: </div> <pre style="margin:0;padding:0;margin-top:8px;margin-bottom:8px;"> var img_list = new Array( '9! http://i185.photobucket.com/albums/x277/maschail/sea/bubbles.gif', '9! http://i185.photobucket.com/albums/x277/maschail/sea/bubbles.gif', '0! http://i185.photobucket.com/albums/x277/maschail/sea/seaweeds.gif', '1! http://i185.photobucket.com/albums/x277/maschail/sea/crab.gif', '2! http://i185.photobucket.com/albums/x277/maschail/sea/fish1.gif', </pre> <p> As you see, you can repeat the same component (<b>bubbles.gif</b>).<br>They will be displayed twice. </p> <p> Once you publish your game, you <span style="color:red"><u>must not</u></span> change the order of the components.<br> For the above code, the current order is <b>bubbles</b>, <b>bubbles</b>, <b>seaweeds</b>, <b>crab</b>, <b>fish1</b>.<br> If you want to upgrade the components, you may insert the new components AFTER the last component.<br> But you may not delete any of the existing components or insert a new component between the old ones. </p> <p> For example, the following order is allowed if you want to upgrade:<br> <b>bubbles</b>, <b>bubbles</b>, <b>seaweeds</b>, <b>crab</b>, <b>fish1</b><span style="color:#25F;">, <b>fish2</b></span><br> <b>bubbles</b>, <b>bubbles</b>, <b>seaweeds</b>, <b>crab</b>, <b>fish1</b><span style="color:#25F;">, <b>fish2</b>, <b>fish3</b>, <b>fish4</b></span> </p> <p> But these are NOT allowed:<br> <b>bubbles</b>, <b>bubbles</b>, <span style="color:#25F;"><b>bubbles</b>,</span> <b>seaweeds</b>, <b>crab</b>, <b>fish1</b> <span style="color:#F00;font-size:smaller;">(insertion at the wrong place)</span><br> <span style="color:#25F;"><b>fish2</b>,</span> <b>bubbles</b>, <b>bubbles</b>, <b>seaweeds</b>, <b>crab</b>, <b>fish1</b> <span style="color:#F00;font-size:smaller;">(insertion at the wrong place)</span><br> <b>bubbles</b>, <b>seaweeds</b>, <b>crab</b>, <b>fish1</b> <span style="color:#F00;font-size:smaller;">(removal of an existing component)</span> </p> <hr style="color: transparent; height: 1px; text-align: center; border: 1px dashed #AAA;"> <div> <b>Advanced users:</b> Did you notice the number at the front of the URL? </div> <pre style="margin:0;padding:0;margin-top:8px;margin-bottom:8px;"> var img_list = new Array( '<b style="color:red;">9</b>! http://i185.photobucket.com/albums/x277/maschail/sea/bubbles.gif', '<b style="color:red;">9</b>! http://i185.photobucket.com/albums/x277/maschail/sea/bubbles.gif', '<b style="color:red;">0</b>! http://i185.photobucket.com/albums/x277/maschail/sea/seaweeds.gif', '<b style="color:red;">1</b>! http://i185.photobucket.com/albums/x277/maschail/sea/crab.gif', '<b style="color:red;">2</b>! http://i185.photobucket.com/albums/x277/maschail/sea/fish1.gif', </pre> <p> 9, 9, 0, 1, 2 is the <b>z-index</b> of the component. </p> <p> Component with z-index <b>1</b> will appear at the front of component with z-index <b>0</b>.<br> Component with z-index <b>2</b> will appear at the front of component with z-index <b>1</b>.<br> Get the idea? </p> <div> By manipulating the z-index, you can arrange which components appear at the front. </div> </div> <br> <p> Congratulations, you have just finished with the HTML code! </p> <p> Copy the whole thing and create a page at <a href="http://ariscool.com">ArisCool</a>.<br> Your dressup game is ready. Tell your friends! </p> <p style="color:#F00;"><b>A note of caution:</b> Do not modify other parts of the HTML. You might break the code if you do so.</p> <p> </p> <div align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-2954880517658180"; google_alternate_color = "FFFFFF"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-07-25: ariscool-dressup-tut-bottom google_ad_channel = "9838152180"; google_color_border = ["C3D9FF","FFE6E6","1B703A","A61006"]; google_color_bg = ["F9FAFF","FFF9F6","FFFFCC","FFFFCC"]; google_color_link = ["003355","940F04","0000FF","0000FF"]; google_color_text = ["000033","191919","000000","000000"]; google_color_url = ["3D81EE","FF6655","008000","008000"]; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </div> <p> </p> <p> This tutorial was created by <a href="mailto:ariscool.com@gmail.com">Yohanes Aristianto</a> </p> </div> </body> </html>
Any comments or suggestions?
ariscool.com@gmail.com