Skip to content

Commit

Permalink
style page
Browse files Browse the repository at this point in the history
  • Loading branch information
davetayls committed Feb 18, 2013
1 parent 4756c61 commit b88a1c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@
<title>Simple Racer</title>
<link href="racer.css" rel="stylesheet">
<style type="text/css">
body {
background: #000;
}
canvas {
display: block;
border: solid 1px #ccc;
border: solid 5px #444;
margin: 0 auto;
}
#info {
display: none;
}
</style>
</head>
<body>
<canvas id="canvas" width="1000" height="700"></canvas>
<div>
<div id="info">
Player: x <span id="px">0</span> y <span id="py"></span>
</div>
<script src="jquery.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions racer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function draw (car) {
context.clearRect(0,0,ctxW,ctxH);
context.drawImage(track, 0, 0);
drawRotatedImage(car.img, car.x, car.y, car.rotation);
drawPoint(car.collisions.top.getXY());
drawPoint(car.collisions.right.getXY());
// drawPoint(car.collisions.top.getXY());
// drawPoint(car.collisions.right.getXY());
}
function step (car) {
if (car.code === 'player'){
Expand Down

0 comments on commit b88a1c8

Please sign in to comment.