Jump to content
  • Advertisement

BCBTP

Member
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

100 Neutral

About BCBTP

  • Rank
    Member
  1. Yeah, I am kind of at the same stage you are in the engine, but I have used OOP. This is how long my main file is. #include "mh.h" using namespace std; int main(int argc, char* args[]){ bool quit = false; nEngine->InitEngine(XAXE, YAXE, BPI, "Hello SDL"); nImage->SurfaceLoad("image.bmp", 0, 0, 0); nImage->ApplySurface(0, 0, nEngine->screen); if(SDL_Flip(nEngine->screen) == -1){ return 1; } while(quit == false){ while(SDL_PollEvent(&nEvent)){ if(nEvent.type == SDL_QUIT){ quit = true; } } } SDL_Quit(); delete nEngine; delete nImage; return 0; } It is less repetitive to do it this way, because in my case instead of writing [color=red][font=CourierNew, monospace]SDL [/font][font=CourierNew, monospace]_BlitSurface( image, NULL, screen, &offset ); [/font] [font=CourierNew, monospace]I can go nImage->Blit(0, 0, nEngine->Screen); And even less if I make SDL_Surface *nScreen; part of Surface point to &screen of Engine class.[/font] [font=CourierNew, monospace] [/font] [font=CourierNew, monospace]And if your wondering, most of my stuff is defined in my header or in objects.[/font] [font=CourierNew, monospace] [/font] [font="CourierNew, monospace"]I am also very new to SDL(about a week), with about 1.5 years of C++.[/font] [font="CourierNew, monospace"]OOP is better IMO because it is easier to make your main file, even if your other files are giant. [/font] [font="CourierNew, monospace"] [/font] [font="CourierNew, monospace"]But, if you like C-style better, go right ahead![/font]
  2. You clearly are not looking at reviews. C++ Primer Plus is like a bible for C++. A Simple test for seeing if it is worth learning to program in a language: Download Notepad++ Go to languages Find your language, if it is not there then you should probably try and find something more mainstream. (This method is not to be taken to literally) That being said you should probably stay FAR away from anything that is not really commercial, or proven in a specific industry. Also, read covers and backs of books, read reviews, and if you still get it, read your book within the day the trial goes out.
  3. Hello, I was wondering if anyone knows of a 3D game engine that is: Writen in C++ Uses DirectX(9, 10, 11 but hopefully 9) Open Source I was planning on making a game with a moddified version of this engine described above (Does it exist, I do not know). I need all the help I can get, and if there is a resource on this website that might help me find an engine, I have not found it yet and would like it pointed out. Thank you.
  4. Sorry about the title, first topic.
  5. Thanks, im just trying to get other peoples opinions. I like DirectX and C++ alot, I just want to see what you guys think.
  6. Critter Caretaker is in the book he bought, or downloaded. You must have had an older version, or is it an old book?Trust me, stick with C++, you won't regret it. When you get in to DirectX books and tutorials, it is going to be hard, but don't give up.
  7. BCBTP

    SDL or Allegro

    DirectX hands down beats everything (in my opinion, but other people have different views).
  8. It is more for begining C++ but from a game prespective. It has alot of console things, I do not know about any Graphics though. Lots of fun console stuff, though. And great choice using C++, you won't regret it!
  9. I would like to know what really is the best language for programming games, and with what SDK. I my self have taken the time to learn DirectX and C++ but I was wondering what you guys think!
  10. Honestly, I would have asked the same as you. I recommend DirectXTutorial.com alongside Introduction to 3D game programing with DirectX 10 by Frank D. Luna and Windows Programming 2008(I really have a book collection for programing, and theres to many to list and C++ Primer Plus 5th is one of my favorites(If you want me to I will)), most of which are game development books using DirectX). My opinion is that DirectX using C++ is the best way to go because it is definetly fast, and if you were to make a bigger game using DirectX 9(or other versions for future consoles) you could put it on consoles. Not that XNA can't do that but most major console games for Xbox 360 are writin in DirectX 9(Smaller and less graphicaly intense games use XNA). I honestly think that C++ is easy compared to Java and python, you just need to get used to it. Now to answer your questions Directly: Wheres the best place to start then everyone? DirectXTutorial.com- It explanes alot, there might be some errors if you copy and paste due to some of the tutorials are for VC++ 2005, 2008, and 2010 but there easily spoted by someone good with C++. Best books to work through (assuming I have 0 knowledge on game creation, but comfortable knowledge on c++) Introduction to 3D game programing with DirectX 10 by Frank D. Luna and Windows Programming 2008- These books are to get you started, Read Windows Programming first, because it will help when you need to set up a window. The other book(long title :S) has a great in-depth math explanation and is in good detail. Best engines to work with, 2d, 3d or text? - Start with small text games to get used to using OOP, but do not I MEAN DO NOT make it like PRESS ONE TO DO THIS. Make it more or less like Zork(From the book you've been reading a text game should be easy as that has lots of information for a console game). Then work up to using 2D with sprites and then eventually 3D with meshes. Tips- When ever there is a thing in a book or a website, that says Do this using the information in this chaper or page, DO IT! And if you can't read it again and again till you can do the challange. Think you're better then you are. It's that simple, if you think of your self better then you really are you will strive to being better then you really are.(Doesn't make sense but point is make your self bigger then you accualy are.) And try hard!
  • 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!