Compare commits

..
39 Commits
Author SHA1 Message Date
nocode 7f0406261d style(images): replace webp with png profile picture and constrain image width 2026-05-28 16:34:58 +02:00
nocode f414a60115 fix(contact): update form action and method in contact form 2026-05-28 15:58:44 +02:00
nocode 132516f828 style(shared): remove padding-top from nav mobile breakpoint 2026-05-28 15:26:29 +02:00
nocode 1a979a1754 style(shared): update nav fieldset borders and legend margins 2026-05-28 14:01:29 +02:00
nocode 630df0a039 style(shared): remove border-radius from nav fieldset 2026-05-28 13:56:01 +02:00
nocode b5221ee344 style(shared): update nav fieldset border styling to individual sides 2026-05-28 13:53:36 +02:00
nocode 425b253432 refactor(todo-file): Remove the last line 2026-05-26 10:39:29 +02:00
nocode e759b8c3e6 style(hell-bullet): update game title and ui text labels 2026-05-26 09:30:19 +02:00
nocode b7834de6d1 fix(hell-bullet): adjust zone progression difficulty and fix end screen zone display logic 2026-05-26 09:26:06 +02:00
nocode e44d11132a feat(hell-bullet): add touch controls and optimize game canvas styling 2026-05-26 09:07:07 +02:00
nocode 913ebaf863 style(shared): remove empty line rule and update nav mobile styles 2026-05-26 08:52:26 +02:00
nocode 9071901574 style(shared): adjust line element positioning and add mobile styles 2026-05-26 08:30:05 +02:00
nocode b97f858e70 style(squares-solar): adjust layout heights and spacing for solar grid component 2026-05-26 08:25:21 +02:00
nocode 56d23eef9a chore(project): remove archived project zip file 2026-05-22 13:55:58 +02:00
nocode 1baec1ad9b fix(Danmaku): update normal enemy image to SabreFirebird PNG 2026-05-22 13:47:54 +02:00
nocode 16d9c3f525 feat(assets): add SabreFirebird enemy image and update Star Citizen logo 2026-05-22 13:45:12 +02:00
nocode 66877932c7 feat(language): add language page with styles and skill tag links 2026-05-21 17:21:19 +02:00
nocode c2b891c7e8 docs(project): replace template files with final project documents 2026-05-21 16:18:58 +02:00
nocode 2ec29f31b2 style(Danmaku): Change the size of the game
Signed-off-by: nocode <suzuku295@gmail.com>
2026-05-21 15:28:44 +02:00
Kyllian Gregoire de78b9252e refactor(Danmaku)!: Game making 2026-05-21 15:15:09 +02:00
Kyllian Gregoire 295f8cfaf8 feat(Danmaku): Edit CSS of the game in index.html 2026-05-21 15:13:20 +02:00
nocode e5a5438c16 fix(danmaku): resize 2026-05-12 11:23:49 +02:00
nocode f6022fb3f0 feat(game): Game is near to be finished 2026-05-12 11:23:16 +02:00
nocode 73169ee1b1 refactor(danmaku): Recreating by ZERO the danmaku game 2026-05-12 10:19:46 +02:00
nocode 3d11f2325a docs(report): Add the PDF, the DOCX and the htm page with all his files 2026-05-12 10:18:50 +02:00
nocode 6196fb418d refactor(danmaku): Changing the name of the div 'game' > 'canvas' 2026-05-12 10:17:53 +02:00
nocode b667ed8e45 feat(gitignore): disable temporary files starting with ~ 2026-05-12 10:16:28 +02:00
nocode 83c1341b7b feat(gitignore): add .zip ignore 2026-05-12 08:48:34 +02:00
nocode 226a248e47 fix(lore): the word in a text 2026-05-12 08:46:42 +02:00
nocode dcc700c1f3 Edit ─ .gitignore 2026-05-12 08:35:09 +02:00
nocode 359035dcff Move ─ All the other file to the directory 'Annexes' 2026-05-12 08:34:50 +02:00
nocode ed2abed70c Edit ─ squares*.css to put the texte on justify 2026-05-12 08:32:20 +02:00
nocode 3416aefa57 Add ─ Docx 2026-05-11 13:41:59 +02:00
nocode 0fffed7837 dit ─ Revert previous commit 2026-05-11 13:13:34 +02:00
nocode 69fe5d0221 Add ─ Ultrawide responsive breakpoints (1920px, 2560px, 3440px, 5120px) for grid layout and div-content padding 2026-05-09 20:05:55 +02:00
nocode 7b0dcf76c8 Add ─ Ultrawide responsive breakpoints (1920px, 2560px, 3440px, 5120px) for grid layout and paragraph font-size 2026-05-09 20:05:39 +02:00
nocode 8c69d96059 Add ─ Ultrawide responsive breakpoints (1920px, 2560px, 3440px, 5120px) for grid layout, paragraph font-size and image max-width 2026-05-09 20:05:34 +02:00
nocode d9a42163d7 Add ─ Ultrawide responsive breakpoints (1920px, 2560px, 3440px, 5120px) for grid layout and div-content height 2026-05-09 20:05:29 +02:00
nocode f2d1a92f15 Add ─ Ultrawide responsive breakpoints (1920px, 2560px, 3440px, 5120px) for nav, h1, h2 and wallpaper 2026-05-09 20:05:18 +02:00
65 changed files with 3844 additions and 171 deletions

No files matched your search

