No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
Re: > SDL_FreeSurface(rot); you cant free the surface before you've even used it, put code after the code where youve already displayed it | |
Im getting these errors, what do they mean? its DEFINITELY not my code because it works when i compile it in codeblocks but not in microsoft visual c++ 2008. 1>------ Build started: Project: DropBlock, Configuration: Debug Win32 ------ 1> player.cpp 1>c:\users\chris\desktop\c++\-zcomplete game\backup\player.cpp(43): error C2065: 'blocks' : undeclared identifier 1>c:\users\chris\desktop\c++\-zcomplete game\backup\player.cpp(43): … | |
I get this error when compiling an sdl project i have please help me as i cant learn anything until i get my new compiler setup im using visual studi c++ 2010 the free edition i use to use code blocks but have upgraded heres my error: 1>------ Build started: … | |
So im learning SDL to get an idea on game programming for my career as a game developer. I havent done any learning for a couple of months after getting stuck on this problem. So im using a lazyfoo.net tutorial engine. that moves a player and has a collision with … | |
So im using the source code off a tutorial to learn and add a feature to drop a block. Ive learned so much so fra but now ive come to a dead end! You move with the arrow keys- works You press space to show the block- doesnt work heres … | |
Re: [QUOTE=Captain Jake;1783233][CODE]int something(int a,int b, int c) { int d; \\does something return d; }[/CODE] How is this function called???? [CODE]int z; z=something(a,b,c);[/CODE] So how can you assign two returned value to one variable??? Makes sense??? So a function cannot return two values.....[/QUOTE] A function can return a value :/ … | |
I found a good tutorial and added a few things to it such as text on screen using the TTF dll, the code worked fine before setting up the font and attempting to display it. I still get no errors or warnings it just compiles then closes instantly :(, no … | |
I found a tutorial on lazyfoo.net and when i downloaded the source it just opens and closes, why is this? im using code blocks. [CODE]/*This source code copyrighted by Lazy Foo' Productions (2004-2012) and may not be redestributed without written permission.*/ //The headers #include <SDL.h> #include <SDL_image.h> #include <string> //Screen … | |
Hey, im new to C++ forums and C++ for that matter. Im 16 years old and want to be a game developer so i made a calculator it took about 30min(a while i know but im a beginner) can someone tell me if what ive done is good code or … |
The End.