Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
compilador separado
#10
boriel Wrote:Almost all of these are already supported except the flipbuffer routine, that should be created in a separated library/xxxx.bas file and the sprites libraries. Several sprites projects has been started and discused in the forum (eg. the fourspriter, the putchar, and other). Fourspriter is a 16x16 sprites library created by The Mojon Twins, which has been ported to ZX Basic (with permission). :-) Other libraries might come later...

Not sure if you knew Sinclair Basic (e.g. drawcircle primitive is CIRCLE).

I think the flipbuffer routine must be flexible.

-Must allow, optionally, the copy to the backbuffer.
If you generate the entire frame from stratch has no sense this copy, but if you draw a circle, apply flipbuffer and draw another circle, without copy the first circle can't be showed.

-Has more sense to be allocated in a interrupt that directly on code.
If not, you can flip in middle of a frame, and show up the upper half frame from backbuffer and the lower half from the other buffer. Also is desirable that you can configure the frame skip. If you can draw a entire buffer in 1/50 second, perfect (flip every buffer). But normally, and specially on smoth scroll games, you
need 2/50 or 3/50 seconds (25fps or 16.7fps).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)