Homebrew NDS Drawing Mechanic

  • Thread starter Thread starter bus
  • Start date Start date
  • Views Views 640
  • Replies Replies 1

bus

New Member
Newbie
Joined
Nov 25, 2024
Messages
1
Reaction score
0
Trophies
0
Age
27
XP
68
Country
Germany
Hi guys, I am pretty new to nds development and currently working on a dating sim with drawing mechanics. I was using mainly nflib for now because it works great for the sprites and backgrounds, but now I am trying to make a simple drawing mechanic work and I cant really find a way to do it with nightfox, other than using the NF_Draw16bitsImage and not refreshing the buffer. But then I can not use the Scroll BG which would be crucial for this part of the minigame. My question would be now if theres a better library to do the drawing part and that is maybe even compatible with the background and sprite drawing of nflib?I was also trying to use libnds to draw raw pixels but then I cant use nightfox.
 
Not a NightFox user, I've quickly scanned the library's code just now. Since you're saying that for whatever reason you can't achieve direct pixel access with bitmaps and nflib the way you want, have you considered tiled backgrounds? You could cover the screen with individual tiles located in contiguous memory and use them as a canvas surface. Knowing the touch position you can find the hovered tile coordinates and then the pixel that should be drawn inside it with quite simple arithmetics (in NF, maybe by dereferencing NF_GetTileMapAddress()?). This way, you should also be able to keep the scrollability too.
 

Site & Scene News

Popular threads in this forum