From d9ef8a652594c782be0422184a8632588805db06 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 10 Dec 2023 09:14:47 +0700 Subject: Added store page for simpliCity, tank shooter not finished --- .gitignore | 3 + about/index.html | 4 +- assets/images/game-hero/simpliCity.png | Bin 0 -> 1522731 bytes assets/images/logo/simpliCity.png | Bin 0 -> 165688 bytes assets/videos/trailer_simpliCity.mp4 | Bin 0 -> 132351291 bytes blog/index.html | 4 +- index.html | 8 ++- projects/index.html | 4 +- projects/simpliCity/index.html | 111 +++++++++++++++++++++++++++++++ projects/tank-shooter/index.html | 114 ++++++++++++++++++++++++++++++++ scripts/onload.js | 11 +++- scripts/scroll.js | 12 ++-- scripts/video.js | 16 +++++ style.css | 117 +++++++++++++++++++++++++++++++-- 14 files changed, 383 insertions(+), 21 deletions(-) create mode 100644 .gitignore create mode 100644 assets/images/game-hero/simpliCity.png create mode 100644 assets/images/logo/simpliCity.png create mode 100644 assets/videos/trailer_simpliCity.mp4 create mode 100644 projects/simpliCity/index.html create mode 100644 projects/tank-shooter/index.html create mode 100644 scripts/video.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..50db685 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +temp +conf +logs diff --git a/about/index.html b/about/index.html index c705b60..530b38b 100644 --- a/about/index.html +++ b/about/index.html @@ -7,7 +7,7 @@ - Projects • altaf-creator + About Me • altaf-creator @@ -91,4 +91,4 @@ - \ No newline at end of file + diff --git a/assets/images/game-hero/simpliCity.png b/assets/images/game-hero/simpliCity.png new file mode 100644 index 0000000..e31067c Binary files /dev/null and b/assets/images/game-hero/simpliCity.png differ diff --git a/assets/images/logo/simpliCity.png b/assets/images/logo/simpliCity.png new file mode 100644 index 0000000..ec1d856 Binary files /dev/null and b/assets/images/logo/simpliCity.png differ diff --git a/assets/videos/trailer_simpliCity.mp4 b/assets/videos/trailer_simpliCity.mp4 new file mode 100644 index 0000000..e3e3694 Binary files /dev/null and b/assets/videos/trailer_simpliCity.mp4 differ diff --git a/blog/index.html b/blog/index.html index 65a4d79..89ad846 100644 --- a/blog/index.html +++ b/blog/index.html @@ -35,7 +35,7 @@
-
Devlog, simpliCity
+
Devlog simpliCity
This Week's Devlog: Well that was dumb. (33nd Week of 2023)

Wed, 16 August 2023

@@ -66,4 +66,4 @@ - \ No newline at end of file + diff --git a/index.html b/index.html index 9439c2c..e39384d 100644 --- a/index.html +++ b/index.html @@ -60,7 +60,7 @@
- + simpliCity @@ -94,7 +94,7 @@
-
Devlog, simpliCity
+
Devlog simpliCity
This Week's Devlog: Well that was dumb. (33nd Week of 2023)

Wed, 16 August 2023

@@ -109,7 +109,9 @@
- View More +
+ View More +

Socials

diff --git a/projects/index.html b/projects/index.html index 92e38c9..b2477c7 100644 --- a/projects/index.html +++ b/projects/index.html @@ -34,7 +34,7 @@
- + simpliCity @@ -115,4 +115,4 @@ - \ No newline at end of file + diff --git a/projects/simpliCity/index.html b/projects/simpliCity/index.html new file mode 100644 index 0000000..dd2a876 --- /dev/null +++ b/projects/simpliCity/index.html @@ -0,0 +1,111 @@ + + + + + + + + + + + simpliCity • altaf-creator + + + + + + + + + + + +
+ + +
+
+
+
+

What is simpliCity?

+

simpliCity is a sandboxing game about building a city without all those hassle from complicated systems. The main focus of the game is the building aspect.

+

Build a beautiful city with simple building mechanics and simple working system. Expand your city to whatever you want with no limit!

+

This Game Offers:

+
    +
  • 30+ different buildings
  • +
  • Save & load system
  • +
  • Simple worker system
  • +
  • Relaxing feel & atmosphere
  • +
  • Simple residential system
  • +
  • Sandbox mode if you want no challanges at all
  • +
