how to design pool board and map tetxure easily

Started by
0 comments, last by Norman Barrows 9 years, 4 months ago

Hey guys .

I finally finished my 2d game engine , and I encountered in some problems .

1 ) I decided to build a pool game and I already finished my physics . the engine could draw segments,rectangle every geometry , how should I made a coordinates of Accurate pool board ?

2) My engine "knows" to Translate,Rotate,Scale Texture buy its still hard to map the texture on a small shapes , I need to change the arguments of the scale,translate and rotate function every compile and hope for good result .

suggestions ?

Advertisement


I need to change the arguments of the scale,translate and rotate function every compile and hope for good result .

go data driven - perhaps even with a custom editor, built-in or stand alone.

another quick and dirty way:

make scale translate and rotate variables, and add the ability to change them while the game is running, and the ability to display their values.

runs the game. change the variables until things look correct. write down the values. then hard code those values into the code, and you're done!

one you're done, turn off or remove the code that you added (the vars, and the code to change and display them).

Norm Barrows

Rockland Software Productions

"Building PC games since 1989"

rocklandsoftware.net

PLAY CAVEMAN NOW!

http://rocklandsoftware.net/beta.php

This topic is closed to new replies.

Advertisement