GAMELIB [LINUX / WINDOWS] (English)

Advanced game related topics
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Post by zxtunes.com »

How to replace the original cursor with the sprite?

SDL used only 3D sprites?

HGE have cool procedure for sinhronization and stable work of game:

float Timer_GetDelta();

Use Timer_GetDelta inside your frame function to synchronize with various execution speed and to detect periods of time. The timer resolution is 1 ms, so you'll never get a value less than 0.001.



SDL not have analog function?
Anonymous

Post by Anonymous »

Meta texture is one file with a lot of texture , like this :

Image

you have a four texture.
For displaying only the black , you can change the UV coordinate.

u0 = 0,0
v0= 0,0.5
v1 = 0.5,0.5
V2 = 0.5,0

SDL not have analog function?
i don't known


SetGLSpriteVertexColor (
param1 = Sprite pointer
param2 = Vertice Number ( 0 to 3 or 1 to 4 )
param3,4,5,6 = Color (R G B A )
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Bator,

You have a map editor worked out or can you use mappy?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Anonymous

Post by Anonymous »

i don't use any "home made" editor , and i don't use mappy , for 4x4 example , terrain is based on heightmap file.
Post Reply