@guinetik/gcanvas 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/CNAME +1 -0
  2. package/dist/animations.html +31 -0
  3. package/dist/basic.html +38 -0
  4. package/dist/baskara.html +31 -0
  5. package/dist/bezier.html +35 -0
  6. package/dist/beziersignature.html +29 -0
  7. package/dist/blackhole.html +28 -0
  8. package/dist/blob.html +35 -0
  9. package/dist/coordinates.html +698 -0
  10. package/dist/cube3d.html +23 -0
  11. package/dist/demos.css +303 -0
  12. package/dist/dino.html +42 -0
  13. package/dist/easing.html +28 -0
  14. package/dist/events.html +195 -0
  15. package/dist/fluent.html +647 -0
  16. package/dist/fluid-simple.html +22 -0
  17. package/dist/fluid.html +37 -0
  18. package/dist/fractals.html +36 -0
  19. package/dist/gameobjects.html +626 -0
  20. package/dist/gcanvas.es.js +517 -0
  21. package/dist/gcanvas.es.min.js +1 -1
  22. package/dist/gcanvas.umd.js +1 -1
  23. package/dist/gcanvas.umd.min.js +1 -1
  24. package/dist/genart.html +26 -0
  25. package/dist/gendream.html +26 -0
  26. package/dist/group.html +36 -0
  27. package/dist/home.html +587 -0
  28. package/dist/hyperbolic001.html +23 -0
  29. package/dist/hyperbolic002.html +23 -0
  30. package/dist/hyperbolic003.html +23 -0
  31. package/dist/hyperbolic004.html +23 -0
  32. package/dist/hyperbolic005.html +22 -0
  33. package/dist/index.html +398 -0
  34. package/dist/isometric.html +34 -0
  35. package/dist/js/animations.js +452 -0
  36. package/dist/js/basic.js +204 -0
  37. package/dist/js/baskara.js +751 -0
  38. package/dist/js/bezier.js +692 -0
  39. package/dist/js/beziersignature.js +241 -0
  40. package/dist/js/blackhole/accretiondisk.obj.js +379 -0
  41. package/dist/js/blackhole/blackhole.obj.js +318 -0
  42. package/dist/js/blackhole/index.js +409 -0
  43. package/dist/js/blackhole/particle.js +56 -0
  44. package/dist/js/blackhole/starfield.obj.js +218 -0
  45. package/dist/js/blob.js +2276 -0
  46. package/dist/js/coordinates.js +840 -0
  47. package/dist/js/cube3d.js +789 -0
  48. package/dist/js/dino.js +1420 -0
  49. package/dist/js/easing.js +477 -0
  50. package/dist/js/fluent.js +183 -0
  51. package/dist/js/fluid-simple.js +253 -0
  52. package/dist/js/fluid.js +527 -0
  53. package/dist/js/fractals.js +932 -0
  54. package/dist/js/fractalworker.js +93 -0
  55. package/dist/js/gameobjects.js +176 -0
  56. package/dist/js/genart.js +268 -0
  57. package/dist/js/gendream.js +209 -0
  58. package/dist/js/group.js +140 -0
  59. package/dist/js/hyperbolic001.js +310 -0
  60. package/dist/js/hyperbolic002.js +388 -0
  61. package/dist/js/hyperbolic003.js +319 -0
  62. package/dist/js/hyperbolic004.js +345 -0
  63. package/dist/js/hyperbolic005.js +340 -0
  64. package/dist/js/info-toggle.js +25 -0
  65. package/dist/js/isometric.js +863 -0
  66. package/dist/js/kerr.js +1547 -0
  67. package/dist/js/lavalamp.js +590 -0
  68. package/dist/js/layout.js +354 -0
  69. package/dist/js/mondrian.js +285 -0
  70. package/dist/js/opacity.js +275 -0
  71. package/dist/js/painter.js +484 -0
  72. package/dist/js/particles-showcase.js +514 -0
  73. package/dist/js/particles.js +299 -0
  74. package/dist/js/patterns.js +397 -0
  75. package/dist/js/penrose/artifact.js +69 -0
  76. package/dist/js/penrose/blackhole.js +121 -0
  77. package/dist/js/penrose/constants.js +73 -0
  78. package/dist/js/penrose/game.js +943 -0
  79. package/dist/js/penrose/lore.js +278 -0
  80. package/dist/js/penrose/penrosescene.js +892 -0
  81. package/dist/js/penrose/ship.js +216 -0
  82. package/dist/js/penrose/sounds.js +211 -0
  83. package/dist/js/penrose/voidparticle.js +55 -0
  84. package/dist/js/penrose/voidscene.js +258 -0
  85. package/dist/js/penrose/voidship.js +144 -0
  86. package/dist/js/penrose/wormhole.js +46 -0
  87. package/dist/js/pipeline.js +555 -0
  88. package/dist/js/plane3d.js +256 -0
  89. package/dist/js/platformer.js +1579 -0
  90. package/dist/js/scene.js +304 -0
  91. package/dist/js/scenes.js +320 -0
  92. package/dist/js/schrodinger.js +410 -0
  93. package/dist/js/schwarzschild.js +1015 -0
  94. package/dist/js/shapes.js +628 -0
  95. package/dist/js/space/alien.js +171 -0
  96. package/dist/js/space/boom.js +98 -0
  97. package/dist/js/space/boss.js +353 -0
  98. package/dist/js/space/buff.js +73 -0
  99. package/dist/js/space/bullet.js +102 -0
  100. package/dist/js/space/constants.js +85 -0
  101. package/dist/js/space/game.js +1884 -0
  102. package/dist/js/space/hud.js +112 -0
  103. package/dist/js/space/laserbeam.js +179 -0
  104. package/dist/js/space/lightning.js +277 -0
  105. package/dist/js/space/minion.js +192 -0
  106. package/dist/js/space/missile.js +212 -0
  107. package/dist/js/space/player.js +430 -0
  108. package/dist/js/space/powerup.js +90 -0
  109. package/dist/js/space/starfield.js +58 -0
  110. package/dist/js/space/starpower.js +90 -0
  111. package/dist/js/spacetime.js +559 -0
  112. package/dist/js/sphere3d.js +229 -0
  113. package/dist/js/sprite.js +473 -0
  114. package/dist/js/starfaux/config.js +118 -0
  115. package/dist/js/starfaux/enemy.js +353 -0
  116. package/dist/js/starfaux/hud.js +78 -0
  117. package/dist/js/starfaux/index.js +482 -0
  118. package/dist/js/starfaux/laser.js +182 -0
  119. package/dist/js/starfaux/player.js +468 -0
  120. package/dist/js/starfaux/terrain.js +560 -0
  121. package/dist/js/study001.js +275 -0
  122. package/dist/js/study002.js +366 -0
  123. package/dist/js/study003.js +331 -0
  124. package/dist/js/study004.js +389 -0
  125. package/dist/js/study005.js +209 -0
  126. package/dist/js/study006.js +194 -0
  127. package/dist/js/study007.js +192 -0
  128. package/dist/js/study008.js +413 -0
  129. package/dist/js/svgtween.js +204 -0
  130. package/dist/js/tde/accretiondisk.js +471 -0
  131. package/dist/js/tde/blackhole.js +219 -0
  132. package/dist/js/tde/blackholescene.js +209 -0
  133. package/dist/js/tde/config.js +59 -0
  134. package/dist/js/tde/index.js +820 -0
  135. package/dist/js/tde/jets.js +290 -0
  136. package/dist/js/tde/lensedstarfield.js +154 -0
  137. package/dist/js/tde/tdestar.js +297 -0
  138. package/dist/js/tde/tidalstream.js +372 -0
  139. package/dist/js/tde_old/blackhole.obj.js +354 -0
  140. package/dist/js/tde_old/debris.obj.js +791 -0
  141. package/dist/js/tde_old/flare.obj.js +239 -0
  142. package/dist/js/tde_old/index.js +448 -0
  143. package/dist/js/tde_old/star.obj.js +812 -0
  144. package/dist/js/tetris/config.js +157 -0
  145. package/dist/js/tetris/grid.js +286 -0
  146. package/dist/js/tetris/index.js +1195 -0
  147. package/dist/js/tetris/renderer.js +634 -0
  148. package/dist/js/tetris/tetrominos.js +280 -0
  149. package/dist/js/tiles.js +312 -0
  150. package/dist/js/tweendemo.js +79 -0
  151. package/dist/js/visibility.js +102 -0
  152. package/dist/kerr.html +28 -0
  153. package/dist/lavalamp.html +27 -0
  154. package/dist/layouts.html +37 -0
  155. package/dist/logo.svg +4 -0
  156. package/dist/loop.html +84 -0
  157. package/dist/mondrian.html +32 -0
  158. package/dist/og_image.png +0 -0
  159. package/dist/opacity.html +36 -0
  160. package/dist/painter.html +39 -0
  161. package/dist/particles-showcase.html +28 -0
  162. package/dist/particles.html +24 -0
  163. package/dist/patterns.html +33 -0
  164. package/dist/penrose-game.html +31 -0
  165. package/dist/pipeline.html +737 -0
  166. package/dist/plane3d.html +24 -0
  167. package/dist/platformer.html +43 -0
  168. package/dist/scene.html +33 -0
  169. package/dist/scenes.html +96 -0
  170. package/dist/schrodinger.html +27 -0
  171. package/dist/schwarzschild.html +27 -0
  172. package/dist/shapes.html +16 -0
  173. package/dist/space.html +85 -0
  174. package/dist/spacetime.html +27 -0
  175. package/dist/sphere3d.html +24 -0
  176. package/dist/sprite.html +18 -0
  177. package/dist/starfaux.html +22 -0
  178. package/dist/study001.html +23 -0
  179. package/dist/study002.html +23 -0
  180. package/dist/study003.html +23 -0
  181. package/dist/study004.html +23 -0
  182. package/dist/study005.html +22 -0
  183. package/dist/study006.html +24 -0
  184. package/dist/study007.html +24 -0
  185. package/dist/study008.html +22 -0
  186. package/dist/svgtween.html +29 -0
  187. package/dist/tde.html +28 -0
  188. package/dist/tetris3d.html +25 -0
  189. package/dist/tiles.html +28 -0
  190. package/dist/transforms.html +400 -0
  191. package/dist/tween.html +45 -0
  192. package/dist/visibility.html +33 -0
  193. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Plane3D Showcase - GCanvas</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Plane3D Showcase</strong> — 3D plane rendering modes<br/>
