JeLLyNinjas / TerminalFighter

5 stars 2 forks source link

Bseto/1 1gamespace #120

Closed bseto closed 4 years ago

bseto commented 6 years ago

1-1 Gamespace Main Refactor Branch

This Branch will be used as the main refactor branch. This branch changed Graphics Handler and Draw Request to support 1-1 gamespace.

Make objects use 1-1

Collision handler has to accept 1-1

Text in 1-1 Gamespace needs a helper function/object

Notes on the Jn_Ttf (the helper function) Jn_Ttf right now works off of SDL_TTF's output text, and scaling the original SDL_Surface to a JN_Rect making use of ratios based off it's height.

However, apparently, not all text surfaces have the same height even though they are rendered with the same "font size". Example: THIS_TEXT is larger than this_text. But because I'm working with ratios (which make the end result the same height), the sizes of the output text is slightly wonky. I'll need to look into a fix on this.

http://www.sdltutorials.com/sdl-ttf might need to think of font sizes in terms of %'s

enochtsang commented 6 years ago

Holy fk

ctlai95 commented 6 years ago

damn dude

bseto commented 6 years ago

@ctlai95 @enochtsang. Any of you want to implement: https://gamedevelopment.tutsplus.com/tutorials/collision-detection-using-the-separating-axis-theorem--gamedev-169? :D