Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtechFuz3D-Studio committed Jul 24, 2024
1 parent 4f07e7e commit bc8a703
Show file tree
Hide file tree
Showing 24 changed files with 420 additions and 342 deletions.
34 changes: 25 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,23 @@
<link rel="stylesheet" href="../../../../../styles/global.css" />
</head>
<body>

<div data-tauri-drag-region class="titlebar">
<div class="titlebar-button" id="titlebar-minimize">
<img
src="https://api.iconify.design/mdi:window-minimize.svg"
alt="minimize"
/>
</div>
<div class="titlebar-button" id="titlebar-maximize">
<img
src="https://api.iconify.design/mdi:window-maximize.svg"
alt="maximize"
/>
</div>
<div class="titlebar-button" id="titlebar-close">
<img src="https://api.iconify.design/mdi:close.svg" alt="close" />
</div>
</div>
<header>
<nav>
<div class="burger-icon" id="burger-icon">&#9776;</div>
Expand All @@ -27,7 +43,7 @@
<div class="sidebar-content">
<h1>Point & Shoot Focus Game</h1>
<!-- <h2>NOTICE: THIS LESSON DOES NOT WORK WHEN DEPLOYED</h2> -->
<p>Increase Your Brain Ractivity with Awareness and Focus</p>
<p>Increase Your Brain Activity with Awareness and Focus Games</p>
<p>Eliminate all the enemies before they cross the sky!</p>
<hr/>
<q
Expand All @@ -43,14 +59,14 @@ <h1>Point & Shoot Focus Game</h1>
>Bevouliin</a
></q
>
<!-- <p>
<img
id="spriteSheet"
src="../../../../public/shadow_dog.png"
alt="spritesheet"
/>
</p> -->
<hr/>

</div>
<div class="download-buttons">
<a href="path-to-windows-download" class="button" download>Win</a>
<a href="path-to-mac-download" class="button" download>Mac</a>
<a href="path-to-linux-download" class="button" download>Linux</a>
</div>
<footer>
<p class="sidefoot">&copy; 2024 ArtechFuz3D. All rights reserved.</p>
</footer>
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "point-shooter-tauri",
"name": "point-shooter-focus-game",
"private": true,
"version": "0.0.1",
"type": "module",
Expand All @@ -12,5 +12,8 @@
"@tauri-apps/cli": "^1.6.0",
"vite": "^5.3.4"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"dependencies": {
"@tauri-apps/api": "^1.6.0"
}
}
14 changes: 12 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
/**
* @type {HTMLCanvasElement}
*/

import raven from '@assets/raven.png'
import roll from '@assets/roll.wav'
import boom from '@assets/boom.png'

import { appWindow } from '@tauri-apps/api/window'
document
.getElementById('titlebar-minimize')
.addEventListener('click', () => appWindow.minimize())
document
.getElementById('titlebar-maximize')
.addEventListener('click', () => appWindow.toggleMaximize())
document
.getElementById('titlebar-close')
.addEventListener('click', () => appWindow.close())
window.addEventListener("load", function () {
const canvas = document.getElementById("canvas1");
const ctx = canvas.getContext("2d", {
Expand All @@ -22,7 +32,7 @@ window.addEventListener("load", function () {

let score = 0;
let gameOver = false;
ctx.font = "50px Alata";
ctx.font = "50px Orbitron";

let timeToNextRaven = 0;
let ravenInterval = 600;
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tauri-build = { version = "1.5.3", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.7.0", features = [] }
tauri = { version = "1.7.0", features = [ "window-hide", "window-minimize", "window-unminimize", "window-show", "window-maximize", "window-close", "window-unmaximize", "window-start-dragging"] }

[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
Expand Down
Binary file modified src-tauri/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/128x128@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square107x107Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square142x142Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square284x284Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square30x30Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square310x310Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square71x71Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square89x89Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/icon.icns
Binary file not shown.
Binary file modified src-tauri/icons/icon.ico
Binary file not shown.
Binary file modified src-tauri/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 21 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
},
"tauri": {
"allowlist": {
"window": {
"all": false,
"close": true,
"hide": true,
"show": true,
"maximize": true,
"minimize": true,
"unmaximize": true,
"unminimize": true,
"startDragging": true
},
"all": false
},
"bundle": {
Expand Down Expand Up @@ -53,13 +64,20 @@
"updater": {
"active": false
},

"windows": [

{
"fullscreen": false,
"height": 600,
"height": 900,
"resizable": true,
"title": "point-shooter-tauri",
"width": 800
"title": "point-shooter-focus-game",
"width": 1200,
"decorations": true,
"closable": true,
"maximizable": true,
"minimizable": true

}
]
}
Expand Down
Loading

0 comments on commit bc8a703

Please sign in to comment.