@@ -0,0 +1,4 @@ | |||
# ignoring the classics. | |||
package-lock.json | |||
node_modules/* | |||
@@ -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. | |||
@@ -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. | |||
@@ -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(); | |||
} | |||
}); | |||
@@ -0,0 +1,11 @@ | |||
{ | |||
"name": "SAAM", | |||
"version": "0.0.1", | |||
"main": "main.js", | |||
"devDependencies": { | |||
"electron": "^10.1.2" | |||
}, | |||
"scripts":{ | |||
"start": "electron ." | |||
} | |||
} |
@@ -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> |