So how do i do my game? How might you add a background, give your character the ability to jump, or include text?


#1


https://www.codecademy.com/en/courses/web-beginner-en-JwhI1/2/4?curriculum_id=50a3fad8c7a770b5fd0007a1#


No errors... Just fun!

Here's my html

<!DOCTYPE html>
<html>
    <head>
    	<title>Super Mario!</title>
        <link rel='stylesheet' type='text/css' href='stylesheet.css'/>
		<script type='text/javascript' src='script.js'></script>
	</head>
	<body>
        <img src="http://i1061.photobucket.com/albums/t480/ericqweinstein/mario.jpg"/>
        <div></div>
	</body>
</html>

And here is the css..

img {
    position: relative;
    left: 0;
    top: 0;
    z-index:11;
}

div {
    position: absolute;
    width: 100%;
    height: 76px;
    background: #00ff00;
    z-index: 10;
}

body {
    margin: 0;
    padding:0;
}

My script doesn't change.

And ... also I know if I can change the jpg with a png can make the gnome to not show his white background when he is falling under ground


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.