Jump to content
  • Advertisement

willthiswork89

Member
  • Content Count

    410
  • Joined

  • Last visited

Everything posted by willthiswork89

  1. willthiswork89

    SDL_Flip()

    the reason is that your using doublebuf, where the second buffer is empty. so when your flipping its flipping both and your seeing that second empty buffer. take it off and you should eliminate that flicker
  2. willthiswork89

    Looking For Help with SDL Console

    oh wow thanks man ill try it when i get my pc reformatted... my sound card juyst stopped workig and i think its a driver problem even though it was working about 12 houyrs ago... nothing changed lol...anyways thanks man
  3. I wanted to know if there was a way to change the background color and or the font color other then changing it using addbackground picture... i wanted to change the actual color from like black to grey.. Thanks for the Help Guys
  4. willthiswork89

    Looking For Help with SDL Console

    Please anyone? im looking to try and start on this login please and thank you :)
  5. willthiswork89

    Weapon Class

    i did an attack class and i just did #define playerleft 1 #define playerright 2 #define playerup 3 #define playerdown 4 then like if(Player.Status == playerleft) { rocket.x += xVel; } else if(Player.Status == playerright) { rocket.x -= xVel; }
  6. willthiswork89

    Im a complete noob

    Also get the book Beginning C++ Game Programming my Michael Dawson.. its a book that will accelorate your learning time by a TON... also i have aim so if you need help PLEASE feel free to message me at willthiswork89 im ALWAYS willing to help a new kid
  7. willthiswork89

    Looking For Help with SDL Console

    well i was mainly looking for somthing to do Username and Password and since sdl has no gui... its kinda hard... i never thouhg tabout just doing a simple thing but getting a blinker and stuff... it would be kinda hard.. but ide love to start working on a project like this...
  8. willthiswork89

    Looking For Help with SDL Console

    well the add background actually takes a filename to load... the only thing i can possibly think of is to make an image and add the image to the thing.
  9. willthiswork89

    Looking For Help with SDL Console

    Thank you for the response although you mis interpreted my question. SDL Console is a Quake-Like Console Screen for input... the color of it is black and my actual window is a picture of black.. so the text is hard to see.
  10. willthiswork89

    Wierd OpenGL Error

    When i Try to Compile im getting this.. C:\Program Files\CodeBlocks\lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16' collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 0 seconds) 0 errors, 0 warnings i dont understand whats wrong? its sdl with open gl so i dunno any suggestions?
  11. willthiswork89

    Wierd OpenGL Error

    i fixed it with including windows, then doing int WINAPI WinMain( HINSTANCE hInstance, // Instance HINSTANCE hPrevInstance, // Previous Instance LPSTR lpCmdLine, // Command Line Parameters int nCmdShow) but... i figured out why! code::blocks i clicked the open gl template when really i needed the sdl template.. but what are the linker settings for opengl?
  12. willthiswork89

    Wierd OpenGL Error

    nope...still saying it...i dunno how to fix it but its getting agrivating!
  13. willthiswork89

    Copying an SDL Surface & Overloading= Operator

    http://lazyfooproductions.com/SDL_tutorials/lesson05/index.php you actually use MapRBG then SetColorKey read that tutorials
  14. willthiswork89

    Wierd OpenGL Error

    #include <SDL/sdl.h> #include <GL/gl.h> #include <stdio.h> #include<stdlib.h> int main(int argc, char* args[]) { if(SDL_Init(SDL_INIT_VIDEO) != 0) { printf("Error: %s\n", SDL_GetError()); } atexit(SDL_Quit); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1); SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6); if(SDL_SetVideoMode(640, 480,16,SDL_OPENGL) == NULL){ printf("Error: %s\n", SDL_GetError()); } SDL_WM_SetCaption("OpenGL with SDL!", "OpenGL"); glViewport(80,0,480,480); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glFrustum(-1.0,1.0,-1.0,1.0,1.0,100.0); glClearColor(0,0,0,0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_TRIANGLES); glColor3f(1.0,0,0); glVertex3f(0.0,1.0,-2.0); glColor3f(0,1.0,0); glVertex3f(1.0,-1.0,-2.0); glColor3f(0,0,1.0); glVertex3f(-1.0,-1.0,-2.0); glEnd(); glFlush(); SDL_GL_SwapBuffers(); SDL_Delay(5000); return 0; } thanks alot... dunno whats going on
  15. willthiswork89

    Copying an SDL Surface & Overloading= Operator

    well if you wanna transfer it you just give the one a copy then so SDL_FreeSurface(surface); it will delete the memory for the old one. not sur about the other part sorry
  16. willthiswork89

    Next step?

    im trying to further my knowledge as i progress learning things... i now am very comfertable with sdl and could probably type pong with my eyes closed. but whats next? i never finished algera but am doing it next semester. so will that math limitation be a...limitation to my learning opengl or what ever language i should leanr next?
  17. willthiswork89

    Music in game problem

    probably a glitch... why dont you post the code that you think the problem might be accuring in?
  18. willthiswork89

    Next step?

    i say that meaning that i have made it and understand it so well that i can write it easily.
  19. willthiswork89

    Next step?

    okay cool thanks alot
  20. best thing to do is to download Code::Blocks its got templates for sdl and everything.. its the perfect compiler... i have vc 2005 and i prefer codeblocks over it... if you go get that i can step you through that.
  21. willthiswork89

    books on sdl?

    i got one book called Linux Game Programming which says it goes in depth with SDL andanother called focus on sdl but people said that one sucks.... any suggestions? im really looking to learn its SDL_Net feature ive googled and theres no decent tutorials. and beej's tutorials seem confusing/ hard.
  22. willthiswork89

    books on sdl?

    i wish i could figure it out but i just dont understand how to send and receive data and stuff... i dunno if you know about it maybe you xcould talk to me on aim? willthiswork89 is my aim
  23. use system("pause"); ive used it and its much better then these getch and shit... good luck
  24. willthiswork89

    Text Boxes in SDL

    i looked but didnt see any docs...sorry ill look again though
  25. willthiswork89

    Text Boxes in SDL

    i know there are text input boxes in windows but is there a way i can make like a semi-transparent login box of some sort? through sdl... maybe some tutorials on some wrappers or even a class on how to do so would be appreciated. thanks a bunch
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!