According to the C64 manual you can print a character using "POKE 1024, 1" where 1024 is the start address (C64-BASIC). The screen is 40*25 which means that 2024 is the position for the end of the screen. This gives the following formula for writing a letter in any row and column from the beginning (1024, top-left of the screen): 1024 + x + 40 * y where x is the row and y is the column. Now, most of the time when you are creating a game like this, you'd like to start from the bottom left point (which should be the address 1984). Now, is there a 'formula' to actually make X and Y work from this point?
Example: Let's say you have a character or something moving from left and it needs to jump, so we need to do some physics calculations and change the X and Y values and write to the screen. If X is updated with 3 and Y with 4, these values needs to be calculated so it will be correct on the screen (from bottom left of the screen as starting point).
I hope I've explained well and this is not all too fuzzy. Otherwise, just ask.
Thanks in advance for any help!