+

Gameplay

+

The gameplay of the game is simple. You start with an empty island in the middle of the ocean. You start building houses, trees, and offices. Residents will come to your city and you can expand the city into whatever you'd like!

+

Feedback & Discord

+

Have any feedback? Found some bugs? Or do you want to connect with others about this game? If you're interested, you can join our Discord Server!

+
+
+
+
+
+
+

Minimum System Requirements

+
    +
  • Operating System: Windows 8+ 64-bit
  • +
  • Processor: Intel Dual Core 2GHz
  • +
  • Memory: 2 GB of RAM
  • +
  • Graphics: Intergrated Graphics Card
  • +
  • DirectX: Version 11
  • +
  • Storage: 512 MB available space
  • +
+
+
+
+
+
+
+

Downloads

+ +

Older Versions (coming soon)

+ +

Changelogs (coming soon)

+ View Changelogs +
+
+
+ + + diff --git a/projects/tank-shooter/index.html b/projects/tank-shooter/index.html new file mode 100644 index 0000000..3a79dc9 --- /dev/null +++ b/projects/tank-shooter/index.html @@ -0,0 +1,114 @@ + + + + + + + + + + + simpliCity • altaf-creator + + + + + + + + + + + +
+ + +
+
+
+
+

What is simpliCity?

+

simpliCity is a sandboxing game about building a city without all those hassle from complicated systems. The main focus of the game is the building aspect.

+

Build a beautiful city with simple building mechanics and simple working system. Expand your city to whatever you want with no limit!

+

This Game Offers:

+
    +
  • 30+ different buildings
  • +
  • Save & load system
  • +
  • Simple worker system
  • +
  • Relaxing feel & atmosphere
  • +
  • Simple residential system
  • +
  • Sandbox mode if you want no challanges at all
  • +
+

Gameplay

+

The gameplay of the game is simple. You start with an empty island in the middle of the ocean. You start building houses, trees, and offices. Residents will come to your city and you can expand the city into whatever you'd like!

+

Feedback & Discord

+

Have any feedback? Found some bugs? Or do you want to connect with others about this game? If you're interested, you can join our Discord Server!

+
+
+
+
+
+
+

Minimum System Requirements

+
    +
  • Operating System: Windows 8+ 64-bit
  • +
  • Processor: Intel Dual Core 2GHz
  • +
  • Memory: 2 GB of RAM
  • +
  • Graphics: Intergrated Graphics Card
  • +
  • DirectX: Version 11
  • +
  • Storage: 512 MB available space
  • +
+
+
+
+
+
+
+

Downloads

+ +

Older Versions (coming soon)

+ +

Changelogs (coming soon)

