Jump to content


Creating a C64 emulator in GameMaker - Part 6

  • Please log in to reply
3 replies to this topic

#1 Mike.Dailly


    Evil YoYo Games Employee

  • Administrators
  • 5277 posts
  • Version:GM:Studio

Posted 06 February 2015 - 10:35 AM




So, now that we have C64 sprites being rendered, how about characters? Well like sprites they are made from blocks of memory on even boundaries, all be it a lot smaller. So we can do the same trick with invalidating and caching on demand 8x8 surfaces. So how many 8x8s can a C64 hold? Well...8,192. That's a fair old step up from the 1024 that Sprites used. So can we fit 8,192 characters on a surface? well, as it turns out they fit nicely on 1024x512 surface, which isn't too large at all these days.

So, just like sprites, when the CPU "pokes" into memory, we take the address, divide it by 8 (a single C64 character takes 8 bytes), then flag that block as invalid. Once this is done, we....

  • 3

#2 conbeef


    GMC Member

  • GMC Member
  • 411 posts
  • Version:GM:Studio

Posted 06 February 2015 - 10:57 PM

Sir you deserve a metal, That is amazing!!!!

  • 0

If I helped you hit that up arrow(rep_up.png)

#3 BitoSSEES-H.V 1


    GMC Member

  • New Member
  • 18 posts
  • Version:GM8.1

Posted 08 February 2015 - 05:10 PM


I have my game  But I want to publish afterwards

  • 0

#4 cookieboy


    Seabass (The Human)

  • GMC Member
  • 747 posts
  • Version:GM:Studio

Posted 09 February 2015 - 12:33 AM

Great work Mike. Always enjoy reading through these posts.

  • 0


Support a fellow GMC member? <3