Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Sprite animation with SDL_perl

by shotgunefx (Parson)
on May 05, 2002 at 17:58 UTC ( #164160=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Sprite animation with SDL_perl
in thread Sprite animation with SDL_perl

How where they made in the old days?
  • Assembler
  • C
  • Look up tables for almost anything other than an addition or subtraction
  • Tweaked graphic modes so you code write to all 4 planes of a VGA card so you could write 4 pixels at a time for scaling and filling.
  • Everthing based on a a pow of 2.
  • Virtually all multiplications and divisions could then be bit-shifted instead of an actual multiplication.
  • If you needed more than int precision you used fixedpoint math.
  • 2D games usually used bit-masks so you could do cheap collision tests using bitwise operators.
  • Self modifying code to cut down on the codesize (usually less than 64K to work with)


-Lee

"To be civilized is to deny one's nature."
  • Comment on Re: Re: Re: Sprite animation with SDL_perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://164160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2022-01-22 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?