My first nes game! (DemonDistrict)

A place where you can keep others updated about your NES-related projects through screenshots, videos or information in general.

Moderator: Moderators

nocash
Posts: 1228
Joined: Fri Feb 24, 2012 12:09 pm
Contact:

Re: My first nes game! (DemonDistrict)

Post by nocash » Mon Nov 18, 2019 11:42 am

klonoa wrote:What should I do with the A,X,Y registers? and why?
Where do I start there? I hope you can follow this...
You have a NMI handler (the function that gets called automatically on vblank) in your program. And that function changes A,X,Y (and it doesn't restore the old values when it returns).

In your program that can be a problem for the code between address C390h (enable NMI) and C3B0h (endless loop). The opcodes between those addresses use the A register, but (if you are unlucky) the NMI handler could change the value in A.

"Push/pop" or "push/pull" were meant to mean the "PHA and PLA" instructions (for saving/restoring A on stack). You need that in the NMI handler, too. Otherwise unexpected things could happen.

Well, and saving X and Y is a bit more difficult... but your code is already doing that in some places... so I guess you know how to do that : )
homepage - patreon - you can think of a bit as a bottle that is either half full or half empty

calima
Posts: 1186
Joined: Tue Oct 06, 2015 10:16 am

Re: My first nes game! (DemonDistrict)

Post by calima » Mon Nov 18, 2019 11:48 am

At the start of the game, with the attached screen showing, I was pressing buttons to get to the next part since it was so slow. I pressed start. When the real game began, it instantly opened the menu.

Unless I had perfect timing, the start-button press happened in this mode, not the in-game mode. For that to open up the menu likely means you didn't clear the button state between the modes.
Attachments
pic.png
pic.png (1.77 KiB) Viewed 8090 times

nocash
Posts: 1228
Joined: Fri Feb 24, 2012 12:09 pm
Contact:

Re: My first nes game! (DemonDistrict)

Post by nocash » Mon Nov 18, 2019 1:02 pm

klonoa wrote:Still Wanna make a small cutscene where she goes on the bike and jumps the gap at the end of the road.
Ah, that is a bike... I had mistaken it as a ballerina in a red dresss who were telling me that the demonish flying-saucer had run out of petrol and that she doesn't have a key for it anyways... which seemed to make sense, too ; )
homepage - patreon - you can think of a bit as a bottle that is either half full or half empty

klonoa
Posts: 72
Joined: Mon Nov 21, 2011 3:53 pm

Re: My first nes game! (DemonDistrict)

Post by klonoa » Tue Nov 19, 2019 4:19 am

nocash wrote:
klonoa wrote:What should I do with the A,X,Y registers? and why?
Where do I start there? I hope you can follow this...
You have a NMI handler (the function that gets called automatically on vblank) in your program. And that function changes A,X,Y (and it doesn't restore the old values when it returns).

In your program that can be a problem for the code between address C390h (enable NMI) and C3B0h (endless loop). The opcodes between those addresses use the A register, but (if you are unlucky) the NMI handler could change the value in A.

"Push/pop" or "push/pull" were meant to mean the "PHA and PLA" instructions (for saving/restoring A on stack). You need that in the NMI handler, too. Otherwise unexpected things could happen.

Well, and saving X and Y is a bit more difficult... but your code is already doing that in some places... so I guess you know how to do that : )
Oh like that, but that's only a concern when it is actually doing something in the main loop right?

klonoa
Posts: 72
Joined: Mon Nov 21, 2011 3:53 pm

Re: My first nes game! (DemonDistrict)

Post by klonoa » Tue Nov 19, 2019 4:20 am

calima wrote:At the start of the game, with the attached screen showing, I was pressing buttons to get to the next part since it was so slow. I pressed start. When the real game began, it instantly opened the menu.

Unless I had perfect timing, the start-button press happened in this mode, not the in-game mode. For that to open up the menu likely means you didn't clear the button state between the modes.
Ahh like that.
Thanks, I understand now.

klonoa
Posts: 72
Joined: Mon Nov 21, 2011 3:53 pm

Re: My first nes game! (DemonDistrict)

Post by klonoa » Tue Nov 19, 2019 4:21 am

nocash wrote:
klonoa wrote:Still Wanna make a small cutscene where she goes on the bike and jumps the gap at the end of the road.
Ah, that is a bike... I had mistaken it as a ballerina in a red dresss who were telling me that the demonish flying-saucer had run out of petrol and that she doesn't have a key for it anyways... which seemed to make sense, too ; )
Haha guess that's something to work on. :lol:

User avatar
gauauu
Posts: 701
Joined: Sat Jan 09, 2016 9:21 pm
Location: Central Illinois, USA
Contact:

