|
TKS_PLUGIN_PATH
, TKS_MODULE_PATH
, TKS_LIBRARY_PATH
and TKS_APPLICATION_PATH
environment variables).
$ wget http://tkscript.de/makefile.linux
← - download the toplevel makefile
$ wget http://tkscript.de/install_linux.mk
← - download the common makefile include (configure (cross-) compilation settings here!)
$ wget http://tkscript.de/files/current/yac.zip
← - download the plugin interface includes
$ unzip yac.zip
← - decrunch header files
$ wget http://tkscript.de/files/current/tks-source.zip
← - download the scriptengine sourcecode
$ unzip tks-source.zip
← - decrunch scriptengine source
$ make -f makefile.linux tks_shared
← - Compile TKS core executable
$ make -f makefile.linux tks_install
← - Install to /usr/
(requires root privileges)
/usr/bin/tks
) that sets up the required environment variables before running the actual executable (tks.bin
)
http://tkscript.de/files/current/
and add a .zip
suffix (e.g. tksdl.zip).
HAVE_JIT
); maybe/probably it will work on Intel Macs
DX_STATIC_TKSDL
and DX_STATIC_TKOPENGL
compiler defines should not be used if possible
Install Cygwin now |
.tkx
" examples: (tks and tksdl (SDL/OpenGL) installation required, Win32 users should install tks-setup.exe) bobfield start viewer - view source - download tks-examples.zip | |
- renders a lot of filled polygons. the z-buffer is used to mask screen areas. makes extensive use of the JIT compiler. |
color (color banding test) start viewer - view source - download tks-examples.zip | |
- renders some colorful quads. a kind of script benchmark. looks better with 10bit DACs. |
crparticles start viewer - view source - download tks-examples.zip | |
- a scripted particle system. the image blur is precalculated during startup. use cursor keys to change the # of particles. |
cubeworld start viewer - view source - download tks-examples.zip | |
- a classic Amiga demo / render2texture effect. requires ~24MByte graphics memory for the image history. |
fire start viewer - view source - download tks-examples.zip | |
- the traditional fire effect (software rendering). fire3.tks (source, screenshot) is a variation which uses some 2x sin*sin*sin colormap modulation (try the 'v'sync and 'f'pslimit keys). See fire.tks (source, screenshot) for some "different" kind of fire.. |
juliaattractor start viewer - view source - download tks-examples.zip (press space to toggle JIT mode...:) | |
- originally written by Michael Wiegers (jet/avena). software rendering effect, uses OpenGL to blit to screen. |
nehelesson5 start viewer - view source - download tks-examples.zip | |
- originally by Jeff Molofee (NeHe). a very basic OpenGL demonstration. |
retrovaders2 start viewer - view source - download retrovaders2.zip (press lctrl/x/d to shoot) | |
- a simple shoot-em up space invaders like game. 'a'/'s' to shoot, cursor keys to move.. |
rotzoomer start viewer - view source - download tks-examples.zip | |
- a software rendering effect. rotates and zooms a pixmap. JIT benchmark (run from shell with 1 arbitrary argument to enter benchmark mode, e.g. "tks rotzoomer 1"). |
sinescroller start viewer - view source - download tks-examples.zip | |
- a procedural texture effect. |
testdisplaylist start viewer - view source - download tks-examples.zip | |
- demonstrates how to use OpenGL display lists. |
torus start viewer - view source - download tks-examples.zip | |
- demonstrates how to use OpenGL display lists and lighting. |
view3ds start viewer - view source - download view3ds.zip | |
- a scripted 3DS loader. includes a FPS like camera. g grabs mouse, mouse movement triggers repaint. 1-8 to select a camera preset. |
fpslimit start viewer - view source - download tks-examples.zip | |
- Draws a rotating quad and demonstrates how to limit the refresh-rate. |
loadmd2 start viewer - view source - download loadmd2.zip | |
- a scripted MD2 (Quake][ character) loader. Model by <rodrigo@sport4u.com>. Requires tks-version>=0.8.0.5. Press space for multi-goblin mode :D (see dr.freakenstein, model by <stecki@terrafusion.com>) |
gravity taxi start viewer - view source - download gkraft.zip | |
- Gravity Taxi is a thrust/space taxi like game. (17-Oct-2004) (screenshot, first prototype (~200 lines), gkraft.tks (htmlsrc), src.zip (+data)) (press 'r' for ultra-smooth (but cpu-intensive) mode) |
ft2franz start viewer - view source - download tkfreetype2.zip | |
- a true type font load+render demo (using the freetype2 library). Requires tks-version>=0.9.0.66c. Cursor up/down to select font. 'f' toggles bilinear filter. |
.tks
" examples: