Well, one day down, Not much to report, mostly just going through and trying to clean things up and make some of the changes I've been telling hamish I'll make. One thing of interest I found though, it seems Hamish that you were makeing two calls to "screen fps()" each loop, which (i think you know) will cause your frame rate to appear about half of what it realy is... When I fixed it the framerate wen't from around 60fps to around 120fps or so...
Anyways here's the log I've been keeping of my additions, changes, deletions and other modifications:
--- Blackout Edit Log ---
-- Sep. 17, 05 --
Consol.dba
- Added Module comment header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- No misuse of private variables
Level.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Decided to allow Loading and Saving to file functions to be able to have "friend" status in regard to private variables, in other words, Loading and Saving functions will have direct acess to private variable data
- No misuse of private variables
Loopspeed.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function int "getFPS()" - returns the screen fps that is stored each loop in updateLoopSpeed()
- Added External Function int "FPS_getSetFrameRate()" which returns what the screen refresh rate is set to.
- Added External Function "FPS_setFrameRate(rate as integer) which sets and updates the screen refresh rate if the entered rate is >= 0
- Added External Function int "FPS_getGameSpeed()" which returns the set G_GameSpeed
- Added External Function "FPS_setGameSpeed(rate as integer) which changes the game speed if the given rate is >= 0
- Added External Function float "FPS_getGameRate()" which returns the set G_GameRate
- Added External Function float "FPS_getGameTime()" which returns the set G_GameTime
- Added External Function float "FPS_getLoopConstant()" which returns the G_LoopConstant
- Added External Function "FPS_setLoopConstant(rate as float)" which will set the G_LoopTime variable to the requested value if that value is above zero.
- Added External Function float "FPS_getLoopTime()" which returns the set G_LoopTime
- Added External Function float "FPS_getLoopSpeed()" which returns the set G_LoopSpeed
- Added External Function float "FPS_getLoopSpeed2()" which returns the set G_LoopSpeed2
camera.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function "CAM_setFOV(camera as integer, FOV as float)" that sets the internal field of view value
- Added External Function float "CAM_getFOV(camera as integer)" returns the internal set value of the FOV
- Added External Function int "CAM_getCameraNum(camera as integer)" returns the actual db camera number of that camera element
- Added External Function "CAM_setPos(camera as integer, pos as TYPE_XYZ)" that sets the internal position of the camera
- Added External Function "CAM_setPosX(camera as integer, xpos as float)" that sets the internal xpos of the camera
- Added External Function "CAM_setPosY(camera as integer, ypos as float)" that sets the internal ypos of the camera
- Added External Function "CAM_setPosZ(camera as integer, zpos as float)" that sets the internal zpos of the camera
- Added External Function "CAM_setPosXYZ(camera as integer, xpos as float, ypos as float, zpos as float)" that sets the internal position of the camera via three values
- Added External Function float "CAM_getPosX(camera as integer)" that returns the Xpos of the specified camera
- Added External Function float "CAM_getPosY(camera as integer)" that returns the Ypos of the specified camera
- Added External Function float "CAM_getPosZ(camera as integer)" that returns the Zpos of the specified camera
- Added External Function "CAM_setRot(camera as integer, rot as TYPE_XYZ)" that sets the internal rotation of the camera
- Added External Function "CAM_setRotX(camera as integer, xpos as float)" that sets the internal xrot of the camera
- Added External Function "CAM_setRotY(camera as integer, ypos as float)" that sets the internal yrot of the camera
- Added External Function "CAM_setRotZ(camera as integer, zpos as float)" that sets the internal zrot of the camera
- Added External Function "CAM_setRotXYZ(camera as integer, xrot as float, yrot as float, zrot as float)" that sets the internal rotation of the camera via three values
- Added External Function float "CAM_getRotX(camera as integer)" that returns the Xrot of the specified camera
- Added External Function float "CAM_getRotY(camera as integer)" that returns the Yrot of the specified camera
- Added External Function float "CAM_getRotZ(camera as integer)" that returns the Zrot of the specified camera
GeneralHandles.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- No Misuse of private variables
Character.dba
- Updated Module Header
- Added comment's to head different parts of the code, header for Constants, Types, "Declare, Setup, Update, Unload", header for internal functions and a header for external functions
- Ordered functions according to there header
- Added External Function int "CHR_getNumCharacters()" returns the G_NumCHaracters value
- Removed Global variable G_Temp, unused
- Added External Function int "CHR_getChrModelNum(chrNum)" returns the db model number of the character
- Added External Function int "CHR_getChrNewtonBody(chrNum as integer)" returns the Newton body number for the character
- Added External Function byte "CHR_getChrLife(chrNum as integer)" returns the characters life value
- Added External Function "CHR_setChrLife(chrNum as integer, life as byte)" sets the characters life value
Enjoy!
CPU
[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\[center]