Added posts & fixed pages
This commit is contained in:
15
raws/projets/2022-01-01_quiz.md
Normal file
15
raws/projets/2022-01-01_quiz.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: Out Of Quiz
|
||||||
|
tags: rust vanillaJS jeu
|
||||||
|
date: 2022-01-01
|
||||||
|
yearonly: true
|
||||||
|
url: quiz.html
|
||||||
|
---
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
git: [git.gltronic.ovh/gltron/OutOfQuiz](https://git.gltronic.ovh/gltron/OutOfQuiz)
|
||||||
|
|
||||||
|
app: [quiz.gltronic.ovh](https://quiz.gltronic.ovh/)
|
||||||
|
|
||||||
|
Out Of Quiz est un jeu multijoueur de type quiz de vitesse, basé sur le Out Of Context d'un serveur Discord
|
||||||
15
raws/projets/2022-02-01_impact.md
Normal file
15
raws/projets/2022-02-01_impact.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: Deep Impact
|
||||||
|
tags: vanillaJS jeu
|
||||||
|
date: 2022-02-01
|
||||||
|
yearonly: true
|
||||||
|
url: impact.html
|
||||||
|
---
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
git: [git.gltronic.ovh/gltron/DeepImpact](https://git.gltronic.ovh/gltron/DeepImpact)
|
||||||
|
|
||||||
|
app: [impact.gltronic.ovh](https://impact.gltronic.ovh/)
|
||||||
|
|
||||||
|
Deep Impact est un missile command musical
|
||||||
BIN
resources/img/projets/impact_logo.webp
Normal file
BIN
resources/img/projets/impact_logo.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
BIN
resources/img/projets/quiz_logo.webp
Normal file
BIN
resources/img/projets/quiz_logo.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -15,6 +15,7 @@ let incrementer = 0.01;
|
|||||||
let reverse = false;
|
let reverse = false;
|
||||||
const rotationSpeed = 0.001;
|
const rotationSpeed = 0.001;
|
||||||
const orbitRadius = 1;
|
const orbitRadius = 1;
|
||||||
|
let lastRender = 0
|
||||||
|
|
||||||
// Helper
|
// Helper
|
||||||
function setupContainer (container) {
|
function setupContainer (container) {
|
||||||
@@ -84,8 +85,6 @@ async function initModels() {
|
|||||||
modelMoon.castShadow = true;
|
modelMoon.castShadow = true;
|
||||||
modelMoon.receiveShadow = true;
|
modelMoon.receiveShadow = true;
|
||||||
scene.add(modelMoon);
|
scene.add(modelMoon);
|
||||||
|
|
||||||
animateScene();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Animation
|
// Animation
|
||||||
@@ -106,8 +105,8 @@ function easeInOut() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function animateScene() {
|
function animateScene() {
|
||||||
requestAnimationFrame(animateScene);
|
|
||||||
|
|
||||||
|
if ((performance.now() - lastRender) > (1000 / 60)) {
|
||||||
modelPlanet.position.set(1, easeInOut() / 4 + 0.5, 0);
|
modelPlanet.position.set(1, easeInOut() / 4 + 0.5, 0);
|
||||||
modelPlanet.rotation.y += rotationSpeed;
|
modelPlanet.rotation.y += rotationSpeed;
|
||||||
|
|
||||||
@@ -117,6 +116,10 @@ function animateScene() {
|
|||||||
modelMoon.rotation.y -= rotationSpeed + 0.01;
|
modelMoon.rotation.y -= rotationSpeed + 0.01;
|
||||||
|
|
||||||
renderer.render(scene, camera);
|
renderer.render(scene, camera);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
requestAnimationFrame(animateScene);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Main
|
// Main
|
||||||
@@ -124,6 +127,7 @@ export function init() {
|
|||||||
initScene();
|
initScene();
|
||||||
initLights();
|
initLights();
|
||||||
initModels();
|
initModels();
|
||||||
|
animateScene();
|
||||||
}
|
}
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|||||||
@@ -7,7 +7,5 @@
|
|||||||
{{> submenu}}
|
{{> submenu}}
|
||||||
{{> article}}
|
{{> article}}
|
||||||
</div>
|
</div>
|
||||||
<div id="background" class="background"></div>
|
|
||||||
</body>
|
</body>
|
||||||
<script src="/js/main.js" type="module"></script>
|
|
||||||
</html>
|
</html>
|
||||||
@@ -7,11 +7,10 @@
|
|||||||
<a href="/">
|
<a href="/">
|
||||||
<video class="avatar" src="/img/avatar_animated2.webm" loop="loop" autoplay="autoplay"></video>
|
<video class="avatar" src="/img/avatar_animated2.webm" loop="loop" autoplay="autoplay"></video>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://gltronic.ovh/blog/index.html">Blog</a></li>
|
|
||||||
<li><a href="https://gltronic.ovh/projets/index.html">Projets</a></li>
|
<li><a href="https://gltronic.ovh/projets/index.html">Projets</a></li>
|
||||||
<li><a href="https://gltronic.ovh/artworks/index.html">Artworks</a></li>
|
<li><a href="https://gltronic.ovh/artworks/index.html">Artworks</a></li>
|
||||||
<li><a href="https://git.gltronic.ovh/">git</a></li>
|
<li><a href="https://gltronic.ovh/blog/index.html">Blog</a></li>
|
||||||
<li><a href="https://drop.gltronic.ovh/">drop</a></li>
|
<li><a href="https://git.gltronic.ovh/">Git</a></li>
|
||||||
<li><a href="https://gltronic.ovh/about.html">?</a></li>
|
<li><a href="https://gltronic.ovh/about.html">?</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</a>
|
</a>
|
||||||
@@ -22,5 +21,5 @@
|
|||||||
<footer style="position:fixed">
|
<footer style="position:fixed">
|
||||||
<a class="footer" href="/">gltronic - 2021</a>
|
<a class="footer" href="/">gltronic - 2021</a>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="/js/main.js" type="module"></script>
|
<script src="js/main.js" type="module"></script>
|
||||||
</html>
|
</html>
|
||||||
@@ -2,11 +2,10 @@
|
|||||||
<a href="/">
|
<a href="/">
|
||||||
<video class="avatar" src="/img/avatar_animated2.webm" loop="loop" autoplay="autoplay"></video>
|
<video class="avatar" src="/img/avatar_animated2.webm" loop="loop" autoplay="autoplay"></video>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://gltronic.ovh/blog/index.html">Blog</a></li>
|
|
||||||
<li><a href="https://gltronic.ovh/projets/index.html">Projets</a></li>
|
<li><a href="https://gltronic.ovh/projets/index.html">Projets</a></li>
|
||||||
<li><a href="https://gltronic.ovh/artworks/index.html">Artworks</a></li>
|
<li><a href="https://gltronic.ovh/artworks/index.html">Artworks</a></li>
|
||||||
<li><a href="https://git.gltronic.ovh/">git</a></li>
|
<li><a href="https://gltronic.ovh/blog/index.html">Blog</a></li>
|
||||||
<li><a href="https://drop.gltronic.ovh/">drop</a></li>
|
<li><a href="https://git.gltronic.ovh/">Git</a></li>
|
||||||
<li><a href="https://gltronic.ovh/about.html">?</a></li>
|
<li><a href="https://gltronic.ovh/about.html">?</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user