123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|630|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> JSE -> JSE Tools editors - shortcut keys?

Sun, 04 Dec 2022, 03:50
AndyH

Tools editors - shortcut keys?


Would you be able to add a page to the documentation to lsit out shortcut keys in the editors?

In the image editor I have found the following through trial and error:

[ and ] - change sprite number
Cursor keys - push canvas content in that direction
B - brush
F - fill
C - copy
V - paste
Ctrl or Alt key while clicking - colour picker
Right mouse button - move canvas around
Mouse wheel - zoom in/out

Anything else?


Feature request
- Is there an Undo at all? undo last operation would be handy


BUG
- Did find one bug. If you don't copy anything first and press V it destroys the current sprite (it disappears).
Can recover it by clicking the 32 button and selecting the size.

BTW, are sprites fixed at the three square sizes or is it possible to set any dimensions?

-=-=-
Andy H
8-bit games at www.hewco.uk
Cartoons at awful.ovine.net
Ovine at ovine.net
Sun, 04 Dec 2022, 04:37
Jayenkai
I think you've found all the shortcuts, there!
Well done

I still haven't actually written up the editor, have I? Mostly because I'm still not 100% happy with how it works/doesn't.
And, goodness knows how abandoned the JMTrackr editor is!
Yeah, leftovers..
Bah, humbug.

The image editor is at least leaps and bounds more functional than it was to begin with.
I could do with smoothing the mouse a bit, so when you draw fast lines, it manages to plot the pixels in-between.
I'll add Undo to the list.. And Rect+Oval, too.

The "Paste Nothing" is most definitely a bug!

-=-=-

As for sizes, 8,16,32 is all you're getting, I'm afraid. And, in fact, all three are 32x32, they just draw 2x2 pixels or 4x4 pixels.
The entire Symbol/Image code is locked to 32x32 sprites, mostly because in order to allow for the severely limited "HTML Canvas doesn't do image recolouring" I've ended up having to redraw every symbol 10 times for the 10 palette swapped versions of the symbols.

100 symbols, laid out in a 10 by 10 grid of 34 pixels (32 with pixel gaps around them) means your browser has 10x 340x340 pixel spritesheets hanging around in memory.

Honestly, if I make the sprites larger, or try to recolour any further, the whole thing's going to expand beyond sensible limits!!

-=-=-

Maybe I could work on the editor for a bit, today, then..
Any other suggestions?

-=-=-
''Load, Next List!''
Sun, 04 Dec 2022, 07:00
AndyH
Ah I see. That's fine. I can work with that.
Sun, 04 Dec 2022, 12:06
Jayenkai
1. Paintbrush smoothing has been applied, so will (hopefully) end up making better lines.
Ironically, it may end up being slower.. Apologies if it is.. I'll keep trying to make it quicker. Let me know how you get on with it.

2. Rect and Oval have been added Again, may be slower. Let me know.
New unmentioned keyboard shortcuts of R and O are now also shortcuts for Rect and Oval

Bug fixed : Trying to paste something that doesn't exist, no longer breaks it!

Feature Request : There is still no undo. I'm not quite sure on the best way to do it without an alarming memory leak!! Will keep fermenting the idea.

-=-=-
''Load, Next List!''
Sun, 04 Dec 2022, 14:20
Dan
When i was writing a Game in autoit, i didn't know how to make the undo moves.

But the easiest (and safest) solution was to convert the whole gamefield in a text format (whenever the player made a move) and to store it in an undo array.

In that way you have the previous data intact and need only to care about the special case - when user switches the resolution ... to switch it back when undo is pressed.
Sun, 04 Dec 2022, 16:30
AndyH
Nice, thank you.

An undo could just simply be one level and work like copy and paste? Ie: take a copy before a drawing operation and z key pastes it back.

-=-=-
Andy H
8-bit games at www.hewco.uk
Cartoons at awful.ovine.net
Ovine at ovine.net
Sun, 04 Dec 2022, 17:12
Jayenkai
OK, If I can't figure out any other way, I'll do that

-=-=-
''Load, Next List!''