diff --git a/.editorconfig b/.editorconfig index 2d7973b..ac2997f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -46,12 +46,3 @@ indent_size = 2 [package.json] indent_style = space indent_size = 2 - -# Ignore paths for this project -[{Solar2D/**,ssh/config}] -charset = unset -end_of_line = unset -insert_final_newline = unset -trim_trailing_whitespace = unset -indent_style = unset -indent_size = unset diff --git a/JavaScript/GameLoop/game.js b/JavaScript/GameLoop/game.js deleted file mode 100644 index a432145..0000000 --- a/JavaScript/GameLoop/game.js +++ /dev/null @@ -1,113 +0,0 @@ -// Main variables -let DEBUG = true; -let canvas; -let context; -let cW; -let cH; - -// FPS -let secondsPassed; -let oldTimeStamp; -let fps; - -let dragging = false; - -function mMove(e) { - 'use strict'; - - if (dragging) { - point.pX = e.offsetX * cW / canvas.clientWidth | 0; - point.pY = e.offsetY * cH / canvas.clientHeight | 0; - }; -} - -function mDown(e) { - 'use strict'; - - dragging = true; -} - -function mUp(e) { - 'use strict'; - - dragging = false; -} - -function clearContext() { - 'use strict'; - - context.fillStyle = '#b27e56'; - context.fillRect(0, 0, cW, cH); -} - -// Init -window.onload = function() { - 'use strict'; - - canvas = document.getElementById('game'); - context = canvas.getContext('2d'); - cW = canvas.width; - cH = canvas.height; - - canvas.style.height = window.innerHeight + "px"; - if (DEBUG) { - console.log('Canvas set size to ' + window.innerHeight + 'px'); - console.log(canvas.getBoundingClientRect()); - }; - - canvas.addEventListener('mousedown', mDown, false); - canvas.addEventListener('mouseup', mUp, false); - canvas.addEventListener('mousemove', mMove, false); - - canvas.addEventListener('touchstart', mDown, false); - canvas.addEventListener('touchend', mUp, false); - canvas.addEventListener('touchmove', mMove, false); - - window.requestAnimationFrame(gameLoop); -}; - -window.addEventListener('resize', function() { - 'use strict'; - - let canvas = document.getElementById('game'); - canvas.style.height = window.innerHeight + "px"; - - if (DEBUG) { - console.log('Canvas resized to ' + window.innerHeight + 'px'); - console.log(canvas.getBoundingClientRect()); - }; -}, true); - -// GameLoop -function gameLoop(timeStamp) { - 'use strict'; - - // fps counter - secondsPassed = (timeStamp - oldTimeStamp) / 1000; - oldTimeStamp = timeStamp; - fps = Math.round(1 / secondsPassed); - // end fps counter - - update(); - draw(); - - if (DEBUG) { - context.font = '15px Arial'; - context.fillStyle = '#101024'; - context.fillText('FPS: ' + fps, 10, 20); - }; - - window.requestAnimationFrame(gameLoop); -} - -function update() { - 'use strict'; - - // -} - -function draw() { - 'use strict'; - - clearContext(); -} diff --git a/JavaScript/GameLoop/index.html b/JavaScript/GameLoop/index.html deleted file mode 100644 index 396aff3..0000000 --- a/JavaScript/GameLoop/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - JS Game - - - -
- -
- - - - diff --git a/JavaScript/GameLoop/styles.css b/JavaScript/GameLoop/styles.css deleted file mode 100644 index 3bb170b..0000000 --- a/JavaScript/GameLoop/styles.css +++ /dev/null @@ -1,20 +0,0 @@ -html { height: 100%; } - -body { - background-color: #101024; - padding: 0; - margin: 0; - height: 100%; -} - -div.wrap { - display: flex; - height: 100%; - align-items: center; - justify-content: center; -} - -canvas#game { - border: 2px solid #ec8a4b; - display: block; -} diff --git a/JavaScript/README.md b/JavaScript/README.md deleted file mode 100644 index e203427..0000000 --- a/JavaScript/README.md +++ /dev/null @@ -1,38 +0,0 @@ -## Pixel-Art -```css -canvas { image-rendering: crisp-edges; image-rendering: pixelated; } -``` - -## WebPack -`packages.json` -```json -"scripts": { - "serve": "webpack serve", - "html": "html-minifier --collapse-whitespace --remove-comments src/index.html --output dist/index.html", - "css": "csso src/styles.css --output dist/styles.css", - "build": "npm run html && npm run css && webpack --mode=production" -}, -"devDependencies": { - "webpack": "^5.42.0", - "webpack-cli": "^4.7.2", - "webpack-dev-server": "^3.11.2" -} -``` -`webpack.config.js` -```javascript -const path = require('path'); - -module.exports = { - mode: 'development', - entry: './src/index.js', - output: { - path: path.resolve(__dirname, 'dist'), - filename: 'engine.js', - }, - devServer: { - contentBase: path.join(__dirname, 'src'), - compress: false, - port: 55555, - }, -}; -``` diff --git a/Solar2D/SampleProject/HISTORY.md b/Solar2D/SampleProject/HISTORY.md deleted file mode 100644 index 64487ca..0000000 --- a/Solar2D/SampleProject/HISTORY.md +++ /dev/null @@ -1,10 +0,0 @@ -## Legend -- 🐛 - Bug -- ✔ī¸ - Fixed -- ❌ - Removed -- ➕ - Added -- ℹī¸ - Information -- â™ģī¸ - Edited - -## 0.1.0 - [17/04/2021] - (not work) -- diff --git a/Solar2D/SampleProject/TODO.md b/Solar2D/SampleProject/TODO.md deleted file mode 100644 index 277cc02..0000000 --- a/Solar2D/SampleProject/TODO.md +++ /dev/null @@ -1 +0,0 @@ -- diff --git a/Solar2D/SampleProject/build.settings b/Solar2D/SampleProject/build.settings deleted file mode 100644 index b542f73..0000000 --- a/Solar2D/SampleProject/build.settings +++ /dev/null @@ -1,37 +0,0 @@ -settings = -{ - orientation = - { - default = "portrait", - supported = { "portrait", }, - }, - - android = - { - usesPermissions = - { - "android.permission.INTERNET", - }, - }, - - iphone = - { - xcassets = "Images.xcassets", - plist = - { - UIStatusBarHidden = false, - UILaunchStoryboardName = "LaunchScreen", - }, - }, - - plugins = - { - - }, - - excludeFiles = - { - all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", }, - android = { "LaunchScreen.storyboardc", }, - }, -} diff --git a/Solar2D/SampleProject/config.lua b/Solar2D/SampleProject/config.lua deleted file mode 100644 index eb59aeb..0000000 --- a/Solar2D/SampleProject/config.lua +++ /dev/null @@ -1,18 +0,0 @@ -application = -{ - content = - { - width = 1080, - height = 1920, - scale = "letterbox", - fps = 60, - - --[[ - imageSuffix = - { - ["@2x"] = 2, - ["@4x"] = 4, - }, - --]] - }, -} diff --git a/Solar2D/SampleProject/main.lua b/Solar2D/SampleProject/main.lua deleted file mode 100644 index e69de29..0000000 diff --git a/Solar2D/SampleProject/scenes/game.lua b/Solar2D/SampleProject/scenes/game.lua deleted file mode 100644 index 25e501f..0000000 --- a/Solar2D/SampleProject/scenes/game.lua +++ /dev/null @@ -1,70 +0,0 @@ -local composer = require('composer') - -local scene = composer.newScene() - -local groupBack -local groupMain -local groupUI - - -function gameLoop() - -- -end - -local function onFrame(event) - -- -end - - -function scene:create(event) - local sceneGroup = self.view - - groupBack = display.newGroup() - groupMain = display.newGroup() - groupUI = display.newGroup() - - local debugRect = display.newRect(display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight ) - debugRect:setFillColor(0.807, 0.925, 0.956) -end - - -function scene:show(event) - local sceneGroup = self.view - local phase = event.phase - - if (phase == "will") then - -- Code here runs when the scene is still off screen (but is about to come on screen) - - elseif (phase == "did") then - gameLoopTimer = timer.performWithDelay(500, gameLoop, 0) - end -end - - -function scene:hide(event) - local sceneGroup = self.view - local phase = event.phase - - if (phase == "will") then - -- Code here runs when the scene is on screen (but is about to go off screen) - - elseif (phase == "did") then - -- Code here runs immediately after the scene goes entirely off screen - - end -end - - -function scene:destroy(event) - local sceneGroup = self.view - -- Code here runs prior to the removal of scene's view -end - - -scene:addEventListener('create', scene) -scene:addEventListener('show', scene) -scene:addEventListener('hide', scene) -scene:addEventListener('destroy', scene) -Runtime:addEventListener('enterFrame', onFrame) - -return scene diff --git a/Web/humans.txt b/Web/humans.txt deleted file mode 100644 index b14c3ea..0000000 --- a/Web/humans.txt +++ /dev/null @@ -1,10 +0,0 @@ -/* SITE */ -Last Updated: Thu Jul 21 01:00 AM MSK 2021 -Components: Null - -/* TEAM */ -Chef: Alexander Popov -Contacts: iiiypuk [at] iiiypuk.me -Twitter: @_iiiypuk -Ko-Fi: iiiypuk -From: Russia