Engine 1

I finally decided to pause VC development and develop some kind of useful toolkit and backbone, for both VC, E2, and some future games.

Features:

  • dynamic text-mode output
  • console, and command input
  • Function pointers for various user-created methods
  • cvars
  • SDL Joystick support
  • Very nice mouse code in windows
  • Reliable UDP networking
  • SDL Sound
  • Simple datafile I/O - todo: virtual filesystem
  • Common OpenGL graphics methods

Lines of code: ~2897

 

End-user documentation:

To express a string containing spaces as a single token, use double-quotes [Doesn't work yet.].

Any Engine 1-powered game allows the console to be activated with the ~ (tilde) key. Here is a list of some of the commands available:

listcmds - lists commands available to the user (doesn't include hidden commands)

listcvars - lists cvars available to the user (doesn't include hidden cvars)

exec [filename] - executes a text file containing console commands. [beta]

set [name] [value] - sets a cvar named name to value - If the cvar doesn't exist, it is created.

ver - prints Engine version information

pause - pauses much of the game engine - use at your own risk. May be disabled in client-server situations.

settps - sets Tics per second - use at your own risk. May be disabled in client-server situations

bind [key] [function] - binds a key to a command *

unbind [key] - unbinds a key [doesn't work yet] *

quit - Quickly exit the program. Unsaved game progress, etc, will be lost.

* At the moment, bind settings will not be saved unless you choose the hosted game's save-key-configuration option. May not always work. A new command will be available later to fix this, called savebindings



© 2003-2009 Brilliant-Bytes Software. All Rights Reserved.
Terms of Use