Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About willthiswork89

  • Rank
  1. willthiswork89


    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. willthiswork89

    Looking For Help with SDL Console

    Please anyone? im looking to try and start on this login please and thank you :)
  4. 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; }
  5. 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
  6. 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...
  7. 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.
  8. 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.
  9. 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
  10. 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?
  11. willthiswork89

    Wierd OpenGL Error

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

    Copying an SDL Surface & Overloading= Operator

    http://lazyfooproductions.com/SDL_tutorials/lesson05/index.php you actually use MapRBG then SetColorKey read that tutorials
  13. 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
  14. 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
  15. 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?
  • 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!