A brand new game
for Windows, HTML5, 3DS Homebrew, iPhone, Android TV and more,
every week,
unless exhausted!
About Games Pixelart Music Poetry Home Patreon Mailbag Scores JNKPlat Levels
Scaling Fix
  1st November, 2017

I finally figured out what was up with my scaling.

It was all down to the fact that Spritesheets get automatically given an 8-pixel gap around all sprites. The maths that resulted from that slight tweak were insane!!!


So, now that that's fixed, I've gone on to add basic primitive ovals, as well as Quads.
I'm now having to rethink how to do Lines, since apparently the OpenGL Line Width command isn't universal. I'm instead going to have to work out angles and render a quad over the area that line would be, given the current thickness.
Bit longwinded, if I'm honest, and really these primitive shapes/objects really aren't all that efficient!
I expected "Draw giant image on the screen" to be much more intensive than "Try to figure out the shape of a rectangle if the rectangle's supposed to be a thick and chunky line on the screen"


Anyhoo, most of the primitives are now in place, and I'll probably never use them. Ho hum..

I'll figure out the lines, tomorrow. Time for a rest, methinks!

Views 1411, Upvotes 13
2018 Framework
Site credits : Jayenkai, one crazy fool who has far too much time on his hands.
(c) Jayenkai 2017 and onwards.
Blog - Scaling Fix - AGameAWeek