+4 -2
View File
@@ -3,8 +3,10 @@
*.txt
*.gpg
gitea*
*.pub
*.zip
~*.*
# Exceptions
!à-faire.txt
!opquast.com.txt
Binary file not shown.
File renamed without changes.
Binary file not shown.
File diff suppressed because it is too large. Load diff
Binary file not shown.
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<a:clrMap xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>
@@ -0,0 +1,27 @@
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
<o:MainFile HRef="../t-PI293-KGE-V1-Rapport.htm"/>
<o:File HRef="themedata.thmx"/>
<o:File HRef="colorschememapping.xml"/>
<o:File HRef="image001.jpg"/>
<o:File HRef="image002.jpg"/>
<o:File HRef="image003.jpg"/>
<o:File HRef="image004.jpg"/>
<o:File HRef="image005.jpg"/>
<o:File HRef="image006.jpg"/>
<o:File HRef="image007.jpg"/>
<o:File HRef="image008.jpg"/>
<o:File HRef="image009.jpg"/>
<o:File HRef="image010.jpg"/>
<o:File HRef="image011.jpg"/>
<o:File HRef="image012.jpg"/>
<o:File HRef="image013.jpg"/>
<o:File HRef="image014.jpg"/>
<o:File HRef="image015.jpg"/>
<o:File HRef="image016.jpg"/>
<o:File HRef="image017.jpg"/>
<o:File HRef="image018.jpg"/>
<o:File HRef="image019.jpg"/>
<o:File HRef="image020.jpg"/>
<o:File HRef="header.htm"/>
<o:File HRef="filelist.xml"/>
</xml>
@@ -0,0 +1,82 @@
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 15">
<meta name=Originator content="Microsoft Word 15">
<link id=Main-File rel=Main-File href="../t-PI293-KGE-V1-Rapport.htm">
</head>
<body lang=FR-CH link="#0563C1" vlink="#96607D">
<div style='mso-element:footnote-separator' id=fs>
<p class=MsoNormal><span style='mso-special-character:footnote-separator'><![if !supportFootnotes]>
<hr align=left size=1 width="33%">
<![endif]></span></p>
</div>
<div style='mso-element:footnote-continuation-separator' id=fcs>
<p class=MsoNormal><span style='mso-special-character:footnote-continuation-separator'><![if !supportFootnotes]>
<hr align=left size=1>
<![endif]></span></p>
</div>
<div style='mso-element:endnote-separator' id=es>
<p class=MsoNormal><span style='mso-special-character:footnote-separator'><![if !supportFootnotes]>
<hr align=left size=1 width="33%">
<![endif]></span></p>
</div>
<div style='mso-element:endnote-continuation-separator' id=ecs>
<p class=MsoNormal><span style='mso-special-character:footnote-continuation-separator'><![if !supportFootnotes]>
<hr align=left size=1>
<![endif]></span></p>
</div>
<div style='mso-element:header' id=h1>
<p class=MsoNormal align=right style='text-align:right'><i><span
style='font-size:9.0pt;color:#595959'>Dossier de projet web</span></i></p>
</div>
<div style='mso-element:footer' id=f1>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:9.0pt;color:#595959'>Page </span><!--[if supportFields]><span
style='font-size:9.0pt;color:#595959'><span style='mso-element:field-begin'></span>PAGE<span
style='mso-element:field-separator'></span></span><![endif]--><span
style='font-size:9.0pt;color:#595959'><span style='mso-no-proof:yes'>1</span></span><!--[if supportFields]><span
style='font-size:9.0pt;color:#595959'><span style='mso-element:field-end'></span></span><![endif]--><span
style='font-size:9.0pt;color:#595959'> / </span><!--[if supportFields]><span
style='font-size:9.0pt;color:#595959'><span style='mso-element:field-begin'></span>NUMPAGES<span
style='mso-element:field-separator'></span></span><![endif]--><span
style='font-size:9.0pt;color:#595959'><span style='mso-no-proof:yes'>2</span></span><!--[if supportFields]><span
style='font-size:9.0pt;color:#595959'><span style='mso-element:field-end'></span></span><![endif]--></p>
</div>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File
Whitespace-only changes.
Binary file not shown.
+5 -4
View File
@@ -7,7 +7,8 @@
<link rel="stylesheet" href="./public/css/index.css">
<link rel="stylesheet" href="./public/css/shared.css">
<link rel="stylesheet" href="./public/css/cubes.css">
<link rel="icon" href="./public/images/favicon.png">
<link rel="stylesheet" href="./public/css/game.css">
<link rel="icon" href="./public/images/Star_Citizen_logo.png">
<title>Star Present ─ Home</title>
</head>
<body>
@@ -46,11 +47,11 @@
</span>
<header>
<a id="logo" href="#"> <img src="./public/images/favicon.png" alt="LOGO" width="50"> </a>
<a id="logo" href="#"> <img src="./public/images/Star_Citizen_logo.png" alt="LOGO" width="50"> </a>
</header>
<main>
<div id="arrow-down">
<a href="#start"> <img src="./public/images/arrow-down-icon.png" width="60"> </a>
<a href="#canvas"> <img src="./public/images/arrow-down-icon.png" width="60"> </a>
</div>
<div class="wallpaper">
<div id="title">
@@ -60,7 +61,7 @@
</div>
<div id="div-content" >
<div id="start"> </div>
<canvas id="game" width="480" height="648"> </canvas>
<canvas id="canvas" width="1000" height="700"> </canvas>
<script src="./public/scripts/hell-bullet.js"> </script>
</div>
</main>
+5 -5
View File
@@ -8,7 +8,7 @@ body {
body #div-content {
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding-bottom: 7rem;
}
@@ -28,12 +28,12 @@ body #div-content {
}
.grid-item {
background-color: #235573;
background-color: #a2cceb;
padding: 1.5rem;
border-radius: 0.5rem;
color: #ffffff;
font-family: Quicksand, sans-serif;
box-shadow: 0.5rem 0.5rem 0rem #00000080;
box-shadow: 0.5rem 0.5rem 0rem #01162280;
}
.grid-item h3 {
@@ -54,7 +54,7 @@ body #div-content {
}
.grid-item.one img {
border: 0.25rem solid #1B4056;
border: 0.25rem solid #073a59;
border-radius: 2rem;
max-width: 18rem;
height: auto;
@@ -78,7 +78,7 @@ body #div-content {
.tag {
display: inline-block;
padding: 0.3rem 0.8rem;
background-color: #1B4056;
background-color: #073a59;
border: 0.1rem solid #834206ec;
border-radius: 1rem;
font-size: 0.85rem;
+9 -9
View File
@@ -9,7 +9,7 @@ body {
body #div-content {
height: 48rem;
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding-bottom: 7rem;
}
@@ -31,12 +31,12 @@ body #div-content {
.grid-item img {
border-radius: 2rem;
max-width: 100%;
max-width: 30rem;
height: auto;
}
.grid .one {
background-color: #235573;
background-color: #a2cceb;
padding: 1rem;
border-radius: .40rem;
}
@@ -50,12 +50,12 @@ body #div-content {
}
.one img {
float: left;
box-shadow: 1rem 1rem 0rem #000000;
box-shadow: 1rem 1rem 0rem #011622;
}
.contact {
background-color:#307097;
box-shadow: 1rem 1rem 0rem #000000;
box-shadow: 1rem 1rem 0rem #011622;
border-radius: 2rem;
width: 30rem;
font-family: Quicksand, sans-serif;
@@ -75,9 +75,9 @@ body #div-content {
font-family: inherit;
}
input[type="text"], input[type="email"], textarea, select {
background-color: #1B4056;
background-color: #073a59;
color: #ffffff;
border: 0.1rem solid #1B4056;
border: 0.1rem solid #073a59;
border-radius: 0.3rem;
width: calc(100% - 4rem);
box-sizing: border-box;
@@ -125,7 +125,7 @@ body #div-content {
display: inline-block;
margin: 0;
padding: 0.5rem 1.2rem;
background-color: #1B4056;
background-color: #073a59;
color: #ffffff;
border: 0.1rem solid #834206ec;
border-radius: 0.3rem;
@@ -220,6 +220,6 @@ body #div-content {
}
.contact {
box-shadow: 0.5rem 0.5rem 0rem #000000;
box-shadow: 0.5rem 0.5rem 0rem #011622;
}
}
+6 -6
View File
@@ -10,10 +10,10 @@
}
.grid-item {
background-color: #235573;
background-color: #a2cceb;
padding: 1rem;
border-radius: .4rem;
box-shadow: 1rem 1rem 0rem #000000;
box-shadow: 1rem 1rem 0rem #011622;
}
.grid-item:hover {
@@ -23,7 +23,7 @@
#div-content {
height: 40rem;
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding-bottom: 10rem;
}
@@ -47,7 +47,7 @@
}
.grid-item {
box-shadow: 0.6rem 0.6rem 0rem #000000;
box-shadow: 0.6rem 0.6rem 0rem #011622;
}
#div-content {
@@ -67,7 +67,7 @@
.grid-item {
min-height: 8rem;
box-shadow: 0.45rem 0.45rem 0rem #000000;
box-shadow: 0.45rem 0.45rem 0rem #011622;
}
#div-content {
@@ -84,7 +84,7 @@
}
.grid-item {
box-shadow: 0.3rem 0.3rem 0rem #000000;
box-shadow: 0.3rem 0.3rem 0rem #011622;
}
#div-content {
+6 -6
View File
@@ -10,10 +10,10 @@
}
.grid-item {
background-color: #235573;
background-color: #a2cceb;
padding: 1rem;
border-radius: .4rem;
box-shadow: 1rem 1rem 0rem #000000;
box-shadow: 1rem 1rem 0rem #011622;
}
.grid-item:hover {
@@ -23,7 +23,7 @@
body #div-content {
height: 42rem;
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding-bottom: 10rem;
}
@@ -36,7 +36,7 @@ body #div-content {
}
.grid-item {
box-shadow: 0.6rem 0.6rem 0rem #000000;
box-shadow: 0.6rem 0.6rem 0rem #011622;
}
body #div-content {
@@ -56,7 +56,7 @@ body #div-content {
.grid-item {
min-height: 8rem;
box-shadow: 0.45rem 0.45rem 0rem #000000;
box-shadow: 0.45rem 0.45rem 0rem #011622;
}
body #div-content {
@@ -72,7 +72,7 @@ body #div-content {
}
.grid-item {
box-shadow: 0.3rem 0.3rem 0rem #000000;
box-shadow: 0.3rem 0.3rem 0rem #011622;
}
body #div-content {
padding-bottom: 0rem;
+8
View File
@@ -0,0 +1,8 @@
#canvas {
display: block;
margin: 0 auto;
width: 100%;
max-width: 1000px;
height: auto;
touch-action: none;
}
+218
View File
@@ -0,0 +1,218 @@
body {
margin: 0;
background-image: url("/public/images/background/background-author.jpg");
background-attachment: fixed;
background-size: cover;
background-position: center;
}
body #div-content {
position: relative;
background-color: #073a59;
z-index: 2;
padding: 4rem 1rem 7rem;
}
.intro {
max-width: 60rem;
margin: 0 auto 2.5rem;
color: #ffffff;
font-family: Quicksand, sans-serif;
font-size: 1.05rem;
line-height: 1.6rem;
text-align: center;
padding: 0 1rem;
}
.lang-menu {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.8rem;
margin: 0 auto 3rem;
max-width: 60rem;
}
.lang-menu a {
font-family: Quicksand, sans-serif;
color: #ffffff;
background-color: #073a59;
border: 0.1rem solid #834206ec;
border-radius: 1.5rem;
padding: 0.5rem 1.2rem;
text-decoration: none;
font-size: 0.95rem;
transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}
.lang-card {
background-color: #a2cceb;
color: #ffffff;
font-family: Quicksand, sans-serif;
max-width: 60rem;
margin: 0 auto 2.5rem;
padding: 1.8rem 2rem;
border-radius: 0.5rem;
box-shadow: 0.5rem 0.5rem 0rem #01162280;
scroll-margin-top: 6rem;
}
.lang-card:hover {
transform: scale(1.01);
}
.lang-header {
display: flex;
align-items: center;
gap: 1.2rem;
border-bottom: 0.15rem dashed #834206ec;
padding-bottom: 1rem;
margin-bottom: 1.2rem;
}
.lang-logo {
display: flex;
justify-content: center;
align-items: center;
min-width: 3.5rem;
height: 3.5rem;
padding: 0 0.8rem;
background-color: #073a59;
border: 0.15rem solid #834206ec;
border-radius: 0.6rem;
color: #ffffff;
font-family: Consolas, "Courier New", monospace;
font-size: 1.1rem;
font-weight: bold;
}
.lang-title {
display: flex;
flex-direction: column;
}
.lang-title h3 {
margin: 0;
color: #ffffff;
font-size: 1.6rem;
}
.lang-type {
color: #073a59;
font-size: 0.9rem;
font-style: italic;
margin-top: 0.2rem;
}
.lang-card p {
line-height: 1.6rem;
margin: 0.6rem 0;
}
.lang-card code {
background-color: #073a59;
color: #a2cceb;
padding: 0.1rem 0.4rem;
border-radius: 0.3rem;
font-family: Consolas, "Courier New", monospace;
font-size: 0.9rem;
}
.lang-uses {
list-style: none;
padding: 0;
margin: 1.2rem 0 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.lang-uses li {
position: relative;
padding-left: 1.5rem;
color: #ffffff;
font-size: 0.95rem;
}
.lang-uses li::before {
content: "➤";
position: absolute;
left: 0;
color: #834206ec;
}
.back-link {
display: flex;
justify-content: center;
margin-top: 2rem;
}
.back-link a {
color: #ffffff;
font-family: Quicksand, sans-serif;
text-decoration: none;
background-color: #073a59;
border: 0.15rem dashed #834206ec;
border-radius: 1.5rem;
padding: 0.6rem 1.4rem;
transition: background-color 0.2s ease-out;
}
.back-link a:hover {
background-color: #2a658a;
}
@media screen and (max-width: 1024px) {
.lang-card {
max-width: 90%;
padding: 1.5rem;
}
.intro {
font-size: 1rem;
}
}
@media screen and (max-width: 768px) {
.lang-header {
flex-direction: column;
align-items: flex-start;
gap: 0.8rem;
}
.lang-title h3 {
font-size: 1.4rem;
}
.lang-menu a {
font-size: 0.85rem;
padding: 0.4rem 1rem;
}
}
@media screen and (max-width: 480px) {
body #div-content {
padding: 2.5rem 0.5rem 5rem;
}
.lang-card {
padding: 1.2rem;
margin-bottom: 1.8rem;
}
.lang-title h3 {
font-size: 1.25rem;
}
.lang-card p {
font-size: 0.9rem;
line-height: 1.4rem;
}
.lang-logo {
min-width: 3rem;
height: 3rem;
font-size: 1rem;
}
}
+4 -4
View File
@@ -11,7 +11,7 @@
}
.grid-item {
background-color: #235573;
background-color: #a2cceb;
padding: 2rem 2.5rem;
border-radius: .4rem;
line-height: 1.6;
@@ -26,7 +26,7 @@
}
.grid-item a {
color: #7FD4FF;
color: #3906f0;
text-decoration: none;
transition: color 0.2s ease;
}
@@ -51,13 +51,13 @@
}
.grid-item a:visited {
color: #B89BFF;
color: #aa3ea5;
}
body #div-content {
height: auto;
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding-bottom: 6rem;
}
+19 -14
View File
@@ -16,11 +16,12 @@
}
.line {
top: 25%;
position: absolute;
display: block;
width: 100%;
height: 3px;
background-color: #235573;
background-color: #a2cceb;
transition: transform 0.3s ease-out, opacity 0.1s ease-out;
}
@@ -52,7 +53,7 @@ nav {
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #1B4056;
background-color: #073a59;
border-right: 0.3px solid black;
border-radius: 0.5rem;
transform: translateX(-100%);
@@ -66,12 +67,12 @@ nav.active {
nav a {
font-family: Quicksand, sans-serif;
color: #000000;
color: #011622;
font-size: 100%;
display: flex;
margin: 10% 0;
text-decoration: none;
background-color: #235573;
background-color: #a2cceb;
justify-content: center;
align-items: center;
width: 100%;
@@ -93,7 +94,7 @@ nav a:hover {
display: flex;
justify-content: center;
align-items: center;
background: #235573;
background: #a2cceb;
width: 70%;
height: 5%;
border-radius: 20px;
@@ -101,7 +102,8 @@ nav a:hover {
.wallpaper {
height: 55rem;
background-image: linear-gradient( #1b1b1b00, #1B4056 );
background-color: #073a5985;
background-image: linear-gradient( #00000049, #073a59 );
display: flex;
justify-content: center;
align-items: center;
@@ -191,7 +193,6 @@ t {
#footer-box a:hover {
background-color: #1d445e8e;
border: 1.5px solid #142c3b;
border-radius: 0.4rem;
}
@@ -219,8 +220,11 @@ t {
nav fieldset {
color: #447797;
border: 0.15rem dashed #834206ec;
border-radius: 2rem;
border-top: 0.15rem dashed #834206ec;
border-right: 0 dashed #ffffff00;
border-left: 0 dashed #ffffff00;
border-bottom: 0 dashed #ffffff00;
border-radius: 1rem;
}
nav legend {
@@ -228,19 +232,19 @@ nav legend {
}
#field-ing legend {
margin-left: 3.3rem;
margin-left: 25%;
}
#field-rp legend {
margin-left: 2.8rem;
margin-left: 0%;
}
#field-outofgame legend {
margin-left: 2.9rem;
margin-left: 18%;
}
#bar {
background-color: #000000;
background-color: #011622;
padding: 0.02%;
width: 80%;
margin-left: 10%;
@@ -323,7 +327,8 @@ nav legend {
@media screen and (max-width: 480px) {
nav {
width: 75%;
width: 100%;
height: 100%;
}
#logo {
+9 -20
View File
@@ -1,6 +1,6 @@
body #div-content {
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding: 5rem 0 7rem;
}
@@ -15,11 +15,15 @@ body #div-content {
.grid-item {
align-self: center;
background-color: #235573;
background-color: #a2cceb;
padding: 1rem;
border-radius: 0.4rem;
overflow: hidden;
box-shadow: 1rem 1rem 0rem #000000;
box-shadow: 1rem 1rem 0rem #011622;
}
.grid-item p{
text-align: justify;
}
.grid-item:hover {
@@ -28,7 +32,6 @@ body #div-content {
.grid-item img {
border-radius: 2rem;
box-shadow: 1rem 1rem 0rem #000000;
max-width: 30%;
height: auto;
float: left;
@@ -37,7 +40,6 @@ body #div-content {
.grid-item img:hover {
transform: scale(1.01);
box-shadow: 1rem 1rem 0rem #000000;
cursor: default;
}
@@ -63,7 +65,7 @@ body #div-content {
}
.grid-item {
box-shadow: 0.6rem 0.6rem 0rem #000000;
box-shadow: 0.6rem 0.6rem 0rem #011622;
}
.grid-item img {
@@ -72,11 +74,6 @@ body #div-content {
margin: 0 auto 1rem;
max-width: 100%;
width: 100%;
box-shadow: 0.6rem 0.6rem 0rem #000000;
}
.grid-item img:hover {
box-shadow: 0.6rem 0.6rem 0rem #000000;
}
.grid-item p {
@@ -96,15 +93,7 @@ body #div-content {
.grid-item {
padding: 0.6rem;
box-shadow: 0.3rem 0.3rem 0rem #000000;
}
.grid-item img {
box-shadow: 0.3rem 0.3rem 0rem #000000;
}
.grid-item img:hover {
box-shadow: 0.3rem 0.3rem 0rem #000000;
box-shadow: 0.3rem 0.3rem 0rem #011622;
}
.grid-item p {
+22 -23
View File
@@ -1,9 +1,9 @@
body #div-content {
height: 130rem;
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding-bottom: 7rem;
height: 110rem;
}
.grid {
@@ -14,15 +14,20 @@ body #div-content {
grid-template-rows: repeat(3, 35rem);
justify-self: center;
justify-content: center;
margin-top: 15rem;
}
.grid-item {
align-self: center;
box-shadow: 0.6rem 0.6rem 0rem #000000;
box-shadow: 0.6rem 0.6rem 0rem #011622;
overflow: hidden;
border-radius: 0.5rem;
}
.grid-item p{
text-align: justify;
font-size: 20px;
}
.grid-item:hover {
transform: scale(1.01);
}
@@ -34,25 +39,29 @@ body #div-content {
}
.grid-item img:hover {
box-shadow: 0.5rem 0.51rem 0rem #000000;
transform: scale(1.01);
cursor: default;
}
.grid .one ,.three {
background-color: #235573;
background-color: #a2cceb;
padding: 1rem;
border-radius: .40rem;
}
.grid .two {
background-color: #235573;
background-color: #a2cceb;
padding: 1rem;
border-radius: .40rem;
}
.grid .two p {
max-width: 44.5rem;
}
.grid, .two img {
float: right;
/* padding-left: 2rem; */
}
.right-text {
@@ -66,10 +75,6 @@ body #div-content {
float: left;
}
.grid-item p {
font-size: 20px;
}
@media screen and (max-width: 1280px) {
.grid {
grid-template-columns: 90%;
@@ -90,7 +95,7 @@ body #div-content {
}
.grid-item {
box-shadow: 0.4rem 0.4rem 0rem #000000;
box-shadow: 0.4rem 0.4rem 0rem #011622;
}
.grid-item img {
@@ -100,10 +105,6 @@ body #div-content {
width: 100%;
}
.grid-item img:hover {
box-shadow: 0.35rem 0.35rem 0rem #000000;
}
.grid .one img,
.grid .two img,
.grid .three img {
@@ -119,8 +120,7 @@ body #div-content {
}
body #div-content {
height: auto;
min-height: 30rem;
height: 182rem;
padding-bottom: 5rem;
}
}
@@ -131,11 +131,7 @@ body #div-content {
}
.grid-item {
box-shadow: 0.25rem 0.25rem 0rem #000000;
}
.grid-item img:hover {
box-shadow: 0.2rem 0.2rem 0rem #000000;
box-shadow: 0.25rem 0.25rem 0rem #011622;
}
.grid-item p {
@@ -147,4 +143,7 @@ body #div-content {
.grid .three {
padding: 0.6rem;
}
body #div-content {
height: 165rem;
}
}
+11 -27
View File
@@ -1,6 +1,6 @@
body #div-content {
position: relative;
background-color: #1B4056;
background-color: #073a59;
z-index: 2;
padding: 5rem 0 7rem;
}
@@ -13,12 +13,17 @@ body #div-content {
}
.grid-item {
align-self: center;
background-color: #235573;
align-items: center;
justify-content: center;
background-color: #a2cceb;
padding: 1rem;
border-radius: .40rem;
overflow: hidden;
box-shadow: 0.6rem 0.6rem 0rem #000000;
box-shadow: 0.4rem 0.4rem 0rem #011622;
}
.grid-item p{
text-align: justify;
}
.grid-item:hover {
@@ -26,14 +31,12 @@ body #div-content {
}
.grid-item img {
box-shadow: 0.5rem 0.51rem 0rem #000000;
border-radius: 2rem;
max-width: 50%;
height: auto;
}
.grid-item img:hover {
box-shadow: 0.5rem 0.51rem 0rem #000000;
transform: scale(1.01);
cursor: default;
}
@@ -75,7 +78,7 @@ body #div-content {
}
.grid-item {
box-shadow: 0.4rem 0.4rem 0rem #000000;
box-shadow: 0.4rem 0.4rem 0rem #011622;
}
.grid-item img,
@@ -90,11 +93,6 @@ body #div-content {
margin: 0 auto 1rem;
max-width: 100%;
width: 100%;
box-shadow: 0.35rem 0.35rem 0rem #000000;
}
.grid-item img:hover {
box-shadow: 0.35rem 0.35rem 0rem #000000;
}
.grid-item p {
@@ -118,21 +116,7 @@ body #div-content {
.grid-item {
padding: 0.6rem;
box-shadow: 0.25rem 0.25rem 0rem #000000;
}
.grid-item img,
.grid .one img,
.grid .two img,
.grid .three img,
.grid .four img,
.grid .five img,
.grid .six img {
box-shadow: 0.2rem 0.2rem 0rem #000000;
}
.grid-item img:hover {
box-shadow: 0.2rem 0.2rem 0rem #000000;
box-shadow: 0.25rem 0.25rem 0rem #011622;
}
body #div-content {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

+549 -13
View File
@@ -1,19 +1,555 @@
const canvas = document.querySelector("#game");
const canvas = document.querySelector("canvas");
const ctx = canvas.getContext("2d");
const W = canvas.width;
const H = canvas.height;
canvas.style.backgroundColor = "#000";
canvas.width = 1500, canvas.height = 800;
canvas.style.backgroundColor = "rgba(100,0,0)";
canvas.style.marginTop = "5rem";
const STATE = { MENU: 0, PLAYING: 1, GAMEOVER: 2, WIN: 3 };
function loadImg(src) {
const img = new Image();
img.src = src;
return img;
}
let player = {
image: "XXX",
hitboxRadius: 2,
speed: {
normal: 220,
slow: 120
},
godmode: 0
const IMG = {
player: loadImg("./public/images/game/player/Gladius.png"),
normal: loadImg("./public/images/game/ennemies/SabreFirebird.png"),
rare: loadImg("./public/images/ships/hull-c.jpg"),
mini: loadImg("./public/images/ships/reclaimer.jpg"),
boss: loadImg("./public/images/ships/idris-p.jpg"),
zones: [
loadImg("./public/images/planets/arc-crop.jpg"),
loadImg("./public/images/planets/crusader.png"),
loadImg("./public/images/planets/hurston.jpg"),
loadImg("./public/images/planets/microtech.jpg"),
loadImg("./public/images/planets/pyro-iv.jpg")
]
};
let previousTime = performance.now();
const ZONE_NAMES = ["ArcCorp", "Crusader", "Hurston", "MicroTech", "Pyro"];
let state = STATE.MENU;
let zoneIndex = 0;
let score = 0;
let frame = 0;
let player, enemies, playerBullets, enemyBullets, powerups;
let zoneKills, zoneKillsRequired, bossSpawned, bossDefeated, transitionTimer;
const keys = {};
window.addEventListener("keydown", e => {
keys[e.code] = true;
if (["Space", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(e.code)) e.preventDefault();
if (e.code === "Enter" && state === STATE.MENU) startGame();
if (e.code === "KeyR" && (state === STATE.GAMEOVER || state === STATE.WIN)) startGame();
});
window.addEventListener("keyup", e => { keys[e.code] = false; });
canvas.addEventListener("click", () => {
if (state === STATE.MENU) startGame();
else if (state === STATE.GAMEOVER || state === STATE.WIN) startGame();
});
const touch = { active: false, x: 0, y: 0 };
function touchToCanvas(t) {
const rect = canvas.getBoundingClientRect();
return {
x: (t.clientX - rect.left) * (W / rect.width),
y: (t.clientY - rect.top) * (H / rect.height)
};
}
canvas.addEventListener("touchstart", e => {
e.preventDefault();
if (state === STATE.MENU || state === STATE.GAMEOVER || state === STATE.WIN) {
startGame();
return;
}
const p = touchToCanvas(e.touches[0]);
touch.active = true;
touch.x = p.x;
touch.y = p.y;
}, { passive: false });
canvas.addEventListener("touchmove", e => {
e.preventDefault();
if (!touch.active || e.touches.length === 0) return;
const p = touchToCanvas(e.touches[0]);
touch.x = p.x;
touch.y = p.y;
}, { passive: false });
function endTouch(e) {
e.preventDefault();
if (e.touches && e.touches.length > 0) return;
touch.active = false;
}
canvas.addEventListener("touchend", endTouch, { passive: false });
canvas.addEventListener("touchcancel", endTouch, { passive: false });
class Player {
constructor() {
this.w = 32;
this.h = 32;
this.x = W / 2 - this.w / 2;
this.y = H - 70;
this.lives = 3;
this.maxLives = 3;
this.speed = 3.2;
this.cooldown = 0;
this.invul = 60;
}
update() {
if (keys.KeyA || keys.ArrowLeft) this.x -= this.speed;
if (keys.KeyD || keys.ArrowRight) this.x += this.speed;
if (keys.KeyW || keys.ArrowUp) this.y -= this.speed;
if (keys.KeyS || keys.ArrowDown) this.y += this.speed;
if (touch.active) {
const tx = touch.x - this.w / 2;
const ty = touch.y - this.h / 2 - 50;
const dx = tx - this.x, dy = ty - this.y;
const d = Math.hypot(dx, dy);
const maxStep = 8;
if (d > maxStep) {
this.x += dx / d * maxStep;
this.y += dy / d * maxStep;
} else {
this.x = tx;
this.y = ty;
}
}
this.x = Math.max(0, Math.min(W - this.w, this.x));
this.y = Math.max(0, Math.min(H - this.h, this.y));
if (this.cooldown > 0) this.cooldown--;
if (this.invul > 0) this.invul--;
if ((keys.Space || keys.KeyJ || touch.active) && this.cooldown <= 0) {
playerBullets.push(new PlayerBullet(this.x + this.w / 2 - 3, this.y));
this.cooldown = 9;
}
}
draw() {
if (this.invul > 0 && this.invul % 8 < 4) return;
ctx.drawImage(IMG.player, this.x, this.y, this.w, this.h);
const hb = this.getHitbox();
ctx.fillStyle = "rgb(255, 102, 0)";
ctx.beginPath();
ctx.arc(hb.x, hb.y, hb.r, 0, Math.PI * 2);
ctx.fill();
}
hit() {
if (this.invul > 0) return;
this.lives--;
this.invul = 90;
}
getHitbox() {
return {
x: this.x + this.w / 2,
y: this.y + this.h / 2,
r: 2
};
}
}
class PlayerBullet {
constructor(x, y) {
this.x = x; this.y = y;
this.w = 6; this.h = 12;
this.dead = false;
}
update() {
this.y -= 7;
if (this.y < -this.h) this.dead = true;
}
draw() {
ctx.fillStyle = "#0ff";
ctx.fillRect(this.x, this.y, this.w, this.h);
ctx.fillStyle = "#fff";
ctx.fillRect(this.x + 2, this.y, 2, this.h);
}
}
const ENEMY_CFG = {
normal: { w: 36, h: 36, hp: 2, speed: 1.3, score: 50, fireRate: 30 },
rare: { w: 44, h: 44, hp: 1, speed: 2.4, score: 200, fireRate: 0 },
mini: { w: 70, h: 70, hp: 18, speed: 1.0, score: 500, fireRate: 20 },
boss: { w: 120, h: 120, hp: 70, speed: 0.7, score: 2000, fireRate: 10 }
};
class Enemy {
constructor(type) {
const cfg = ENEMY_CFG[type];
this.type = type;
this.w = cfg.w; this.h = cfg.h;
this.x = Math.random() * (W - this.w);
this.y = -this.h;
this.hp = cfg.hp; this.maxHp = cfg.hp;
this.speed = cfg.speed;
this.scoreVal = cfg.score;
this.fireRate = cfg.fireRate;
this.fireTimer = Math.floor(Math.random() * this.fireRate);
this.dead = false;
this.targetY = (type === "boss" || type === "mini") ? 60 : null;
this.dropLife = (type === "rare");
this.img = IMG[type];
this.swingPhase = Math.random() * Math.PI * 2;
}
update() {
if (this.targetY !== null && this.y < this.targetY) {
this.y += this.speed;
} else if (this.targetY !== null) {
this.x += Math.sin((frame + this.swingPhase * 100) * 0.02) * 1.5;
this.x = Math.max(0, Math.min(W - this.w, this.x));
} else {
this.y += this.speed;
if (this.y > H + this.h) this.dead = true;
}
this.fireTimer++;
if (this.fireTimer >= this.fireRate) {
this.fireTimer = 0;
this.fire();
}
}
fire() {
const cx = this.x + this.w / 2;
const cy = this.y + this.h;
if (this.type === "normal") {
const dx = (player.x + player.w / 2) - cx;
const dy = (player.y + player.h / 2) - cy;
const d = Math.hypot(dx, dy) || 1;
enemyBullets.push(new EnemyBullet(cx, cy, dx / d * 2.6, dy / d * 2.6, "#ff8040"));
} else if (this.type === "mini") {
for (let i = -2; i <= 2; i++) {
const a = Math.PI / 2 + i * 0.22;
enemyBullets.push(new EnemyBullet(cx, cy, Math.cos(a) * 2.5, Math.sin(a) * 2.5, "#ffa030"));
}
} else if (this.type === "boss") {
const n = 14;
const off = frame * 0.025;
for (let i = 0; i < n; i++) {
const a = (Math.PI * 2 * i / n) + off;
enemyBullets.push(new EnemyBullet(cx, cy, Math.cos(a) * 2.3, Math.sin(a) * 2.3, "#ff3060"));
}
}
}
draw() {
ctx.drawImage(this.img, this.x, this.y, this.w, this.h);
if (this.maxHp > 1 && this.type !== "boss") {
const ratio = this.hp / this.maxHp;
ctx.fillStyle = "#400";
ctx.fillRect(this.x, this.y - 6, this.w, 4);
ctx.fillStyle = "#f44";
ctx.fillRect(this.x, this.y - 6, this.w * ratio, 4);
}
}
hit(dmg) {
if (this.dead) return;
this.hp -= dmg;
if (this.hp <= 0) {
this.dead = true;
score += this.scoreVal;
if (this.dropLife) {
powerups.push(new PowerUp(this.x + this.w / 2, this.y + this.h / 2));
}
if (this.type === "boss") bossDefeated = true;
else zoneKills++;
}
}
}
class EnemyBullet {
constructor(x, y, vx, vy, color) {
this.x = x; this.y = y;
this.vx = vx; this.vy = vy;
this.r = 5;
this.color = color || "#f80";
this.dead = false;
}
update() {
this.x += this.vx; this.y += this.vy;
if (this.x < -10 || this.x > W + 10 || this.y < -10 || this.y > H + 10) this.dead = true;
}
draw() {
ctx.beginPath();
ctx.fillStyle = this.color;
ctx.arc(this.x, this.y, this.r, 0, Math.PI * 2);
ctx.fill();
ctx.strokeStyle = "#fff";
ctx.lineWidth = 1;
ctx.stroke();
}
}
class PowerUp {
constructor(x, y) {
this.x = x; this.y = y;
this.r = 10;
this.vy = 1;
this.dead = false;
}
update() {
this.y += this.vy;
if (this.y > H + 10) this.dead = true;
}
draw() {
ctx.beginPath();
ctx.fillStyle = "#0f0";
ctx.arc(this.x, this.y, this.r, 0, Math.PI * 2);
ctx.fill();
ctx.fillStyle = "#fff";
ctx.font = "bold 14px Arial";
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillText("+", this.x, this.y);
ctx.textAlign = "start";
ctx.textBaseline = "alphabetic";
}
}
function startGame() {
state = STATE.PLAYING;
zoneIndex = 0;
score = 0;
frame = 0;
player = new Player();
playerBullets = [];
initZone();
}
function initZone() {
enemies = [];
enemyBullets = [];
powerups = [];
zoneKills = 0;
zoneKillsRequired = 30 + zoneIndex * 1.5;
bossSpawned = false;
bossDefeated = false;
transitionTimer = 90;
}
function nextZone() {
zoneIndex++;
if (zoneIndex >= 5) {
state = STATE.WIN;
} else {
initZone();
}
}
function spawnLogic() {
if (transitionTimer > 0) { transitionTimer--; return; }
if (bossSpawned) return;
const baseRate = Math.max(35, 80 - zoneIndex * 8);
if (frame % baseRate === 0) {
const r = Math.random();
if (r < 0.08) enemies.push(new Enemy("rare"));
else if (r < 0.18 && zoneIndex >= 1) enemies.push(new Enemy("mini"));
else enemies.push(new Enemy("normal"));
}
if (zoneKills >= zoneKillsRequired) {
bossSpawned = true;
enemies.push(new Enemy("boss"));
}
}
function rectCollide(a, b) {
return a.x < b.x + b.w && a.x + a.w > b.x && a.y < b.y + b.h && a.y + a.h > b.y;
}
function circleRect(c, r) {
const nx = Math.max(r.x, Math.min(c.x, r.x + r.w));
const ny = Math.max(r.y, Math.min(c.y, r.y + r.h));
const dx = c.x - nx, dy = c.y - ny;
return dx * dx + dy * dy < c.r * c.r;
}
function circleCircle(a, b) {
const dx = a.x - b.x, dy = a.y - b.y;
const rr = a.r + b.r;
return dx * dx + dy * dy < rr * rr;
}
function update() {
frame++;
player.update();
spawnLogic();
for (const e of enemies) e.update();
for (const b of playerBullets) b.update();
for (const b of enemyBullets) b.update();
for (const p of powerups) p.update();
for (const b of playerBullets) {
if (b.dead) continue;
for (const e of enemies) {
if (e.dead) continue;
if (rectCollide(b, e)) {
e.hit(1);
b.dead = true;
break;
}
}
}
for (const b of enemyBullets) {
if (circleCircle(b, player.getHitbox())) {
player.hit();
b.dead = true;
}
}
for (const e of enemies) {
if (!e.dead && circleRect(player.getHitbox(), e)) {
player.hit();
e.hit(5);
}
}
for (const p of powerups) {
if (circleCircle(p, player.getHitbox())) {
if (player.lives < player.maxLives) player.lives++;
else score += 100;
p.dead = true;
}
}
enemies = enemies.filter(e => !e.dead);
playerBullets = playerBullets.filter(b => !b.dead);
enemyBullets = enemyBullets.filter(b => !b.dead);
powerups = powerups.filter(p => !p.dead);
if (player.lives <= 0) state = STATE.GAMEOVER;
else if (bossDefeated) nextZone();
}
function drawBackground() {
const img = IMG.zones[zoneIndex];
if (img && img.complete && img.naturalWidth) {
ctx.drawImage(img, 0, 0, W, H);
ctx.fillStyle = "rgba(0,0,0,0.45)";
ctx.fillRect(0, 0, W, H);
} else {
ctx.fillStyle = "#000";
ctx.fillRect(0, 0, W, H);
}
}
function drawHUD() {
ctx.fillStyle = "#fff";
ctx.font = "16px Arial";
ctx.fillText("Score : " + score, 10, 22);
ctx.fillText("Zone " + (zoneIndex + 1) + " / 5 ─ " + ZONE_NAMES[zoneIndex], 10, 44);
ctx.fillStyle = "#f44";
for (let i = 0; i < player.lives; i++) {
ctx.beginPath();
const cx = 14 + i * 18, cy = 62;
ctx.moveTo(cx, cy + 4);
ctx.bezierCurveTo(cx, cy, cx - 8, cy, cx - 8, cy + 5);
ctx.bezierCurveTo(cx - 8, cy + 10, cx, cy + 12, cx, cy + 16);
ctx.bezierCurveTo(cx, cy + 12, cx + 8, cy + 10, cx + 8, cy + 5);
ctx.bezierCurveTo(cx + 8, cy, cx, cy, cx, cy + 4);
ctx.fill();
}
if (!bossSpawned) {
ctx.fillStyle = "#bbb";
ctx.font = "14px Arial";
ctx.fillText("Progression : " + Math.min(zoneKills, zoneKillsRequired) + " / " + zoneKillsRequired, 10, H - 10);
} else {
const boss = enemies.find(e => e.type === "boss");
if (boss) {
ctx.fillStyle = "#400"; ctx.fillRect(40, H - 22, W - 80, 12);
ctx.fillStyle = "#f00"; ctx.fillRect(40, H - 22, (W - 80) * (boss.hp / boss.maxHp), 12);
ctx.strokeStyle = "#fff"; ctx.lineWidth = 1; ctx.strokeRect(40, H - 22, W - 80, 12);
ctx.fillStyle = "#fff"; ctx.font = "bold 12px Arial";
ctx.textAlign = "center";
ctx.fillText("BOSS", W / 2, H - 26);
ctx.textAlign = "start";
}
}
if (transitionTimer > 0) {
ctx.fillStyle = "rgba(0,0,0,0.55)";
ctx.fillRect(0, H / 2 - 40, W, 80);
ctx.fillStyle = "#0ff";
ctx.textAlign = "center";
ctx.font = "bold 28px Arial";
ctx.fillText("ZONE " + (zoneIndex + 1) + " ─ " + ZONE_NAMES[zoneIndex], W / 2, H / 2 + 8);
ctx.textAlign = "start";
}
}
function drawMenu() {
ctx.fillStyle = "#000"; ctx.fillRect(0, 0, W, H);
const bg = IMG.zones[0];
if (bg && bg.complete && bg.naturalWidth) {
ctx.drawImage(bg, 0, 0, W, H);
ctx.fillStyle = "rgba(0,0,0,0.6)";
ctx.fillRect(0, 0, W, H);
}
ctx.fillStyle = "#fff";
ctx.textAlign = "center";
ctx.font = "bold 40px Arial";
ctx.fillText("STAR BULLET", W / 2, 110);
ctx.font = "16px Arial";
ctx.fillStyle = "#ccc";
ctx.fillText("Star Present ─ Danmaku", W / 2, 140);
ctx.font = "15px Arial"; ctx.fillStyle = "#fff";
ctx.fillText("WASD ou Flèches ─ déplacement", W / 2, 210);
ctx.fillText("Espace ou J ─ tirer", W / 2, 235);
ctx.fillText("Mobile ─ glisser pour bouger, tir auto", W / 2, 260);
ctx.fillText("5 zones, 4 types d'ennemis, 3 vies", W / 2, 295);
ctx.fillStyle = "#0f0";
ctx.fillText("Les Hull-C LOOT une vie.", W / 2, 320);
ctx.font = "bold 22px Arial";
ctx.fillStyle = "#0ff";
ctx.fillText("ENTRÉE, CLIC ou TAP pour commencer", W / 2, 400);
ctx.textAlign = "start";
}
function drawEndScreen(title, color) {
ctx.fillStyle = "rgba(0,0,0,0.75)";
ctx.fillRect(0, 0, W, H);
ctx.fillStyle = color;
ctx.textAlign = "center";
ctx.font = "bold 48px Arial";
ctx.fillText(title, W / 2, H / 2 - 30);
ctx.fillStyle = "#fff";
ctx.font = "20px Arial";
ctx.fillText("Score final : " + score, W / 2, H / 2 + 10);
if (state === STATE.WIN) ctx.fillText("Zone atteinte : " + (zoneIndex) + " / 5", W / 2, H / 2 + 40);
else ctx.fillText("Zone atteinte : " + (zoneIndex + 1) + " / 5", W / 2, H / 2 + 40);
ctx.font = "bold 22px Arial";
ctx.fillStyle = "#0ff";
ctx.fillText("R, CLIC ou TAP pour rejouer", W / 2, H / 2 + 95);
ctx.textAlign = "start";
}
function draw() {
if (state === STATE.MENU) { drawMenu(); return; }
drawBackground();
for (const e of enemies) e.draw();
for (const p of powerups) p.draw();
for (const b of playerBullets) b.draw();
for (const b of enemyBullets) b.draw();
player.draw();
drawHUD();
if (state === STATE.GAMEOVER) drawEndScreen("GAME OVER", "#f44");
if (state === STATE.WIN) drawEndScreen("VICTOIRE !", "#0f0");
}
function loop() {
if (state === STATE.PLAYING) update();
draw();
requestAnimationFrame(loop);
}
requestAnimationFrame(loop);
+4 -4
View File
@@ -1,9 +1,9 @@
const MENUBUTTON = document.querySelector (".nav-toggler")
const NAVIGATION = document.querySelector ("nav")
const MENUBUTTON = document.querySelector (".nav-toggler") // Get the div nav-toggler
const NAVIGATION = document.querySelector ("nav") // get the div nav
MENUBUTTON.addEventListener("click", toggleNav)
MENUBUTTON.addEventListener("click", toggleNav) // Listen when the user click on the button
function toggleNav(){
function toggleNav(){ // show or no the menu
MENUBUTTON.classList.toggle("active")
NAVIGATION.classList.toggle("active")
}
+7 -7
View File
@@ -6,7 +6,7 @@
<meta name="description" content="Star Present ─ Présentation de l'auteur du projet et de son parcours.">
<link rel="stylesheet" href="../public/css/author.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Auteur</title>
</head>
<body>
@@ -43,7 +43,7 @@
</button>
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
@@ -59,7 +59,7 @@
<div id="start"> </div>
<div class="grid">
<div class="grid-item one">
<img src="../public/images/author/pfp.webp" alt="Photo de profil de NoCode">
<img src="../public/images/author/pfp.png" alt="Photo de profil de NoCode">
<div class="right-text">
<h3>Qui suis-je ?</h3>
<p>
@@ -77,10 +77,10 @@
Étudiant en informatique à l'<strong>ETML</strong>, NoCode développe ses compétences à travers des projets personnels et scolaires. Il a commencé par le scripting <strong>LUA</strong> sur des serveurs communautaires, avant de se former au <strong>développement web</strong> avec HTML et CSS.
</p>
<ul class="skills">
<li><span class="tag">HTML5</span></li>
<li><span class="tag">CSS3</span></li>
<li><span class="tag">LUA</span></li>
<li><span class="tag">Git</span></li>
<li><a href="./language.html#html"><span class="tag">HTML5</span></a></li>
<li><a href="./language.html#css"><span class="tag">CSS3</span></a></li>
<li><a href="./language.html#lua"><span class="tag">LUA</span></a></li>
<li><a href="./language.html#git"><span class="tag">Git</span></a></li>
</ul>
</div>
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/cities.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/squares.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Ville</title>
</head>
<body>
@@ -45,7 +45,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+4 -4
View File
@@ -6,7 +6,7 @@
<meta name="description" content="Star Present ─ Contactez l'équipe du projet pour toute question, suggestion ou collaboration.">
<link rel="stylesheet" href="../public/css/contact.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Contact</title>
</head>
<body>
@@ -43,7 +43,7 @@
</button>
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
@@ -59,9 +59,9 @@
<div id="start"> </div>
<div class="grid">
<div class="grid-item one">
<img src="../public/images/author/pfp.webp" alt="Photo de profil de NoCode">
<img src="../public/images/author/pfp.png" alt="Photo de profil de NoCode">
<div class="right-text contact">
<form action="#" method="post" novalidate>
<form action="./error404.html" method="get" novalidate>
<h3>Une question ? Une suggestion ?</h3>
<label for="text-email">Email <span class="required">*</span></label>
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/current-version.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/cubes-seven.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Version</title>
</head>
<body>
@@ -44,7 +44,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/event.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/squares.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Event</title>
</head>
<body>
@@ -45,7 +45,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+155
View File
@@ -0,0 +1,155 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Star Present ─ Présentation des langages qui composent le parcours de l'auteur.">
<link rel="stylesheet" href="../public/css/language.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Langages</title>
</head>
<body>
<nav>
<fieldset id="field-ing">
<legend> En Jeu </legend>
<a href="./weapons.html"> Armes </a>
<a href="./planets.html"> Planètes </a>
<a href="./solar-system.html"> Système Solaire </a>
<a href="./ships.html"> Vaisseaux </a>
<a href="./cities.html"> Villes </a>
</fieldset>
<fieldset id="field-rp">
<legend> RolePlay </legend>
<a href="./event.html"> Event </a>
<a href="./lore.html"> Histoire </a>
</fieldset>
<fieldset id="field-outofgame">
<legend> Hors Jeu </legend>
<a href="./v-one.html"> Release V1 </a>
<a href="./websites.html"> Sites Utiles </a>
<a href="./current-version.html"> Version Actuelle </a>
<a href="./contact.html"> Contact </a>
</fieldset>
</nav>
<span id="header-box">
<button class="nav-toggler" type="button">
<span class="line l1"></span>
<span class="line l2"></span>
<span class="line l3"></span>
</button>
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
<a href="#start"> <img src="../public/images/arrow-down-icon.png" width="60"> </a>
</div>
<div class="wallpaper">
<div id="title">
<h1>Star Present</h1>
<h2>Langages</h2>
</div>
</div>
<div id="div-content">
<div id="start"></div>
<p class="intro">
Voici les langages et outils qui ont jalonné mon parcours de développeur. Chacun a sa raison d'être, son terrain de jeu, et a contribué à façonner ma manière de coder.
</p>
<nav class="lang-menu" aria-label="Navigation des langages">
<a href="#html">HTML5</a>
<a href="#css">CSS3</a>
<a href="#lua">LUA</a>
<a href="#git">Git</a>
</nav>
<article id="html" class="lang-card">
<p>
<strong>HTML</strong> (HyperText Markup Language) est l'ossature de toute page web. Il permet de structurer le contenu : titres, paragraphes, images, liens, formulaires... C'est le premier langage que j'ai appris pour faire mes débuts dans le développement web.
</p>
<p>
La version <strong>HTML5</strong> a apporté des balises sémantiques comme <code>&lt;header&gt;</code>, <code>&lt;nav&gt;</code>, <code>&lt;section&gt;</code> ou <code>&lt;article&gt;</code>, rendant le code plus lisible et plus accessible.
</p>
<ul class="lang-uses">
<li>Structurer les pages du site Star Present</li>
<li>Organiser le contenu de manière sémantique</li>
<li>Intégrer médias, liens et formulaires</li>
</ul>
</article>
<article id="css" class="lang-card">
<p>
<strong>CSS</strong> (Cascading Style Sheets) habille le HTML. Couleurs, polices, dispositions, animations : tout ce qui rend une page agréable à l'œil passe par lui. J'ai appris à le manipuler en parallèle du HTML.
</p>
<p>
Avec <strong>CSS3</strong>, on dispose de <em>Flexbox</em>, <em>Grid</em>, des transitions, des animations et des media queries qui permettent de construire des interfaces modernes et responsives, comme celle de ce site.
</p>
<ul class="lang-uses">
<li>Mettre en forme chaque page du projet</li>
<li>Construire des grilles responsives</li>
<li>Animer les interactions utilisateur</li>
</ul>
</article>
<article id="lua" class="lang-card">
<p>
<strong>LUA</strong> est un langage de script léger, rapide et facile à intégrer. C'est par lui que j'ai découvert la programmation, en écrivant des scripts pour des serveurs communautaires de jeux vidéo.
</p>
<p>
Sa syntaxe minimaliste et sa logique claire en font un excellent langage pour apprendre les <strong>structures de contrôle</strong>, les <strong>fonctions</strong> et la <strong>logique algorithmique</strong> avant de passer à des écosystèmes plus complexes.
</p>
<ul class="lang-uses">
<li>Scripting pour serveurs communautaires</li>
<li>Création de mini-jeux et de systèmes interactifs</li>
<li>Bases solides en programmation</li>
</ul>
</article>
<article id="git" class="lang-card">
<p>
<strong>Git</strong> n'est pas un langage à proprement parler, mais un <strong>outil de gestion de versions</strong> indispensable au quotidien. Il permet de suivre l'évolution d'un projet, de revenir en arrière et de travailler à plusieurs sans perdre son code.
</p>
<p>
Couplé à des plateformes comme <em>GitHub</em>, il sert aussi de vitrine et de portfolio. Tout l'historique de Star Present est versionné avec Git, commit par commit.
</p>
<ul class="lang-uses">
<li>Suivre les modifications du projet</li>
<li>Sauvegarder le code à distance</li>
<li>Collaborer et publier en ligne</li>
</ul>
</article>
<div class="back-link">
<a href="./author.html">&larr; Retour au parcours</a>
</div>
</div>
</main>
<footer id="footer-box">
<div class="level-one">
<a href="https://robertsspaceindustries.com" target="_blank"> <img src="../public/images/footer/RSI.png" alt="" width="35"> </a>
<a href="https://starcitizen.tools/Star_Engine" target="_blank"> <img src="../public/images/footer/s-engine.png" alt="" width="100"> </a>
<a href="http://cloudimperiumgames.com/" target="_blank"> <img src="../public/images/footer/cig.png" alt="" width="35"></a>
</div>
<div id="bar"></div>
<div class="level-two">
<p>&copy; Tout droit réservé à nocode.var 2026 &dash; 2027</p>
</div>
<div class="level-three">
<a href="./v-one.html"> V1 </a>
<t> ❘ </t>
<a href="./websites.html"> Sites Utiles </a>
<t> ❘ </t>
<a href="./author.html"> Auteur </a>
<t> ❘ </t>
<a href="./legal-right.html"> Droits Légaux </a>
</div>
</footer>
<script src="../public/scripts/navbar.js"></script>
</body>
</html>
+2 -2
View File
@@ -8,7 +8,7 @@
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/cubes.css">
<link rel="stylesheet" href="../public/css/legal-right.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Droits Légaux</title>
</head>
<body>
@@ -47,7 +47,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="50"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="50"> </a>
</header>
<main>
<div id="arrow-down">
+3 -3
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/lore.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/squares-lore.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Histoire</title>
</head>
<body>
@@ -45,7 +45,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
@@ -65,7 +65,7 @@
<p class="right-text"> Pour moi et beaucoup d'autres, Star Citizen est bien plus qu'un simple jeu de vaisseaux spatiaux. Au fil de son développement, un univers entier s'est construit autour de lui : guerres, technologies, intrigues politiques et ces « premières » insolites que l'on ne trouve que dans la science-fiction. La chronologie est bien trop vaste pour un seul article, il ne s'agit donc ici que d'un aperçu des événements et de leur chronologie. Je tenterai de diviser les grands chapitres en articles plus courts, couvrant les siècles par le texte, ainsi qu'en un épisode de podcast audio. </p>
<p class="right-text"> L'aube du voyage quantique (2075-2200) </p>
<p class="right-text"> Le début du voyage de l'humanité vers les étoiles a été annoncé en 2075, avec la mise au point révolutionnaire du premier moteur à propulsion quantique autonome par le Dr Scott Childress et son équipe. Ce bond technologique quantique a permis des progrès rapides dans les capacités d'exploration spatiale, jetant les bases de l'avenir de l'humanité parmi les étoiles. Au cours du siècle suivant, le développement de méthodes de voyage quantique plus rapides et plus efficaces a permis à l'humanité d'étendre considérablement son influence au sein du Système solaire, marquant le début d'une nouvelle ère dans son histoire. Cette période fut caractérisée par des innovations technologiques majeures, avec des investissements considérables dans les infrastructures spatiales, aboutissant à l'établissement des premières colonies extraterrestres. </p>
<p class="right-text"> Chroniques cosmiques :: L'aube du voyage quantique sYSTèME nul </p>
<p class="right-text"> Chroniques cosmiques :: L'aube du voyage quantique Système nul </p>
<p class="right-text"> Ingénierie stellaire et premier voyage interstellaire (2201-2300) </p>
<p class="right-text"> Suite à l'avènement du voyage quantique, le XXIIIe siècle a vu l'humanité faire ses premiers pas dans l'espace interstellaire. Ingénieurs et scientifiques ont repoussé les limites du possible, menant au développement de technologies capables de parcourir les distances colossales entre les étoiles. Cette ère fut marquée par le premier voyage interstellaire réussi, un exploit monumental qui a ouvert la voie à l'expansion de l'humanité au-delà des frontières de notre Système solaire. Cette période d'exploration et de prouesses technologiques a mis en lumière l'insatiable curiosité de l'humanité et son désir d'explorer l'inconnu, jetant les bases de l'établissement de colonies sur des mondes lointains. </p>
<p class="right-text"> Chroniques Cosmiques :: Le Voyage Interstellaire </p>
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/planets.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/squares.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Planètes</title>
</head>
<body>
@@ -44,7 +44,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/ships.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/squares.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Vaisseaux</title>
</head>
<body>
@@ -45,7 +45,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/solar-system.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/squares-solar.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Système</title>
</head>
<body>
@@ -45,7 +45,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/v-one.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/cubes-seven.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ V1</title>
</head>
<body>
@@ -45,7 +45,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/weapons.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/squares.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Armes</title>
</head>
<body>
@@ -45,7 +45,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="../public/css/websites.css">
<link rel="stylesheet" href="../public/css/shared.css">
<link rel="stylesheet" href="../public/css/cubes-seven.css">
<link rel="icon" href="../public/images/favicon.png">
<link rel="icon" href="../public/images/Star_Citizen_logo.png">
<title>Star Present ─ Sites Utile</title>
</head>
<body>
@@ -44,7 +44,7 @@
</span>
<header>
<a id="logo" href="../index.html"> <img src="../public/images/favicon.png" alt="LOGO" width="46"> </a>
<a id="logo" href="../index.html"> <img src="../public/images/Star_Citizen_logo.png" alt="LOGO" width="46"> </a>
</header>
<main>
<div id="arrow-down">