summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2d/_collisions/pill_line.html2
-rw-r--r--2d/_collisions/pill_pill.html2
-rw-r--r--2d/_collisions/polygon_polygon.html2
-rw-r--r--2d/_collisions/rectangle_line.html2
-rw-r--r--2d/_collisions/rectangle_rectangle.html2
-rw-r--r--2d/rigidbody/rigidbody_1.html14
-rw-r--r--2d/rigidbody/rigidbody_1.html.content12
-rw-r--r--index.css70
-rw-r--r--index.html2
-rw-r--r--roadmap.html2
-rwxr-xr-xtranspiler/transpilerbin38744 -> 38744 bytes
-rw-r--r--transpiler/transpiler.cpp4
12 files changed, 67 insertions, 47 deletions
diff --git a/2d/_collisions/pill_line.html b/2d/_collisions/pill_line.html
index 63ae8ba..b28677d 100644
--- a/2d/_collisions/pill_line.html
+++ b/2d/_collisions/pill_line.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
diff --git a/2d/_collisions/pill_pill.html b/2d/_collisions/pill_pill.html
index 3394544..6dcf7d8 100644
--- a/2d/_collisions/pill_pill.html
+++ b/2d/_collisions/pill_pill.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
diff --git a/2d/_collisions/polygon_polygon.html b/2d/_collisions/polygon_polygon.html
index 574b0bd..90d8a09 100644
--- a/2d/_collisions/polygon_polygon.html
+++ b/2d/_collisions/polygon_polygon.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
diff --git a/2d/_collisions/rectangle_line.html b/2d/_collisions/rectangle_line.html
index 79facaf..8472763 100644
--- a/2d/_collisions/rectangle_line.html
+++ b/2d/_collisions/rectangle_line.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
diff --git a/2d/_collisions/rectangle_rectangle.html b/2d/_collisions/rectangle_rectangle.html
index a9fc0dd..63217d1 100644
--- a/2d/_collisions/rectangle_rectangle.html
+++ b/2d/_collisions/rectangle_rectangle.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
diff --git a/2d/rigidbody/rigidbody_1.html b/2d/rigidbody/rigidbody_1.html
index 9bc7b45..8fdcd07 100644
--- a/2d/rigidbody/rigidbody_1.html
+++ b/2d/rigidbody/rigidbody_1.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
@@ -80,6 +80,17 @@
<h2>
Live Example
</h2>
+ <div>
+ <div class="vector_group">
+ <label>Force (N)</label>
+
+ <input id="force_x" type="number" placeholder="X (Default = 10 N)" step="any"/>
+ <input id="force_y" type="number" placeholder="Y (Default = 20 N)" step="any"/>
+ </div>
+
+ <button id="apply_force">Apply Force</button>
+
+ </div>
<div class="opengl_canvas_container">
<canvas id="gl_canvas" width="640" height="480"></canvas>
<button id="gl_canvas_play" class="play_button">
@@ -89,6 +100,7 @@
Stop
</button>
</div>
+
<footer id="references">
<h2>References</h2>
<ul>
diff --git a/2d/rigidbody/rigidbody_1.html.content b/2d/rigidbody/rigidbody_1.html.content
index e806ffc..c316188 100644
--- a/2d/rigidbody/rigidbody_1.html.content
+++ b/2d/rigidbody/rigidbody_1.html.content
@@ -31,6 +31,17 @@
<h2>
Live Example
</h2>
+ <div>
+ <div class="vector_group">
+ <label>Force (N)</label>
+
+ <input id="force_x" type="number" placeholder="X (Default = 10 N)" step="any"/>
+ <input id="force_y" type="number" placeholder="Y (Default = 20 N)" step="any"/>
+ </div>
+
+ <button id="apply_force">Apply Force</button>
+
+ </div>
<div class="opengl_canvas_container">
<canvas id="gl_canvas" width="640" height="480"></canvas>
<button id="gl_canvas_play" class="play_button">
@@ -40,6 +51,7 @@
Stop
</button>
</div>
+
<footer id="references">
<h2>References</h2>
<ul>
diff --git a/index.css b/index.css
index bc87160..c0e86b7 100644
--- a/index.css
+++ b/index.css
@@ -2,44 +2,42 @@
Top level styling
************************************/
html {
- background: #2f3032;
- background: -webkit-radial-gradient(top, #383A56, #303133);
- background: -moz-radial-gradient(top, #383A56, #303133);
- background: radial-gradient(to bottom, #383A56, #303133);
+ background: #eee;
+ height: 100%;
+ overflow: auto;
}
body {
- background: #2f3032;
- min-height: calc(100vh - 64px);
-
font-size: 16px;
- font-family: "Helvetica", sans-serif;
+ font-family: "Noto Sans", sans-serif;
line-height: 1.5rem;
- width: 960px;
+ width: 1080px;
margin: auto;
- overflow-x: auto;
- overflow-y: auto;
- color: white;
- margin-top: 32px;
- margin-bottom: 32px;
+ color: #232325;
border-radius: 8px;
- border: 2px solid #383A56;
padding: 32px;
}
header {
- border-bottom: 2px solid #383A56;
- padding-top: 1rem;
- padding-bottom: 1rem;
- font-size: 20px;
+ margin: 0;
+ font-size: 16px;
text-align: center;
border-radius: 0px 0px 3px 3px;
+ padding: 0.25rem;
}
header > h1 {
margin: 0rem;
- padding-top: 0.5rem;
- padding-bottom: 0.5rem;
+}
+
+header > h1 > a {
+ color: inherit;
+ text-decoration: inherit;
+}
+
+header > h1 > a:hover {
+ font-weight: bold;
+ opacity: 0.5;
}
main {
@@ -64,7 +62,6 @@ nav {
text-align: left;
font-size: 1rem;
user-select: none;
- max-height: calc(100vh - 64px);
}
.outer-tree {
@@ -97,14 +94,13 @@ nav {
margin-left: 0.5rem;
padding-left: 1rem;
list-style: none;
- border-left: 1px solid white;
+ border-left: 1px solid #232325;
}
.inner-tree > li {
}
.inner-tree > li > label {
- color: white;
font-weight: bold;
text-align: center;
text-decoration: underline;
@@ -115,14 +111,14 @@ nav {
}
nav a {
- color: white;
+ color: #232325;
text-decoration: none;
display: inline-block;
min-width: 196px;
}
nav a:hover {
- opacity: 0.8;
+ opacity: 0.5;
cursor: pointer;
}
@@ -135,15 +131,15 @@ nav a:hover {
Content styling
************************************/
article {
- min-width: 74%;
- width: 74%;
- overflow-y: hidden;
+ min-width: 75%;
+ width: 75%;
+ overflow-y: auto;
}
article > h1 {
width: 100%;
- border-bottom: 1px solid #EDE68A;
padding-bottom: 0.25rem;
+ font-weight: 500;
}
section > p {
@@ -151,8 +147,9 @@ section > p {
}
section > h2 {
- padding-left: 0.25rem;
- font-size: 18px;
+ color: #0f3460;
+ font-size: 20px;
+ font-weight: 500;
}
section pre {
@@ -162,14 +159,13 @@ section pre {
line-height: 1.1rem;
}
-#references a,
-#references a:visited {
- color: #EDE68A;
- opacity: 0.8;
+#references a {
+ color: inherit;
+ text-decoration: none;
}
#references a:hover {
- opacity: 1.0;
+ opacity: 0.5;
}
diff --git a/index.html b/index.html
index d83a7b7..fa6fedd 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
diff --git a/roadmap.html b/roadmap.html
index be43991..405980e 100644
--- a/roadmap.html
+++ b/roadmap.html
@@ -8,7 +8,7 @@
</head>
<body>
<header>
- <h1>Physics for Games</h1>
+ <h1><a title="physicsforgames.com" href="/">Physics for Games</a></h1>
</header>
<main>
<nav>
diff --git a/transpiler/transpiler b/transpiler/transpiler
index 5b6e14f..3dba1f8 100755
--- a/transpiler/transpiler
+++ b/transpiler/transpiler
Binary files differ
diff --git a/transpiler/transpiler.cpp b/transpiler/transpiler.cpp
index fa9820a..3f2a006 100644
--- a/transpiler/transpiler.cpp
+++ b/transpiler/transpiler.cpp
@@ -200,7 +200,7 @@ int main() {
"\t</head>\n"
"\t<body>\n"
"\t\t<header>\n"
- "\t\t\t<h1>Physics for Games</h1>\n"
+ "\t\t\t<h1><a title=\"physicsforgames.com\" href=\"/\">Physics for Games</a></h1>\n"
"\t\t</header>\n"
"\t\t<main>\n");
@@ -247,4 +247,4 @@ int main() {
servedFiles.deallocate();
return 0;
-} \ No newline at end of file
+}