Skip to content

Commit 39c2686

Browse files
committed
Updated the Sprite Editor with the latest changes
1 parent cb5ec43 commit 39c2686

File tree

8 files changed

+47
-22
lines changed

8 files changed

+47
-22
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
The following enhancements and changes have been made to Atari Dev Studio:
44

5+
## 0.10.4
6+
7+
* Updated the Sprite Editor with the following changes:
8+
- Rebuilt the 2600 and 7800 Export window and process to offer a more streamlined and feature rich process
9+
- Updated the Editor and Palette features to work with multi-color 2600 sprites
10+
- Added an output content (showing the generated source) and copy/paste feature to the 2600 Export window
11+
- Added color information to the 2600 export content
12+
513
## 0.10.3
614

715
* Updated the Sprite Editor with the following changes:

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ Atari Dev Studio includes a simple and easy to use Sprite Editor allowing you to
9898
* Load and Save projects allowing you to save and come back to on-going work
9999
* Editing features such as a pen, eraser, fill, line, rectangle and ellipse as well as zoom, move and palette selection
100100
* Ability to manage your sprites in a sortable list with options to copy, paste, duplicate, resize and delete
101+
* Load and save palettes
101102
* Display a copyable list of color indexes for the selected sprite which can be used with your **incgraphics** references (7800)
103+
* Export sprites to .png image files (7800)
104+
* Create single or multi-color sprites (2600)
102105
* Export sprites to batari Basic or assembly source code (2600)
103-
* Export sprites to .png files (7800)
104-
* Load and save palettes
105106

106107
![Sprite Editor](images/ataridevstudio-spriteeditor.png)
107108
The Sprite Editor is based on [Spritemate](http://spritemate.com) by Ingo Hinterding ([GitHub](https://github.com/Esshahn/spritemate)) and was suggested by RandomTerrain for inclusion in Atari Dev Studio. I have customised the source to provide the required features necessary for editing sprites, tiles and objects for the Atari platforms. This work is currently in preview and will be on-going until all required features have been added.

out/content/pages/spriteeditor/main.css

+22-5
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ Spritemate stylesheet
24742474
background-color: rgba(0,0,0,0.5);
24752475
}
24762476

2477-
#window-export input#filename {
2477+
#window-export input#export7800Filename {
24782478
width: 98%;
24792479
}
24802480

@@ -2755,13 +2755,30 @@ Spritemate stylesheet
27552755
margin: 0px 0px 4px 2px;
27562756
}
27572757

2758-
div#region-section #palette-dropdown-region-button {
2759-
width: 232px;
2758+
#palette-dropdown-region-button {
2759+
width: 227px;
27602760
margin-bottom: 10px;
27612761
}
27622762

2763-
div#region-section .ui-selectmenu-text {
2764-
font-size: 1.3em;
2763+
#export-output {
2764+
width: 100%;
2765+
height: 300px;
2766+
font-family: 'courier';
2767+
background: black;
2768+
color: white;
2769+
resize: none;
2770+
}
2771+
2772+
.palette-section-header {
2773+
font-weight: 600;
2774+
text-transform: uppercase;
2775+
font-size: 70%;
2776+
text-align: center;
2777+
padding: 4px 0px 4px 0px
2778+
}
2779+
2780+
#button-export2600-copy {
2781+
margin: 0px;
27652782
}
27662783

27672784
.palette_color_item_sprite_colors

out/content/pages/spriteeditor/main.js

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/pages/spriteeditor.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/pages/spriteeditor.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "atari-dev-studio",
33
"displayName": "Atari Dev Studio",
44
"description": "Homebrew game creation for the Atari 8-bit consoles",
5-
"version": "0.10.3",
5+
"version": "0.10.4",
66
"icon": "images/icon.png",
77
"preview": false,
88
"author": "mksmith",

src/pages/spriteeditor.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as path from 'path';
44
import * as filesystem from '../filesystem';
55
import * as application from '../application';
66
import opn = require('open');
7-
import { stringify } from 'querystring';
87

98
export class SpriteEditorPage implements vscode.Disposable {
109

@@ -330,7 +329,7 @@ export class SpriteEditorPage implements vscode.Disposable {
330329
this.currentPanel!.webview.postMessage({
331330
command: command,
332331
status: 'error',
333-
errorMessage: `Failed to export image '${path.basename(fileUri.fsPath)}' (Error: ${e.message})`
332+
errorMessage: `Failed to export sprite to file '${path.basename(fileUri.fsPath)}' (Error: ${e.message})`
334333
});
335334
});
336335
})
@@ -396,7 +395,7 @@ export class SpriteEditorPage implements vscode.Disposable {
396395
this.currentPanel!.webview.postMessage({
397396
command: command,
398397
status: 'error',
399-
errorMessage: `Failed to export image '${path.basename(fileUri.fsPath)}' (Error: ${e.message})`
398+
errorMessage: `Failed to export sprite to file '${path.basename(fileUri.fsPath)}' (Error: ${e.message})`
400399
});
401400
});
402401
}

0 commit comments

Comments
 (0)