Ahh, graphics code, how I despise thee.
I've encountered an issue that, because I don't really "get" graphics code and barely understand what I AM doing, I can't seem to trace, let alone resolve. I'm essentially "faking" an old-school graphics setup using what little PIXI-related methods I've been able to figure out to any usable degree. Mostly to learn some of it, but I'm also hoping to make something interesting with it if I can get it working.
I have a pixel-drawing routine as the base for everything that gets drawn, using a filled rectangle. I do this because the resolution is variable, so pixels can be different sizes to fill the screen as needed. That works fine, to a point. Every other drawing routine will call the draw pixel function once it resolves a coordinate and a color for the next pixel. The problem is that after awhile it seems to just stop drawing to the screen. Even tested and functional functions stop drawing after that point. The problem was noticed when I attempt to blanket the screen with a single color. Like old graphics, it does this by drawing line by line, and each line pixel by pixel. Not the most efficient, but I'm going for emulating the old-school style here.
But after a certain number of lines, it stops partway through a line, and no other draw functions will draw anything to the screen. The code still runs and resolves, just nothing shows up on the screen anymore. The last pixel it draws isn't even a full rectangle, instead it draws HALF the rectangle as a triangle.
The lines also aren't being fully drawn to the right side of the screen, but I think that's an issue with my code and not completely related to THIS problem.
So does anyone familiar with PIXI have an insight for me? Is there some sort of drawing limit that I'm unaware of and am hitting? That's my current best guess, because the stopping point in the last drawn line differs based on the resolution I use for the whole thing.
Thanks in advance!
I've encountered an issue that, because I don't really "get" graphics code and barely understand what I AM doing, I can't seem to trace, let alone resolve. I'm essentially "faking" an old-school graphics setup using what little PIXI-related methods I've been able to figure out to any usable degree. Mostly to learn some of it, but I'm also hoping to make something interesting with it if I can get it working.
I have a pixel-drawing routine as the base for everything that gets drawn, using a filled rectangle. I do this because the resolution is variable, so pixels can be different sizes to fill the screen as needed. That works fine, to a point. Every other drawing routine will call the draw pixel function once it resolves a coordinate and a color for the next pixel. The problem is that after awhile it seems to just stop drawing to the screen. Even tested and functional functions stop drawing after that point. The problem was noticed when I attempt to blanket the screen with a single color. Like old graphics, it does this by drawing line by line, and each line pixel by pixel. Not the most efficient, but I'm going for emulating the old-school style here.
But after a certain number of lines, it stops partway through a line, and no other draw functions will draw anything to the screen. The code still runs and resolves, just nothing shows up on the screen anymore. The last pixel it draws isn't even a full rectangle, instead it draws HALF the rectangle as a triangle.
The lines also aren't being fully drawn to the right side of the screen, but I think that's an issue with my code and not completely related to THIS problem.
So does anyone familiar with PIXI have an insight for me? Is there some sort of drawing limit that I'm unaware of and am hitting? That's my current best guess, because the stopping point in the last drawn line differs based on the resolution I use for the whole thing.
Thanks in advance!