Re: My first nes game! (DemonDistrict)

Post by gauauu » Tue Nov 19, 2019 8:08 am

Great job, thanks for sharing.

I had trouble in a few spots lining up in exactly the right place to trigger a door, but other than that, everything worked quite smoothly.

klonoa
Posts: 72
Joined: Mon Nov 21, 2011 3:53 pm

Re: My first nes game! (DemonDistrict)

Post by klonoa » Tue Nov 19, 2019 1:08 pm

gauauu wrote:Great job, thanks for sharing.

I had trouble in a few spots lining up in exactly the right place to trigger a door, but other than that, everything worked quite smoothly.
Thanks!

Lemme guess, at the gas station? :lol:

drludos
Posts: 54
Joined: Mon Dec 11, 2017 4:01 pm

Re: My first nes game! (DemonDistrict)

Post by drludos » Sat Nov 23, 2019 6:11 pm

I managed to survive too!
Congrats on the game, it's a really cool adventure game. I like the overall "end of the world" mood to it, and the puzzle were logical but still a bit challenging. The exploration part was well balanced too IMHO.

An ending cutscene or more details about what happen next in text form would be cool - what happen after we escape the city? Honestly, you do have laid the background to make a larger game with a more detailed story: what kind of "demons" were released? Why? and can the player "save the world" and send the demons back to where they came from?
Maybe you should do a "chapter 2" as a sequel ;).

Out of curiosity, what did you use to make it? (ASM, C, NesMaker, etc.?)
Download ROMs of my games: https://drludos.itch.io/
Support my work and get access to beta and prototypes: https://www.patreon.com/drludos

klonoa
Posts: 72
Joined: Mon Nov 21, 2011 3:53 pm

Re: My first nes game! (DemonDistrict)

Post by klonoa » Sun Nov 24, 2019 10:49 am

drludos wrote:
Sat Nov 23, 2019 6:11 pm
I managed to survive too!
Congrats on the game, it's a really cool adventure game. I like the overall "end of the world" mood to it, and the puzzle were logical but still a bit challenging. The exploration part was well balanced too IMHO.

An ending cutscene or more details about what happen next in text form would be cool - what happen after we escape the city? Honestly, you do have laid the background to make a larger game with a more detailed story: what kind of "demons" were released? Why? and can the player "save the world" and send the demons back to where they came from?
Maybe you should do a "chapter 2" as a sequel ;).

Out of curiosity, what did you use to make it? (ASM, C, NesMaker, etc.?)
Thank you so much! :)

I still want to make one or two levels that will slowly explain everything.
Think of the first resident evil where you start in a mansion with zombies and later find out why there are zombies.

I made it in ASM.

User avatar
Roni
Posts: 114
Joined: Fri Sep 26, 2008 7:55 pm
Location: Montreal
Contact:

Re: My first nes game! (DemonDistrict)

Post by Roni » Thu Feb 06, 2020 7:49 pm

I just discovered this game and I'm blown away. as soon as I began playing I was immersed in it and felt the labor and heart that went into it, especially the music. I get the impression that you spent a lot of time playtesting and perfecting it.

User avatar
Controllerhead
Posts: 147
Joined: Tue Nov 13, 2018 4:58 am
Location: $4016
Contact:

Re: My first nes game! (DemonDistrict)

Post by Controllerhead » Thu Feb 27, 2020 10:55 pm

I Survived!

Reallllly good theme / environment. Music fits. Graphics are cool. Gameplay works for what it is, and seems polished. If it were longer, i certainly would have kept playing. Thanks for a little taste of LucasArts! I hope there is a next project, or even an extension to this one, either way i'm excited. Keep it up!
Image

User avatar
NeverCameBack
Posts: 41
Joined: Mon Feb 24, 2020 12:22 am

Re: My first nes game! (DemonDistrict)

Post by NeverCameBack » Sat Mar 07, 2020 11:18 pm

Amazing game! The music is awesome.. I hope my first game is even 10% as good as this - myself am just getting through half the NerdyNights tutorials. What exactly are you in school for that this would be your project?

User avatar
qbradq
Posts: 951
Joined: Wed Oct 15, 2008 11:50 am

Re: My first nes game! (DemonDistrict)

Post by qbradq » Fri Apr 24, 2020 9:49 pm

I survived but I feel like there's things I'm missing. Great work and thanks for sharing!

klonoa
Posts: 72
Joined: Mon Nov 21, 2011 3:53 pm

Re: My first nes game! (DemonDistrict)

Post by klonoa » Wed Jun 03, 2020 9:10 am

Thanks for all the love! :beer: :D

Post Reply