# Timberl

Member

99

106 Neutral

• Rank
Member
1. ## Qbasic Gorilas/Worms physics, 10 pound for grabes

//The *starting* velocity of the banana is this (it will change): BananaVelX = strength * cos( angle ); BananaVelY = strength * sin( angle ); Gravity = -0.01; // dont worry about 9.81 - find what feels good Wind = 0; // now the came loop while( Your-Game-Loop ) { // apply velocity to banana position (velocity is change in place / time ) BananaX += BananaVelX; BananaY += BananaVelY; // apply acceleration to velocity - (acceleration is change in velocity/time) BananaVelY += Gravity; BananaVelX += Wind; } thats it.

3. ## Why not show members which threads/posts they were voted negatively on?

Then you would get an idea what other members don't like. If you post all over the place its hard to tell.
4. ## How to get in the console dev industry?

electrical engineering at a guess. MS and Sony no doubt recruit from graduates in it.
5. ## Simple problem in my Ray Tracer

you've got a fish-eye effect it looks like, albeit accidentally. this is just you need to shrink the field of view - try shrinking the multiplying scalars you muliply your ray vectors by (assuming you're using any)... does that make any sense? what I mean is, if your ray range goes from -1 to 1 x-ways, (90 degrees) scale it to go from -.5 to .5 (45 degrees) or have I just made what I said even more confusing? i.e. shrink your field of view. The effect you have is just like a real-life fish-eye lense, if you make the field-of-view very small you'll get the effect of a zoom-lense.

7. ## Simple 2D animation

Yes, just have an array of frames and a place holder to keep track of which frame in the array you're on and increment the placeholder each time. when it goes past the end of the array (in your current example, 4) set it back to zero (start of the array). hopefully this should get the idea across : psuedo-C -------- // size of frame-array int pacmanFramesSize = 4 Image pacmanFrames[] = new Image[ pacmanFramesSize ] for( i = 0 ; i < pacmanFramesSize ; i++ ) pacmanFrames[ i ] = loadPacmanFrame( "pacman" + i + ".tga" ) // in-game frame position int pacmanFramesPlace = 0 // .... // in the game loop: Frame currentFrame = pacmanFrames[ pacmanFramesPlace ]; pacmanFramePlace++; if( pacmanFramesPlace >= pacmanFramesSize ) pacmanFramePlace = 0; [Edited by - Timberl on November 21, 2005 8:07:30 AM]

9. ## VC++ cannot include windows.h (Visual Studio Express)

Marvellous guys, since getting the platform SDK etc. (and then spending many hours trying to configure it) I've got it working - at bitter last. Thanks a million
10. ## VC++ cannot include windows.h (Visual Studio Express)

Quote:Original post by Michael Tanczos Gentlemen, please keep the conversation civil. Timberl, for future reference, try to ignore the trolls on the board. They just get you into trouble that you don't want to be in. --- Michael Tanczos okay
11. ## VC++ cannot include windows.h (Visual Studio Express)

Quote:Original post by TheMeatMan RTF Dox. STFU TMM do you know how sprawling the 'Dox' are for VS & dotNet - esp when you're new to a language and dont know what the problem might be? U T1T

13. ## VC++ cannot include windows.h (Visual Studio Express)

Have just started using VC++ for the first time, bizarrely, cannot seem to include windows.h from VC++ (visual studio 2005 express edition) #include <windows.h> using namespace System; int main( array<System::String ^> ^args ) { return 0; } when I 'build solution' it says: Quote:fatal error C1083: Cannot open include file: 'windows.h': No such file or directory I thought this would one of the files that would definitely be included in any VC++ project. I've very little expreince with the vs/vc++ ide and cannot even figure out how to include a .lib file, so please spell things out to me. I'm trying to get this file because I want to use ::LoadLibrary( ) - which I think is defined in windows.h thx
14. ## Viewing Symbol-Table of a .DLL

thanks. That worked 'objdump' in gcc unforutantely, I'm even more confused now, because the symbol tables completely empty. but thanks
15. ## Viewing Symbol-Table of a .DLL

Are there any good .dll -viewing utilities out there? (/easy ways to view the symbol table of a .dll -- i've tried looking through the binary but its hard to know what are procedures, text, structures, variables etc.) I'd like to look through the actual symbol-table of a .dll (since I think the interface I have for it is incorrect)