Skip to content

Screen Scale temporary variable? #9

@KTRosenberg

Description

@KTRosenberg

I see you plan to make the screen size a variable, and maybe support screen resizing:

#define SCREEN_SCALE 2 //TODO: make screen scale a variable

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions