Переглянути джерело

Inital commit of the SAAM application.

master
Bryan Miller 4 роки тому
коміт
c4b980489c
Не вдалося знайти GPG ключ що відповідає даному підпису
6 змінених файлів з 83 додано та 0 видалено
  1. +4
    -0
      .gitignore
  2. +9
    -0
      LICENSE
  3. +13
    -0
      README.md
  4. +34
    -0
      main.js
  5. +11
    -0
      package.json
  6. +12
    -0
      view/index.html

+ 4
- 0
.gitignore Переглянути файл

@@ -0,0 +1,4 @@
# ignoring the classics.
package-lock.json
node_modules/*


+ 9
- 0
LICENSE Переглянути файл

@@ -0,0 +1,9 @@
Copyright 2020 Bryan Miller

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



+ 13
- 0
README.md Переглянути файл

@@ -0,0 +1,13 @@
## Sprite Art and Mapper **(SAaM)**
*SAaM* is an *Electron* desktop pixel sprite and tilemap editor.

GOALS:
* Create sprites of any size
* Animate sprites
* Use sprites in a tilemap
* Create Tilemaps and Sprites at the same time
* Save as a PNG of individual tiles and/or tilemap
* Save as a JSON file contraining all project data which can then be used in 3rd party programs as desired.




+ 34
- 0
main.js Переглянути файл

@@ -0,0 +1,34 @@
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const path = require('path');
const url = require('url');

let win;

function createWindow(){
win = new BrowserWindow();
win.loadURL(url.format({
pathname: path.join(__dirname, 'view/index.html'),
protocol: 'file',
slashes: true
}));

win.webContents.openDevTools();
win.on('closed', ()=>{win = null;})
}


app.on('ready', createWindow);
app.on('window-all-closed', ()=>{
if (process.platform !== 'darwin')
app.quit();
});

app.on('activate', ()=> {
if (win === null){
createWindow();
}
});



+ 11
- 0
package.json Переглянути файл

@@ -0,0 +1,11 @@
{
"name": "SAAM",
"version": "0.0.1",
"main": "main.js",
"devDependencies": {
"electron": "^10.1.2"
},
"scripts":{
"start": "electron ."
}
}

+ 12
- 0
view/index.html Переглянути файл

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SAaM</title>
</head>
<body>
More to come
</body>
</html>

Завантаження…
Відмінити
Зберегти