(03-27-2023, 06:24 PM)RokCoder Wrote: If all graphics are scaled up by the same aspect ratio then it would be reasonably straight forward. Possibly as easy as changing the TILE_WIDTH and TILE_HEIGHT variables from 8x8 to whatever the new equivalent tile size would be. I haven't tested this but it would certainly do most of the grunt work for you. The premise of the setup is that it's a game based on 8x8 tiles at present - the landscape, the aliens, the player, etc. If your upscaled graphics are four times the size, you'd probably get away with setting the tile size to 32x32 for example. If your new graphics aren't all scaled up from the originals by the same amount then I think it would affect the dynamics of the game. You'd certainly have to change all the initialisation routines in the sprite loader to handle the new sizes, collision boxes, etc.
One part that you might end up having to do by hand is the actual landscape tiles. Or you could just scale the exiting ones up by whatever ratio you're using. They're going to look very blocky compared to everything else though.
If you run into any problems then I'm happy to help. Reach out either here or by DM.
As an afterthought, why not scale the sprite sheet up by 4x (or whatever) and replace the graphics in there with the new ones that way. If you change the TILE_* constants as well then you might have little else that you need to do!
OK, I updated the sprite sheet, the tiles are now 128x128 64x64 (the ship is 256x128).
I didn't get around to the landscape tiles, for now I left the original while it's WIP.
I made some adjustments in the code for the screen + tile sizes and tile sheet file name.
It runs, but the screen is all funky - you can kind of see the ship moving and the bullets / bombs, but it's all garbled, and no landscape.
Not sure what I'm missing, but I'm out of time for now.
UPDATE: see newer post for latest
Everything is in the attached archive:
- modified program is "scramble-hires.bas"
- search code for "HI-RES" for the updated lines
- new sprite sheet is "assets/sprite-sheet-hires.png"
- editable paint.net sprite sheet is "sprite-sheet.hires.pdn"
How do you like the sprite sheet?
I hope someone gets a kick out of this - it's been fun playing with the graphics!