asimryu

축구게임(화살표로 골대에 넣기) 기본 틀

Jun 16th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.95 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>coding game 1</title>
  6. <style>
  7.     #box {
  8.         width:500px;
  9.         height:500px;
  10.         border:1px solid #000;
  11.         position:relative;
  12.         background:url(http://webskills.kr/images/grid.png);
  13.     }
  14.     #post, #ball {
  15.         width:50px;
  16.         height:50px;
  17.         position:absolute;
  18.     }
  19.     #post {
  20.         left: 350px;
  21.         top: 350px;
  22.     }
  23.     #post {
  24.         background:url(http://webskills.kr/images/post.jpg);
  25.     }
  26.     #ball {
  27.         background:url(http://webskills.kr/images/ball.jpg);
  28.     }
  29. </style>
  30. <script src="http://code.jquery.com/jquery-latest.js"></script>
  31. </head>
  32. <body>
  33.     <div id="box">
  34.         <div id="post"></div>
  35.         <div id="ball"></div>
  36.     </div>
  37.    
  38.     <script>
  39.     //여기에 코드를 넣어서 게임을 완성하시오.
  40.     //화살표키를 움직여 공을 상하좌우로 이동하며
  41.     //공은 축구장을 벗어날 수 없고
  42.     //공기 골대에 들어가면 게임 종료(창이 뜨거나....)
  43.  
  44.     </script>
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment