Log In  

Cart #college-0 | 2024-06-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#149393 2024-06-03 18:43

Hello, since you seem to be making a game in 64x64 resolution, how about making it 32 colors instead of 16 ?

P#149413 2024-06-04 09:50

@RealShadowCaster Pico-8 only supports 16 colors at once...?

P#149430 2024-06-04 17:01 ( Edited 2024-06-04 17:01)

@ooooggll
There is at least 3 video modes that allow more than 16 onscreen colors on the same frame.
https://www.lexaloffle.com/bbs/?pid=78518
The one I was suggesting is the least used one : 128x64 with horizontal wide pixels.
This mode has a lot of drawbacks : non square pixels, half resolution, incompatible with pico8 draw instructions, and horizontal scrolling is painful to implement due to the way the memory is organised in this mode.
Despite all that, this game seems to be a rare case where it might be worth it : No resolution loss, plenty of cpu to spare so the draw primitives can be rewritten with pokes, and 32 Instead of 16

P#149455 2024-06-05 00:10
1

I like this idea, but I'm confused how it works. (Experimenting with memory is not my expertise.)

P#149506 2024-06-05 20:44

The simplest way would be to make The game in 64x64 16 colors as you’ve started, but be sure to have plenty of spare cpu. At the same time, make a 32 colors version of the sprite sheet, and I’ll take care of the rest. The idea is that every function like spr or map will be replaced in the init by slower lua functions that handle 32 colors.
There’s also a big string containing the 32 colors sprite data that will need to be parsed to prepare for the calls to the spr sspr etc that need sprite data.
Ideally you should be able to just make the game in 16 colors and then prepare the sprite sheet.
What might save 33% of cpu for map() is to only use 29 colors out of 32, so that might be an optimisation worth keeping in mind.
I’ll post a small demo here next week end.

P#149507 2024-06-05 21:09
1

Ah yes, this reminds me of college.. being unable to approach strangers.. the professor's writing, unreadable.. the computers, barely functioning.. excellent simulacrum

P#149901 2024-06-13 18:12

@kozm0naut If this game was a charade, you are the winner. :)

P#150161 2024-06-20 21:04

[Please log in to post a comment]