Good day everyone.
After A year of school I thought I'd give programming for the nes another shot.
So far it's been going very good. Got some basic moving sprites and backgrounds.
I want to make a simple horizontal shooter but i'm kinda stuck on the following:
Say I spawn an enemy ship, I set some values using the .rs directive in nesasm to reserve some space in ram to hold it's height and width etc.
Now say that ship gets hit by a bullet and gets destroyed, how do I free up that memory that I have reserved for that ship?
It might be obvious that I'm coming from and object-oriented world and I'm basically missing my c++ new and delete statements.
I have the feeling i'm thinking all wrong, any advice for this noob?
After A year of school I thought I'd give programming for the nes another shot.
So far it's been going very good. Got some basic moving sprites and backgrounds.
I want to make a simple horizontal shooter but i'm kinda stuck on the following:
Say I spawn an enemy ship, I set some values using the .rs directive in nesasm to reserve some space in ram to hold it's height and width etc.
Now say that ship gets hit by a bullet and gets destroyed, how do I free up that memory that I have reserved for that ship?
It might be obvious that I'm coming from and object-oriented world and I'm basically missing my c++ new and delete statements.
I have the feeling i'm thinking all wrong, any advice for this noob?