13
+ <span style="color:#CCC">
14
+ <li>Solid Color (Canvas 2D rendering)</li>
15
+ <li>Gradient (WebGL shader)</li>
16
+ <li>Grid (WebGL shader)</li>
17
+ <li>Drag to rotate camera</li>
18
+ <li>Double-click to reset view</li>
19
+ </span>
20
+ </div>
21
+ <canvas id="game"></canvas>
22
+ <script type="module" src="./js/plane3d.js"></script>
23
+ </body>
24
+ </html>
@@ -0,0 +1,43 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Tron Platformer - GCanvas Demo</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ <style>
10
+ /* Override for full immersion */
11
+ body {
12
+ background: #000;
13
+ }
14
+
15
+ canvas#game {
16
+ width: 100vw;
17
+ height: 100vh;
18
+ }
19
+
20
+ #info {
21
+ background: rgba(0, 0, 0, 0.9);
22
+ border-bottom: 1px solid #00ff00;
23
+ }
24
+
25
+ #info strong {
26
+ color: #00ff00;
27
+ }
28
+ </style>
29
+ </head>
30
+ <body>
31
+ <div id="info">
32
+ <strong>NETRUNNER.exe</strong> — platformer demo<br/>
33
+ <span style="color:#666">
34
+ <li>ARROWS / WASD: move left/right</li>
35
+ <li>SPACE / UP / W: jump</li>
36
+ <li>stomp enemies • collect data orbs</li>
37
+ <li>reach the portal to complete the level</li>
38
+ </span>
39
+ </div>
40
+ <canvas id="game"></canvas>
41
+ <script type="module" src="./js/platformer.js"></script>
42
+ </body>
43
+ </html>
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>gcanvas Scene System Demo</title>
8
+ <link rel="stylesheet" href="demos.css" />
9
+ <script src="./js/info-toggle.js"></script>
10
+ </head>
11
+
12
+ <body>
13
+ <div id="info" class="light">
14
+ <strong>Scene Demo</strong><br>
15
+ <span>This demo shows how to layer game objects using <code>Scene</code>.<br />
16
+ It also features the <code>Draggable</code> mix-in to allow dragging of game objects.<br>
17
+ Click on a square to bring it to the front of the scene.<br>
18
+ Drag the squares around the canvas.<br>
19
+ </span>
20
+ </div>
21
+ <canvas id="game"></canvas>
22
+ <script type="module">
23
+ import { DemoGame } from "./js/scene.js";
24
+ // Initialize the game
25
+ window.addEventListener("load", () => {
26
+ const canvas = document.getElementById("game");
27
+ const game = new DemoGame(canvas);
28
+ game.start();
29
+ });
30
+ </script>
31
+ </body>
32
+
33
+ </html>
@@ -0,0 +1,96 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Scenes Demo</title>
8
+ <link rel="stylesheet" href="demos.css" />
9
+ <script src="./js/info-toggle.js"></script>
10
+ <style>
11
+ #debug-toggle {
12
+ position: absolute;
13
+ bottom: 20px;
14
+ left: 20px;
15
+ z-index: 100;
16
+ padding: 10px 20px;
17
+ font-family: monospace;
18
+ font-size: 14px;
19
+ background: #333;
20
+ color: #ff00ff;
21
+ border: 2px solid #ff00ff;
22
+ cursor: pointer;
23
+ transition: all 0.2s ease;
24
+ }
25
+ #debug-toggle:hover {
26
+ background: #ff00ff;
27
+ color: #000;
28
+ }
29
+ #debug-toggle.active {
30
+ background: #ff00ff;
31
+ color: #000;
32
+ }
33
+ </style>
34
+ </head>
35
+
36
+ <body>
37
+ <div id="info" class="light">
38
+ <strong>Scenes Demo</strong> —
39
+ A <code>Scene</code> is a container for <code>GameObjects</code> that provides its own coordinate system and transforms.
40
+ Scenes can be nested inside other scenes, support z-ordering with <code>bringToFront()</code> and <code>sendToBack()</code>,
41
+ and inherit from <code>GameObject</code> so they have full transform support (position, rotation, scale).
42
+ Use scenes to organize game layers, UI panels, or any logical grouping of objects.
43
+ </div>
44
+ <button id="debug-toggle">Toggle Debug</button>
45
+ <canvas id="game"></canvas>
46
+ <script type="module">
47
+ import { MyGame } from './js/scenes.js';
48
+
49
+ window.addEventListener("load", () => {
50
+ const canvas = document.getElementById("game");
51
+ const game = new MyGame(canvas);
52
+ game.start();
53
+
54
+ // Debug toggle
55
+ let debugEnabled = false;
56
+ const debugBtn = document.getElementById("debug-toggle");
57
+
58
+ debugBtn.addEventListener("click", () => {
59
+ debugEnabled = !debugEnabled;
60
+ debugBtn.classList.toggle("active", debugEnabled);
61
+ debugBtn.textContent = debugEnabled ? "Debug: ON" : "Toggle Debug";
62
+
63
+ // Toggle debug on all scenes recursively
64
+ function toggleSceneDebug(scene) {
65
+ if (scene._debug !== undefined) {
66
+ scene._debug = debugEnabled;
67
+ }
68
+ if (scene.children) {
69
+ scene.children.forEach(child => {
70
+ if (child._debug !== undefined) {
71
+ child._debug = debugEnabled;
72
+ }
73
+ // Check for nested scenes
74
+ if (child.scene) toggleSceneDebug(child.scene);
75
+ if (child.outerScene) toggleSceneDebug(child.outerScene);
76
+ if (child.innerScene) toggleSceneDebug(child.innerScene);
77
+ });
78
+ }
79
+ }
80
+
81
+ // Toggle main scene and all nested scenes
82
+ if (game.mainScene) {
83
+ toggleSceneDebug(game.mainScene);
84
+ // Also toggle on demo objects that have scenes
85
+ game.mainScene.children.forEach(demo => {
86
+ if (demo.scene) toggleSceneDebug(demo.scene);
87
+ if (demo.outerScene) toggleSceneDebug(demo.outerScene);
88
+ if (demo.innerScene) toggleSceneDebug(demo.innerScene);
89
+ });
90
+ }
91
+ });
92
+ });
93
+ </script>
94
+ </body>
95
+
96
+ </html>
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Math & Physics - Schrodinger Wave</title>
8
+ <link rel="stylesheet" href="demos.css" />
9
+ <script src="./js/info-toggle.js"></script>
10
+ </head>
11
+
12
+ <body>
13
+ <div id="info">
14
+ <strong>Gaussian Wave Packet</strong> — Quantum wave function visualization.<br/>
15
+ <span style="color:#CCC">
16
+ <li><code>3D Helix</code> — Complex wave shown as spiral (Re + Im).</li>
17
+ <li><code>Envelope</code> — Gaussian bell curve (red) shows |Ψ|².</li>
18
+ <li><code>Projection</code> — Blue wave on grid shows Re(Ψ).</li>
19
+ <li><code>Drag</code> — Rotate the 3D view with mouse.</li>
20
+ <li><code>Double-click</code> — Reset view and animation.</li>
21
+ </span>
22
+ </div>
23
+ <canvas id="game"></canvas>
24
+ <script type="module" src="./js/schrodinger.js"></script>
25
+ </body>
26
+
27
+ </html>
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Math & Physics - Schwarzschild Metric</title>
8
+ <link rel="stylesheet" href="demos.css" />
9
+ <script src="./js/info-toggle.js"></script>
10
+ </head>
11
+
12
+ <body>
13
+ <div id="info">
14
+ <strong>Schwarzschild Metric</strong> — General relativity with tensor math.<br/>
15
+ <span style="color:#CCC">
16
+ <li><code>Metric</code> — g<sub>μν</sub> tensor components shown live.</li>
17
+ <li><code>Geodesic</code> — Test particle follows curved spacetime.</li>
18
+ <li><code>Precession</code> — Orbit rotates (like Mercury).</li>
19
+ <li><code>Click</code> — Shuffle mass and orbital parameters.</li>
20
+ <li><code>Drag</code> — Rotate the 3D view.</li>
21
+ </span>
22
+ </div>
23
+ <canvas id="game"></canvas>
24
+ <script type="module" src="./js/schwarzschild.js"></script>
25
+ </body>
26
+
27
+ </html>
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Shapes Demo</title>
8
+ <link rel="stylesheet" href="demos.css" />
9
+ </head>
10
+
11
+ <body>
12
+ <canvas id="game"></canvas>
13
+ <script type="module" src="./js/shapes.js"></script>
14
+ </body>
15
+
16
+ </html>
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Space Invaders - GCanvas Demo</title>
8
+ <link rel="stylesheet" href="demos.css" />
9
+ <script src="./js/info-toggle.js"></script>
10
+ <style>
11
+ /* Fullscreen game layout */
12
+ html, body {
13
+ margin: 0;
14
+ padding: 0;
15
+ width: 100%;
16
+ height: 100%;
17
+ overflow: hidden;
18
+ background: #000011;
19
+ }
20
+ body {
21
+ display: flex;
22
+ flex-direction: column;
23
+ }
24
+ #info {
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ right: 0;
29
+ z-index: 10;
30
+ background: rgba(0, 0, 17, 0.85);
31
+ border-bottom: 1px solid #333;
32
+ }
33
+ canvas#game {
34
+ display: block;
35
+ width: 100%;
36
+ height: 100%;
37
+ }
38
+ </style>
39
+ </head>
40
+
41
+ <body>
42
+ <div id="info">
43
+ <strong>Space Invaders</strong> — A classic arcade game clone built with GCanvas.<br>
44
+ <strong>Controls:</strong> Arrow keys or A/D to move, Space to shoot.<br>
45
+ <strong>Objective:</strong> Destroy all aliens before they reach the bottom!
46
+ </div>
47
+ <canvas id="game"></canvas>
48
+
49
+ <script type="module">
50
+ import { SpaceGame } from "./js/space/game.js";
51
+
52
+ let game = null;
53
+
54
+ function startGame() {
55
+ // Clean up any existing game instance (fixes HMR duplication bug)
56
+ if (game) {
57
+ game.stop();
58
+ game = null;
59
+ }
60
+
61
+ const canvas = document.getElementById("game");
62
+ game = new SpaceGame(canvas);
63
+ game.enablePauseOnBlur(true);
64
+ game.setFPS(60);
65
+ game.start();
66
+
67
+ // Store reference for HMR cleanup
68
+ window.__spaceGame = game;
69
+ }
70
+
71
+ // Clean up on HMR
72
+ if (import.meta.hot) {
73
+ import.meta.hot.dispose(() => {
74
+ if (window.__spaceGame) {
75
+ window.__spaceGame.stop();
76
+ window.__spaceGame = null;
77
+ }
78
+ });
79
+ }
80
+
81
+ window.addEventListener("load", startGame);
82
+ </script>
83
+ </body>
84
+
85
+ </html>
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Math & Physics - Spacetime Curvature</title>
8
+ <link rel="stylesheet" href="demos.css" />
9
+ <script src="./js/info-toggle.js"></script>
10
+ </head>
11
+
12
+ <body>
13
+ <div id="info">
14
+ <strong>Spacetime Curvature</strong> — General relativity visualization.<br/>
15
+ <span style="color:#CCC">
16
+ <li><code>Grid</code> — Flat spacetime distorted by mass.</li>
17
+ <li><code>Well</code> — Gravitational potential creates curvature.</li>
18
+ <li><code>Click</code> — Shuffle to a new stellar body.</li>
19
+ <li><code>Drag</code> — Rotate the 3D view.</li>
20
+ <li><code>Double-click</code> — Reset view.</li>
21
+ </span>
22
+ </div>
23
+ <canvas id="game"></canvas>
24
+ <script type="module" src="./js/spacetime.js"></script>
25
+ </body>
26
+
27
+ </html>
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Sphere3D Showcase - GCanvas</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Sphere3D Showcase</strong> — 3D sphere rendering modes<br/>
13
+ <span style="color:#CCC">
14
+ <li>Solid Color (Canvas 2D rendering)</li>
15
+ <li>Gas Giant (WebGL shader with bands)</li>
16
+ <li>Star (WebGL shader with glow)</li>
17
+ <li>Drag to rotate camera</li>
18
+ <li>Double-click to reset view</li>
19
+ </span>
20
+ </div>
21
+ <canvas id="game"></canvas>
22
+ <script type="module" src="./js/sphere3d.js"></script>
23
+ </body>
24
+ </html>
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <title>Sprite Timeline Demo</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ </head>
9
+
10
+ <body>
11
+ <div id="info">
12
+ <strong>Sprite Demo</strong> - Demonstrates the Sprite class, a MovieClip-style GameObject with frame-by-frame timeline animation. Each Sprite contains a collection of Shapes as frames, with timeline controls including play(), pause(), stop(), goto(), gotoAndStop(), gotoAndPlay(), and rewind(). This showcases how to create frame-by-frame animations similar to Adobe Flash MovieClips within the gcanvas engine's abstractions.
13
+ </div>
14
+ <canvas id="game"></canvas>
15
+ <script type="module" src="./js/sprite.js"></script>
16
+ </body>
17
+
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>StarFaux - Rail Shooter</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>StarFaux</strong> — StarFox64-style rail shooter<br/>
13
+ <span style="color:#CCC">
14
+ <li>Arrow Keys / WASD: Move ship</li>
15
+ <li>Space: Fire lasers</li>
16
+ <li>Avoid enemies, shoot them down!</li>
17
+ </span>
18
+ </div>
19
+ <canvas id="game"></canvas>
20
+ <script type="module" src="./js/starfaux/index.js"></script>
21
+ </body>
22
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 001 - Grid Bounce</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 001 - Grid Bounce</strong><br/>
13
+ <span style="color:#CCC">
14
+ Original art by <a href="https://twitter.com/okazz_" target="_blank" style="color:#0af">@okazz_</a><br/>
15
+ <li>Colored circles bounce between grid points</li>
16
+ <li>Motion trails show movement paths</li>
17
+ <li>Click to randomize colors</li>
18
+ </span>
19
+ </div>
20
+ <canvas id="game"></canvas>
21
+ <script type="module" src="./js/study001.js"></script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 002 - Hex Grid</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 002 - Hex Grid</strong><br/>
13
+ <span style="color:#CCC">
14
+ Original art by <a href="https://twitter.com/okazz_" target="_blank" style="color:#0af">@okazz_</a><br/>
15
+ <li>Triangular lattice grid (6 directions)</li>
16
+ <li>Ring circles with center dots</li>
17
+ <li>Click to randomize colors</li>
18
+ </span>
19
+ </div>
20
+ <canvas id="game"></canvas>
21
+ <script type="module" src="./js/study002.js"></script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 003 - Circuit</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 003 - Circuit</strong><br/>
13
+ <span style="color:#CCC">
14
+ Generative circuit patterns<br/>
15
+ <li>Random maze-like connections</li>
16
+ <li>White dots traverse the paths</li>
17
+ <li>Click to regenerate circuit</li>
18
+ </span>
19
+ </div>
20
+ <canvas id="game"></canvas>
21
+ <script type="module" src="./js/study003.js"></script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 004 - Hex Bloom</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 004 - Hex Bloom</strong><br/>
13
+ <span style="color:#CCC">
14
+ Original art by <a href="https://twitter.com/okazz_" target="_blank" style="color:#0af">@okazz_</a><br/>
15
+ <li>Radial hexagon explosion</li>
16
+ <li>Tweenetik-powered animations</li>
17
+ <li>Click to bloom again</li>
18
+ </span>
19
+ </div>
20
+ <canvas id="game"></canvas>
21
+ <script type="module" src="./js/study004.js"></script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 005 - Hex Flow</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 005 - Hex Flow</strong><br/>
13
+ <span style="color:#CCC">
14
+ <li>Hexagonal grid with wave interference</li>
15
+ <li>Rotation + scale pulsing</li>
16
+ <li>Click to shift palette</li>
17
+ </span>
18
+ </div>
19
+ <canvas id="game"></canvas>
20
+ <script type="module" src="./js/study005.js"></script>
21
+ </body>
22
+ </html>
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 006 - Psychedelic Drop</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 006 - Psychedelic Drop</strong><br/>
13
+ <span style="color:#CCC">
14
+ <li>Ripples in space-time</li>
15
+ <li>Unintentional psychedelic patterns</li>
16
+ <li>Move mouse to disturb the pool</li>
17
+ <li>Click to change palette</li>
18
+ </span>
19
+ </div>
20
+ <canvas id="game"></canvas>
21
+ <script type="module" src="./js/study006.js"></script>
22
+ </body>
23
+ </html>
24
+
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 007 - Interference</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 007 - Interference</strong><br/>
13
+ <span style="color:#CCC">
14
+ Multiple wave emitters creating moiré chaos with chromatic aberration.
15
+ <li>RGB channel separation</li>
16
+ <li>7 orbiting wave sources</li>
17
+ <li>Click to randomize</li>
18
+ </span>
19
+ </div>
20
+ <canvas id="game"></canvas>
21
+ <script type="module" src="./js/study007.js"></script>
22
+ </body>
23
+ </html>
24
+
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Study 008 - GCanvas 3D Logo</title>
7
+ <link rel="stylesheet" href="demos.css" />
8
+ <script src="./js/info-toggle.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="info">
12
+ <strong>Study 008 - 3D Logo</strong><br/>
13
+ <span style="color:#CCC">
14
+ <li>Extruded SVG Geometry</li>
15
+ <li>Wireframe rendering</li>
16
+ <li>Mouse interaction</li>
17
+ </span>
18
+ </div>
19
+ <canvas id="game"></canvas>
20
+ <script type="module" src="./js/study008.js"></script>
21
+ </body>
22
+ </html>