Art Posted March 12 Share Posted March 12 (edited) Edited March 26 by Art 2 Quote Link to comment Share on other sites More sharing options...
42bs Posted March 12 Share Posted March 12 At first: Do not use C! 🙂 (I love assembly and always feel sad if the Lynx power is waste with handling C stack). There is no need for bit-fiddling if you make each character a sprite of its own. But there are different approaches for text rendering. Both have there pro's and con's. BLL for example allows to draw the text into a sprite data block and then draw it with a single SCB. This is good for "print once draw many times" or if you like the move the text around. Fast changing text like score it likely better done with separate sprites. But if I did not mention it: Use Assembly! 1 Quote Link to comment Share on other sites More sharing options...
Art Posted March 12 Author Share Posted March 12 (edited) Edited March 26 by Art Quote Link to comment Share on other sites More sharing options...
+karri Posted March 12 Share Posted March 12 The tgi is really not used for text anymore. I am usually using a smaller version without any text functions. mini-tgi.s The way to contribute would be to write a new display function to replace tgi. Something more optimized that would only include the used functions in the binary. Quote Link to comment Share on other sites More sharing options...
42bs Posted March 12 Share Posted March 12 (edited) 15 minutes ago, karri said: The tgi is really not used for text anymore. I am usually using a smaller version without any text functions. mini-tgi.s 18.32 kB · 0 downloads The way to contribute would be to write a new display function to replace tgi. Something more optimized that would only include the used functions in the binary. draw_sprite: ; Draw it in render buffer sta SCBNEXTL stx SCBNEXTH lda DRAWPAGEL ldx DRAWPAGEH sta VIDBASL stx VIDBASH lda #1 sta SPRGO stz SDONEACK @L0: stz CPUSLEEP bit SPRSYS bne @L0 stz SDONEACK lda #TGI_ERR_OK sta ERROR rts Some more place can be tweaked. Edited March 12 by 42bs 1 Quote Link to comment Share on other sites More sharing options...
Art Posted March 25 Author Share Posted March 25 (edited) .. Edited March 26 by Art Quote Link to comment Share on other sites More sharing options...
42bs Posted March 26 Share Posted March 26 Just read them directly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.