Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOK-37] Animations #26

Merged
merged 14 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
e781d49
[SOK-36] refactor: перенес движения игрока в gameloop
shamemask Oct 11, 2024
682d1c2
[SOK-36] refactor: преобразовал интерфейс врага и игрока в абстрактны…
shamemask Oct 11, 2024
5e2f486
[SOK-36] feat: создал пули, настроил выстрелы пользователем
shamemask Oct 11, 2024
4ccd716
[SOK-36] feat: настроил попадание пулей и выпуск по одной
shamemask Oct 11, 2024
28eaadf
[SOK-36] fix: настроил ограничение по скорости выстрелов
shamemask Oct 11, 2024
ebe6c70
[SOK-36] feat: настроил движение врагов конём, а также поворот спрайтов
shamemask Oct 11, 2024
c6ab430
[SOK-36] feat: настроил выстрелы врагов
shamemask Oct 11, 2024
9727692
[SOK-36] fix: исправил репаун и коллизию врагов друг с другом
shamemask Oct 11, 2024
e55a0ac
[SOK-36] fix: настроил распределение препятствий, а также их разрушение
shamemask Oct 11, 2024
bf77d72
[SOK-36] fix: внедрил наработку компании
shamemask Oct 12, 2024
e725927
Добавил анмицию движения танка
Timur233 Oct 12, 2024
2b714b2
Lint & Format
Timur233 Oct 12, 2024
5ea21e7
Добавил спрайт снаряда
Timur233 Oct 12, 2024
afe203f
Доработки:
Timur233 Oct 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="manifest" href="/manifest.json">
<link rel="manifest" href="/manifest.json" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
Expand Down
17 changes: 8 additions & 9 deletions packages/client/public/serviceWorker.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const CACHE_NAME = 'cache-data-v1'
const urlsToCache = [
'/'
]
const urlsToCache = ['/']

const networkFirst = async (request) => {
const networkFirst = async request => {
const cache = await caches.open(CACHE_NAME)
try {
const response = await fetch(request)
const cachePutCondition = response && response.status === 200 && response.type === 'basic'
const cachePutCondition =
response && response.status === 200 && response.type === 'basic'
if (cachePutCondition) {
await cache.put(request, response.clone())
}
Expand All @@ -25,21 +24,21 @@ const networkFirst = async (request) => {
}
}

self.addEventListener('install', (event) => {
self.addEventListener('install', event => {
event.waitUntil(
caches
.open(CACHE_NAME)
.then((cache) => {
.then(cache => {
return cache.addAll(urlsToCache)
})
.then(() => self.skipWaiting())
.catch((err) => {
.catch(err => {
console.error('Cache installation failed:', err)
})
)
})

self.addEventListener('fetch', (event) => {
self.addEventListener('fetch', event => {
const { request } = event
const { url, method } = request

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 0 additions & 14 deletions packages/client/src/assets/images/sprites/enemy.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading