How to Program an NES game in C

My website was completely redesigned, Sept 2018.

And all the code is now on github…

https://github.com/nesdoug

 

Introduction

What you need

How cc65 works

01. Our first program

02. What’s a v-blank?

03. VRAM buffer

04. Full Background

05. Palettes

06. Sprites

07. Controllers (and sprite collisions)

08. BG collisions

09. Scrolling

10. Game loop

11. Metatiles

12. Scrolling right

13. Scrolling up

14. Platformer

15. Music

16. Sound effects

17. DPCM Sound

18. Sprite Zero

19. More things, mappers

20. Platformer Again

21. Finished Platformer

 

Appendix, neslib library

Appendix, nesdoug library

Downloads, free games

Links and Misc.

 

A List of NES Hombrew Games

NES Graphics (best looking NES games)

 

Some pdf files of the old tutorial

Backup / PDF archive

ASM Basics (6502)

 

.

Advertisements

13 thoughts on “How to Program an NES game in C

    1. If you click on “Neslib Example Code” and download the link, there is a version that works with the newest cc65 (as of Nov 2017). It’s been slightly edited by me.

      Also, you can go to Mojon Twin’s website, and download the source code to one of their recent games, they always use a version of neslib… http://www.mojontwins.com

      Like

    1. I’m going to allow it, but there is a high likelihood that I will make major changes to my website, which may not be in the Russian translation that I’m not involved with.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s