Menu

Tools Commit Log


Commit Date  
[r2864] by plombo

Added OpenGL video backend as an alternative to SDL software blitting.

2010-08-23 02:44:50 Tree
[r2863] by plombo

Changes to SDL control backend:

PC joystick code almost entirely rewritten. This should fix most of the problems OpenBOR has historically had with joystick support.

The engine now shuts down properly instead of exiting immediately when closed with F10, Alt+F4, or the window's "X" button.

2010-08-05 21:28:27 Tree
[r2862] by plombo

Added _makecolour() to openbor.h to fix compile error.

2010-07-21 02:02:26 Tree
[r2861] by plombo

Added new script function:
int rgbcolor(int r, int g, int b)
r, g, and b are integers between 0 and 255, inclusive. Returns the closest color to the specified color in the current color mode.

2010-07-21 01:58:54 Tree
[r2860] by sumolx

Updated version info.

2010-07-21 00:39:38 Tree
[r2859] by damon_caskey

openborvariant("models_cached"); Returns total number of models.

openborvariant("models_loaded"); Returns number of models loaded.

getmodelproperty({index}, {property}); Returns property from cached model.

{index} - Model index. Enumerate the collection to find a specific model.

{property}
0: Loaded (1 = yes, 2 = no)
1: Model (Unstable, returns name for now).
2: Model name.
3: Path.
4: Selectable (1 = Yes, 2 = No).

changemodelproperty({index}, {property}, {value}); Change a model property. Any property (see getmodelproperty) is accepted, but only "selectable" property can actually be changed.

2010-07-15 20:55:53 Tree
[r2858] by plombo

Fixed bug in sprite code that caused engine crashes, introduced in 2851.

Also, the fillcolor parameter of the drawmethod command can now be in the format "R_G_B". For example, a yellow fillcolor (red 255, green 255, blue 0) can be specified as 255_255_0. Unlike the old format for fillcolor (which still works for backwards compatibility), the new format isn't dependent on color depth and doesn't require a complicated formula to calculate.

2010-07-15 04:12:22 Tree
[r2857] by plombo

Added a new script event, thinkscript. It is declared in an entity's header and runs every time the entity's AI updates itself. It can be used for fine-grained control of entities' AI and movement.

2010-07-14 04:29:55 Tree
[r2856] by sumolx

Updated header comments

2010-07-14 03:19:59 Tree
[r2855] by sumolx

Another Test

2010-07-14 03:11:11 Tree
Older >
MongoDB Logo MongoDB