Wednesday, August 27, 2008
  Login      Register
We are pleased to announce that Treeparty(blitz
edition)and Grassparty(blitz edition) have been
reduced In price! Same great products, same
  support just a lower price to the consumer.
Enjoy these fabulous titles for only $12.99.
read more
  
Forums Search
ForumsMinimize
 
::Home » Treeparty-BE » Documentation
Author Messages
Swampdonkey


Posts : 33
Location : N/A
Posted : 11/30/2007 8:54:42 AM  

;-------------------------------------------------------------------------------------------------------------
;Notce: all media and tree files must reside in the tpMedia directory based off your main development directory.
;ie: c:\myGameProj\tpMedia
;-------------------------------------------------------------------------------------------------------------

;-------------------------------------------------------------------------------------------------------------
;Contents
;-- tpLoadEngine() ;used before all else, this sets the engines dim's
;-- tpLoadTree(filename$, COLLTYPE_geometry) :used to load a tree into the tpEngine
;-- tpUpdateEngine(tpCam) :called once per loop, updates the trees ( pass it the game camera )
;-- tpScaleTree(tree, xs#, ys#, zs#) :used to scale a tpTree, dont use standard blitz Scaleentity command on tpTree's
;-- tpTreeColor(tree, r, g, b) ;if you wish to set tpTree coloring, use this. ( notice: defaults to 255,255,255 if not called)
;-- tpDeleteTree(tree) :if you wish to correctly remove a tpTree from your map use this call
;-- tpUnloadEngine() :unloads the entire tpEngine including all trees and resources, call this when map clearing
;-------------------------------------------------------------------------------------------------------------

;-------------------------------------------------------------------------------------------------------------
;Usage
;tpLoadEngine() ;--- Notice this must be called first
;tree=tpLoadtree(treefilename$, collision type)
;PositionEntity tree, 100,0,50
;tpScaleTree(tree, x#, y#, z# )
;..
;;main loop
;repeat
;tpUpadeEngine(camera)
;updateworld()
;renderworld()
;flip()
;forever
;..
;tpUnloadEngine()
;End
;-------------------------------------------------------------------------------------------------------------

;-------------------------------------------------------------------------------------------------------------
;Notes:
;v1.0 released
; - created user definable tree editor
; - improved load times as trees no longer load on startup
; - optimized the cache routines, quads released on Kill()
;-------------------------------------------------------------------------------------------------------------

;-------------------------------------------------------------------------------------------------------------
;( User settings )
Global tpMaxTrees=1 ;-- set this to the max number of trees your map will contain
Global tpLodRange#=60 ;-- when the tree exeedes this range the billboard model is dispalyed
Global tpMaxRange#=340 ;-- when the camera exceedes this range the tree is turned off completely
Global tpProngAnimation=True ;-- set to true or false, true allows prong( leaf) animations to occer
Global tpBranchAnimation=True ;-- set to true or false, true allows the branches to animate

;force settings
Global tpProngSpeed#=3.3 ;-- set value for speed at which prongs will animatie
Global tpBranchSpeed#=.30 ;-- set value for speed at which branches will animatie
Global tpProngForce#=7.0 ;-- set value for the overall force(distance) the prongs will sway to.
Global tpBranchForce#=1.7 ;-- set valuse for the overall force(distance) the branches will sway to.

;misc prong settings
Global tpProngRandomShading=True ;-- if True, prongs will recieve a mild shade factor to adjust for tiling effects
Global tpProngFullBright=True ;-- If True, prongs willbe set to fullbright relying upon tpTreeColor(tree, r, g, b) for color/lighting effects.
;-------------------------------------------------------------------------------------------------------------

 

« Previous   1 / 1   Next »
  
 
HomeSoftwareMy SoftwareForumsSupportOtherWiki
Copyright © 2008 Gothasoft Corporation. All rights reserved
Terms Of Use | Privacy Statement