Skip to main content

Questions tagged [fixed-point]

Fixed point stores numbers as a multiple of a fixed unit size. An example is how dollars are stored as cents or hundredths of a dollar. There is a fixed number (2 in this case) of fractional digits. This concept can be applied to computing to store numbers where a fixed number of bits represent fractional digits. This tag is appropriate for questions that pertain to the use of fixed point numbers in game development.

Filter by
Sorted by
Tagged with
3 votes
6 answers
2k views

I am trying to rotate a vector made of two signed 16-bit coordinates (-32768 to 32767). Using a LUT for sin/cos, I can use the standard method for rotating a vector: ...
IanLarson's user avatar
  • 811
0 votes
1 answer
476 views

I've heard alot that I need to use fixed-point math, top-left rule, etc. to eliminate gaps between triangles but the thing is how did Quake not have any gaps, did it? I've seen Quake's math file and ...
MaximMogulev's user avatar
1 vote
0 answers
598 views

I'm working on a scrolling arcade shooter in C++ with SDL2 and I'd like to have a replay function so players can save, share, and replay good runs. I understand that floating point math is not ...
Zach's user avatar
  • 11
4 votes
3 answers
1k views

I was wondering how does the stars in night time in minecraft work, are they point sprites? And are they placed on a texture or just randomly placed on some far away location. EDIT 1: OK, well, with ...
Darestium's user avatar
  • 1,154