Search the Community
Showing results for tags 'scanline counting'.
Found 1 result
Hello All; I am a new developer to the 2600 programming scene and I haven’t really got any previous assembly programming experience especially in 6502. I have been working on a game in which the player is a spaceship that can move freely around the playing field and there will be enemies and other things coming down the screen that the ship has to blow up, dodge collect ect.. The code I have uploaded is my best effort at putting together a framework to create such a game. However I have stumbled into several issues I feel I need advice from a more seasoned developer. The first issue with the drawing kernel is that I don’t keep track of the player line correctly when jumping to another mini kernel to draw an enemy as well as the player. I was wondering if anyone could look at this code and advise me how the code could be modified to fix this issue. The second issue is that I am struggling to keep a constant scanline count when I add more complex routines after drawing the frame. This is because of loops that can take a varying number of cycles to complete depending on the items on screen and the more branching gets introduced. I have an example of this in my “game field processing routine” And finally to progress the framework further I need to be able to horizontally position the enemy sprites independently. I haven’t even tried this as I feel I need advice on how to do this as the positioning routines I know of all require you to consume two whole scanlines to enable the fine positioning. There is a whole raft of other things I want to add like animation of sprites but I want to get a solid foundation before I progress the game further. Any help would be greatly appreciated! src.zip kernel.bin