The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C++ Code
Posted by: dfas | March 14, 2010 @ 6:21pm
C++ Code
[
Download
]
#include "DarkGDK.h" #include "Gui.H" void DarkGDK ( void ) { dbSyncOn ( ); dbSyncRate ( 60 ); dbRandomize ( dbTimer ( ) ); ////Create Object int bx = 123; dbMakeObjectCube(bx,10); dbPositionObject(bx,0,0,0); ////Variable Declaration int cT = 0; while ( LoopGDK ( ) ) { dbSetCameraToFollow (dbObjectPositionX(bx),dbObjectPositionY(bx),dbObjectPositionZ(bx),dbObjectAngleY(bx),50,20,20,0); //dbSetCameraToObjectOrientation (bx); ////Controls //Reference //dbKeyState () - Check if key defined by scancode is pressed //dbScanCode () - Print Scancode of pressed key if ( dbKeyState (44) ) cT += 0.2; if ( dbKeyState (45) ) cT -= 0.2; if ( dbSpaceKey() ) cT = 0; if ( dbKeyState (30 ) ) dbTurnObjectLeft(bx,1); if ( dbKeyState ( 32 ) ) dbTurnObjectRight(bx,1); if ( dbKeyState (31) ) dbPitchObjectUp(bx,1); if (dbKeyState (17) ) dbPitchObjectDown(bx,1); if ( dbShiftKey () ) dbMoveObject (bx,0.1); ////Speed Limits ////Vector Stuff //dbSetVector3( Vs, dbObjectAngleX() ,dbObjectAngleY() ,dbObjectAngleZ() ); //dbSetVector3ToObjectPosition ( Vs, cam ); //dbPositionObject ( Vs ); ////Movement dbSync ( ); } return; }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.39 / 8
51 Votes
http://codebin.yi.org/549
page generated in 0.01 seconds