Skip to content

Commit d0f9f16

Browse files
committed
Made socket read and writes to be nonblocking
1 parent 99e523c commit d0f9f16

File tree

17 files changed

+2336
-66
lines changed

17 files changed

+2336
-66
lines changed

Assignments/Assignment2/files/a.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hello happy
2+
how are you
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
<head>
5+
<title>CG-Project</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7+
<link href="./static/style.css" rel="stylesheet" type="text/css" />
8+
</head>
9+
10+
<body>
11+
12+
<div id='enter'>
13+
<button id='enterbtn' onclick="startgame()">ENTER</button>
14+
</div>
15+
16+
<div id="racer">
17+
<div id="speedDiv">
18+
<span id="speed"><span id="speed_value" class="value">0</span> mph</span>
19+
</div>
20+
<div id='pointsDiv'>
21+
<span id="points">0</span>
22+
</div>
23+
<div class="lifeDiv">
24+
<div id="lifeValue" style='width: 100%;'></div>
25+
</div>
26+
<canvas id="canvas">
27+
28+
</canvas>
29+
<div id="leaderboard">
30+
<table>
31+
<thead>
32+
<tr>
33+
<th class="rank">Rank</th>
34+
<th class="name">Name</th>
35+
<th class="score">Points</th>
36+
</tr>
37+
</thead>
38+
<tbody id="leaderboard-body">
39+
</tbody>
40+
<tfoot>
41+
<tr>
42+
<th></th>
43+
<th id="userRank">1</th>
44+
</tr>
45+
</tfoot>
46+
</table>
47+
</div>
48+
</div>
49+
50+
<template id="leaderboard-row">
51+
<tr>
52+
<td class="rank"></td>
53+
<td class="name"></td>
54+
<td class="score"></td>
55+
</tr>
56+
</template>
57+
58+
<audio id='music' muted loop>
59+
<source src="./static/music/racer.mp3">
60+
</audio>
61+
<audio id='collisionMusic'>
62+
<source src="./static/music/collision.mp3">
63+
</audio>
64+
<audio id='acceleratingMusic' loop>
65+
<source src="./static/music/accelerate.mp3">
66+
</audio>
67+
<script src="./static/script.js"></script>
68+
69+
</body>
70+
</html>
59.5 KB
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resprite

0 commit comments

Comments
 (0)