Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igwgames/nes-starter-kit
A Beginner's Guide and toolkit for NES game creation.
https://github.com/igwgames/nes-starter-kit
Last synced: about 1 month ago
JSON representation
A Beginner's Guide and toolkit for NES game creation.
- Host: GitHub
- URL: https://github.com/igwgames/nes-starter-kit
- Owner: igwgames
- License: mit
- Created: 2018-04-22T17:55:57.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-27T04:35:08.000Z (11 months ago)
- Last Synced: 2024-10-15T12:03:02.788Z (about 2 months ago)
- Language: C
- Size: 5.06 MB
- Stars: 217
- Watchers: 14
- Forks: 24
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-game-console-development - [EN: Github
README
# NES Starter Kit
A Beginner's Guide and toolkit for NES game creation.
[](https://nes-starter-kit.nes.science/)
**Current game version:** 2.0.0
**Minimum create-nes-game version:** 1.0.10
[Click here](https://nes-starter-kit.nes.science/) to try the example game!
[Download the example rom](https://s3.amazonaws.com/nes-starter-kit/main/starter.latest.nes)
_Looking at this in Github's code editor? Check out the [documentation site](https://nes-starter-kit.nes.science/)!_
## What is this?
It's a fully-fledged starter kit for NES games. It is the source to a top-down adventure game, alongside all of the
tools needed to change it. It also comes with a guide to changing everything about it, which could also be titled
"The dummy's guide to creating an NES game".The idea is, copy this code using `create-nes-game`, run the game, then tweak it and make
your own! With the right hardware, you can even play your game on your own NES.The only thing this is *not* is an introduction to programming - if you have never programmed anything before, I
suggest finding a tutorial online for C or C++, and getting a couple really basic programs working. (At the
very least, find out what a "hello world" program is, and write+run one successfully.)One options is the [Learn C Tutorial](http://www.learn-c.org/) - it lets you write and run your code in the
browser, so you don't need to set anything up!## 2.0 BREAKING CHANGE
Version 2.0 is a major update to `nes-starter-kit`. The entire build process has been replaced. This
should make starting new projects significantly easier, but the new build process makes it very hard to upgrade
existing projects. The original tools will continue to be supported indefinitely. You can use tag `v1.0.8`
or the `master` branch.If you are interested in converting to 2.0, please reach out! It's possible, but the way to do it isn't
straightforward, and will likely require a bit of collaboration.## What's new in 2.0?
Version 2.0 brings a number of long-needed changes, including greatly simplifying getting started.
Here's a summary of major changes:- Build moved away from cygwin and makefiles to [create-nes-game](https://create-nes-game.nes.science) - a one-stop-shop for building NES games
- Official linux support for build tools (including x86 and arm64! Wanna build on a newer raspberry pi?)
- New games can be created automatically from create-nes-game's interactive guide
- Full support for debugging in Mesen, with source code in both C and assembly language
- Collision bug with doors finally fixed! They're now solid, and you won't get stuck in them.If you tried to set this up before and got impatient, now is a good time to give it another try!
# Table of Contents
This guide is broken into 4 main chapters:
1. Getting Started
2. Making it Your Own
3. Adding new features
4. Adding Polish
5. Advanced topics.The suggested approach is to follow along with all of part 1 in order to get yourself familiar with
the console/tools/etc. After that, feel free to jump around to whatever chapters interest you.The second part mainly focuses on core things you will want to change to make your own game. Art, music
gameplay and more!The third part focuses on how you can extend the game further. Want to give the main character a weapon?
Add some new features to the start menu? Do something else unique? This has guides and pointers on how to
do it!The fourth part focuses on more cosmetic things - don't be afraid to get into these chapters early;
sometimes adding a little bit of polish can really help encourage you to continue working on the game.The final part deals with more advanced topics - for most simple games, you won't need to read
anything in this section. It gets into depth on details of how the library itself works, as well as the
system, and how the rom is organized. That said, these topics are here if you need them, or for that
matter if they interest you.### Part 1: Getting started
1. [Setting up your tools](./guide/section_1/setting_up_your_tools.md)
2. [Building your game](./guide/section_1/building_your_game.md)
3. [Playing your game](./guide/section_1/playing_your_game.md)
4. [Making Your first change](./guide/section_1/your_first_change.md)
5. [Things to know about the NES and C](./guide/section_1/nes_miscellany.md)
6. [FAQ](./guide/section_1/faq.md)### Part 2: Making it your Own
10. [Changing the world](./guide/section_2/changing_the_world.md)
11. [Adding new map tiles](./guide/section_2/adding_new_map_tiles.md)
12. [Changing sprite art](./guide/section_2/changing_sprite_art.md)
13. [Changing the HUD (top bar)](./guide/section_2/changing_the_hud.md)
14. [Adding collectible sprites](./guide/section_2/collectible_sprites.md)
15. [Adding new enemies](./guide/section_2/adding_enemies.md)
16. [Adding new talking NPCs](./guide/section_2/adding_npc_text.md)
16. [Adding/changing music](./guide/section_2/changing_music.md)
17. [Adding/changing sound effects](./guide/section_2/changing_sfx.md)
18. [Changing movement](./guide/section_2/changing_movement.md)### Part 3: Adding new features
20. [Putting your code in the right place: a brief introduction to prg banking](./guide/section_3/putting_your_code_in_the_right_place.md)
21. [Giving your main character a sword](./guide/section_3/giving_the_player_a_sword.md)
22. [Adding more features to the pause menu](./guide/section_3/adding_to_pause_menu.md)
23. [Adding a second map](./guide/section_3/adding_a_second_map.md)
24. [Saving the Game](./guide/section_3/saving_the_game.md)
25. [Adding objects that attract or repel the player](./guide/section_3/attract_repel.md)
26. [Adding an enemy that mimics player behavior](./guide/section_3/mimic.md)
27. [Adding a new sprite size](./guide/section_3/adding_new_sprite_sizes.md)### Part 4: Polish and more
30. [Ways to improve performance](./guide/section_4/performance.md)
31. [Making a full title screen](./guide/section_4/title_screen.md)
32. [Animating tiles](./guide/section_4/animated_tiles.md)
33. [Playing your game on a real NES](./guide/section_4/real_nes.md)
34. [Debugging with Mesen](./guide/section_4/debugger.md)### Part 5: Advanced Topics
_Things in this section are somewhat complicated, and go into how the engine works. You shouldn't
need these things for most games, but if you do, this is a place to learn!_40. [Understanding and tweaking the build tools](./guide/section_5/build_tools.md)
41. [Dealing with limited ROM space](./guide/section_5/limited_space.md)
42. [Resizing your rom](./guide/section_5/rom_size.md)
43. [ROM Data Map](./guide/section_5/rom_map.md)
44. [Expanding available graphics using CHR banking](./guide/section_5/chr_banking.md)
45. [Getting finer control over graphics with chr ram](./guide/section_5/chr_ram.md)
46. [Writing Functions in Assembly](./guide/section_5/writing_assembly_functions.md)
47. [Automatic builds with GH Actions](./guide/section_5/automatic_builds.md)
48. [Switching to unrom 512 for advanced features](./guide/section_5/unrom_512.md)# Credits
## Tools
[cc65](https://www.cc65.org/) By [Ullrich von Bassewitz](https://www.von-bassewitz.de/uz/)
[NESLib](http://shiru.untergrund.net/code.shtml) by [Shiru](http://shiru.untergrund.net/)
[create-nes-game](https://create-nes-game.nes.science)
[NES Screen Tool](http://shiru.untergrund.net/software.shtml) by [Shiru](https://shiru.untergrund.net/)
[NEXXT](https://frankengraphics.itch.io/nexxt) by [FrankenGraphics](https://frankengraphics.wordpress.com/)
[NES Space Checker (nessc)](http://shiru.untergrund.net/software.shtml) by [Shiru](http://shiru.untergrund.net/)
[Famitracker](http://famitracker.com/) by jsr
[FCEUX](http://www.fceux.com/web/home.html)
[Tiled](http://www.mapeditor.org/) by [Thorbjørn Lindeijer](https://github.com/bjorn)
## Art/Resources
[Early 90's Arcade Pixel Art](https://opengameart.org/content/early-80s-arcade-pixel-art-dungeonsslimes-walls-power-ups-etc)
by [Refresh Games](https://refreshgames.co.uk/)[Who's Cuter Font](https://forums.nesdev.com/viewtopic.php?f=21&t=10284&start=0) by [Damian Yerrick (Tepples)](http://pineight.com)
[8-Bit Victory Loop](https://opengameart.org/content/8-bit-victory-loop) by [Wolfgang](https://opengameart.org/users/wolfgang)
[8-Bit Forest Theme](https://opengameart.org/content/8-bit-forest-theme) by [Wolfgang](https://opengameart.org/users/wolfgang)
**Please credit these wonderful people in your own creations, if you don't replace their work!**
Technically all of the art and music is licensed as public domain, (CC0) but it'd be really nice to
give them credit.## Related projects
There are a few other projects worth knowing about that might be a better fit for your task.
First off, there's the upcoming NESMaker project. This has not yet been released, but it is a full-blown
gui for building games. Check out the [NESMaker website](http://www.thenew8bitheroes.com/)! This project is
a good fit if you don't quite want to get your hands dirty with code. You may be able to edit the resulting
code, but it will likely be in assembly language, and a little harder to pick up if that is new to you.If coding really isn't your thing and you like puzzle games, I have a puzzle game maker available:
[Retro Puzzle Maker](https://puzzle.nes.science). It's very user-friendly, and it
can actually be extended with many of the same tools if you want to.Another option, the Mojon Twins' MK1_NES modular game engine can be found here:
[MK1-NES](https://github.com/mojontwins/MK1_NES).Lastly, if you want something more barebones, I also have nes-c-bootstrap - it is a simpler "Hello World"
project that you can use for more of a blank page. That project is elsewhere
[on Github](https://gh.nes.science/nes-c-boilerplate).Be aware that nes-c-bootstrap has not seen regular maintenance, and may be out of date.
## Feature Comparison
| Feature Name | nes-starter-kit | NESMaker | NES Puzzle Maker | MK1_NES |
|------------------------|--------------------|--------------------|--------------------|--------------------|
| Language | C | 6502 Assembly | C | C |
| Gui Editing | No | Yes | Yes | No |
| Game Style | Adventure only | Many | Puzzle only | Platform |
| Graphics editor | external - nexxt | Built-in | Built-in | external - nexxt |
| Map Editor | external -tiled | Built-in | Built-in | external - mappy |
| Music Editor | ext - famitracker | Built-in | ext - famitracker | ext - famitracker |
| Sound Editor | ext - famitracker | Built-in | Not available | ext - famitracker |
| Works on console | Yes | Yes | Yes | Yes |
| Source available | Yes, you write it! | Yes | Yes | Yes |
| Source easily editable | Yes, built for it | Limited to Scripts | No | Yes |
| Code Editor available | Yes, VS Code | No | Not specialized | No |
| Programming required | Yes | No | No | Yes |# Contributing
I don't have any set rules around contributions right now, but I absolutely welcome them! Thank you for even considering
this.If you've got something you'd like to add, just send over a pull request, and I'm sure we can get something together.
Just try to follow the existing code style as best you can.If you run into issues or have feature suggestions, please submit them through the
[Github "Issues" tab](https://gh.nes.science/nes-starter-kit/issues).