+ View Changelogs +
+
+
+ + + diff --git a/scripts/onload.js b/scripts/onload.js index 5c63f35..165f80d 100644 --- a/scripts/onload.js +++ b/scripts/onload.js @@ -3,6 +3,13 @@ function addNodes() { const container = document.getElementById("progressContainer"); for (var i = 0; i < collection.length; i++) { - container.innerHTML += "\n"; + var node = document.createElement("a"); + node.className = "node"; + container.appendChild(node); + if (collection.item(i).getAttribute('id') == null) { + collection.item(i).setAttribute('id', `section-${i}`); + } + node.setAttribute('id', `node-${i}`) + node.href = `#${collection.item(i).getAttribute('id')}` } -} \ No newline at end of file +} diff --git a/scripts/scroll.js b/scripts/scroll.js index b7a6fa0..6c20890 100644 --- a/scripts/scroll.js +++ b/scripts/scroll.js @@ -5,17 +5,19 @@ document.addEventListener('scroll', function () { function progress() { const sections = document.getElementsByTagName("section"); - const nodes = document.getElementsByTagName("nodes"); + const nodes = document.getElementsByClassName("node"); if (nodes[0]) { for (var i = 0; i < sections.length; i++) { if (isInViewport(sections[i])) { - nodes[i].style.width = "20px"; - nodes[i].style.height = "20px"; + nodes[i].style.width = "22px"; + nodes[i].style.height = "22px"; + nodes[i].style.backgroundColor = "black"; } else { - nodes[i].style.width = "10px"; - nodes[i].style.height = "10px"; + nodes[i].style.width = "13px"; + nodes[i].style.height = "13px"; + nodes[i].style.backgroundColor = "#555"; } } } diff --git a/scripts/video.js b/scripts/video.js new file mode 100644 index 0000000..e1d5948 --- /dev/null +++ b/scripts/video.js @@ -0,0 +1,16 @@ +function playVideo(elementId) { + var element = document.getElementById(elementId); + + element.style.visibility = "visible"; + element.style.opacity = "100%"; + element.play(); +} + +function stopVideo(elementId) { + var element = document.getElementById(elementId); + + element.style.visibility = "hidden"; + element.style.opacity = "0%"; + element.pause(); + element.currentTime = 0; +} diff --git a/style.css b/style.css index 0031062..c5e207a 100644 --- a/style.css +++ b/style.css @@ -65,6 +65,10 @@ pre { color: #444; } +.desktop { + visibility: visible; +} + .center { text-align: center; } @@ -168,12 +172,12 @@ pre { transition: left .3s; } -.sidebar-progress-node { - width: 10px; - height: 10px; +.node { + width: 13px; + height: 13px; margin-top: 50px; margin-bottom: 50px; - background-color: black; + background-color: #555; border-radius: 20px; transition: all .3s cubic-bezier(0, .38, .48, 1.35); } @@ -227,6 +231,18 @@ pre { width: 100%; } +.center-absolute { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +.grid { + display: grid; + grid-auto-flow: column; +} + .big-text { font-size: clamp(1rem, -0.875rem + 30vw, 2rem); max-width: 80%; @@ -283,6 +299,20 @@ pre { height: 100%; } +.flex-right { + display: flex; + flex-direction: row; + justify-content: right; +} + +.item-left { + place-self: start; +} + +.item-center { + place-self: center; +} + .full-img-card { background-color: var(--accent); margin: 5px; @@ -324,6 +354,59 @@ pre { background: linear-gradient(180deg, transparent calc(100% - 2px), white 0); } +.banner-bottom-bar { + height: auto; + width: 100%; + background-color: #0008; + backdrop-filter: blur(10px); + position: absolute; + bottom: 0; + left: 0; + z-index: 4; + align-items: center; + color: white; +} + +.banner-top-bar > img { + height: 40px; +} + +.banner-bottom-bar > i { + font-size: 1.1rem; + display: inline-block; +} + +.banner-top-bar { + position: fixed; + z-index: 3; + height: 69px; + width: 100%; + background-color: #0008; + backdrop-filter: blur(10px); + top: 0; + left: 70px; + color: white; + box-sizing: border-box; + align-content: center; +} + +.banner-video { + position: absolute; + z-index: 4; + top: 0; + left: 0; + min-width: calc(100vw - 70px); + min-height: 100%; + width: calc(100vw - 70px); + height: auto; + background-size: cover; + overflow: hidden; + object-fit: cover; + opacity: 0; + transition: all .5s; + visibility: hidden; +} + .card { height: 200px; max-width: 800px; @@ -388,7 +471,7 @@ pre { } .button { - display: block; + display: inline-block; width: fit-content; padding: 15px; background-color: var(--accent); @@ -398,6 +481,7 @@ pre { transition: background-color .2s; box-shadow: none; position: relative; + align-content: center; } .button:hover { @@ -416,6 +500,13 @@ pre { filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.4)); } +.button-disabled, .button-disabled:hover, .button-disabled:active, .button-disabled:focus { + cursor: not-allowed; + opacity: .5; + background-color: var(--accent1); + box-shadow: none !important; +} + .banner { max-width: 100%; height: 500px; @@ -424,6 +515,13 @@ pre { box-sizing: border-box; } +#simpliCity-img { + z-index: 4; + background-image: url(/assets/images/game-hero/simpliCity.png); + background-size: cover; + background-position: center; +} + #simpliCity-link { position: absolute; right: 30px; @@ -445,6 +543,11 @@ pre { } @media only screen and (max-width: 600px) { + .desktop { + visibility: collapse; + display: none; + } + .flex { flex-direction: column; } @@ -467,4 +570,8 @@ pre { .gallery-card { flex: 1 0 300px; } + + .banner-top-bar { + left: 0; + } } -- cgit v1.2.3