Screen Scale temporary variable?
I see you plan to make the screen size a variable, and maybe support screen resizing: https://github.com/cuckydev/SoniCPort/blob/8976e22aa20ace8cb06cef15dba654a393e05053/src/Constants.h#L4
In the meantime, how would you feel about declaring SCREEN_SCALE as an extern in Constants.h, setting it to 2 by default in the renderer implementation file, and putting something simple like this in main (at least until more things need to be added):
if (argc >= 2)
{
int scale = atoi(argv[1]);
SCREEN_SCALE = (scale > 1) ? scale : 2;
}
I tried it and it seems to work with no problem.
This is probably about how I'd have implemented this if I ever got around to it. Though I haven't been actively maintaining this repo in a long time.
Ah it's too bad that things have slowed down. I'm a really big fan of this project and would've liked to see more levels, or maybe even the special stage! I was able to load a special stage by modifying the code, but I realized that it's incomplete except for the level collision.
Anyway, do you accept pull requests?
On another note, I think it would be super useful to have a Sonic player controller of sorts. I also like the style of collision detection. I wonder how that could be extracted for learning how to make a game character with pseudo/physics momentum. This repo is very close to the ASM in some sense in terms of how all the data are named and manipulated. Would you have any pointers on what to look for?
Thanks.