New games every week!
SmileBASIC 4 - Pixels Blog
2nd June 2019


The default pixel-sprite editor for PetitSwitch
Scroll around the left-side (full spritesheet) with the left thumbstick, draw in the right hand "zoomed" view (you can zoom in further) with touchscreen or mouse.
Controls for colours, but the palette doesn't save. .. Booo!
Plenty of twiddly knobs and buttons, barely any of which I have the faintest idea what they're doing.
A to plot, B to pick colour.. .. Except..
The dpad doesn't move the cursor.. In fact, NOTHING moves the cursor.
Instead, you're stick with Mouse Control to do everything.
Not even copy+paste!?!

Drawing outside of the boundary of the zoomed in region (eg, mis-clicking the dodgy palette boxes) will randomly splodge a pixel in any area outside of that region.
You have limited zoom options, but at no point can you zoom directly into a single sprite.. It's always slightly too large, or slightly too small, and 1 single sprite never quite fits into the editor's viewport.
Scrolling also occurs based on the size of that viewport, so trying to edit one sprite, then move to the next, is damn near impossible.
Also, seriously, no thick gridlines at 16 to help guide you to drawing within the sprite limits!?!

Really, all kinds of messy, and ..
Nah..

Not gonna be happy using that.

..
So, um.. You can probably guess what I spent most of today doing.

-=-=-



The Palette's hard-coded, but easily changeable.
I haven't yet added specific RGB (or even HSV) options, but those can be added really easily, too.
Trigger left+right to move through sprites. Each sprite is perfectly aligned into the drawing grid.
This isn't ideal for a lot of people, in a lot of situations, and only deals with 16x16 sprites.

C copies, V pastes, Z attempts an Undo but that's all kinds of broken right now. S saves.
(Do NOT hit CtrlC to copy.. CtrlC quits the current program, dunnit!!)

DPad movement works a treat, A to plot, B to "delete" a pixel (eg make 255,0,255 transparent), Y to copy the colour of the pixel.

May not be the most feature filled Sprite Editor, but it's certainly spot on for my stuff!

I haven't uploaded this... I don't *think* anyone will be needing it.. But if, when you ever get around to trying all of this, you find the default editor a bit pants... Gimme a prod!
Views 119, Upvotes 21  
Petit Computer , Smilebasic , Nintendo , Switch , Petit Switch , Petitcom4
New games every week!
Site credits : Jayenkai made this.
(c) Jayenkai 2023 and onwards, RSS feed

Blog - SmileBASIC 4 - Pixels - AGameAWeek