• Sdl/sfml?
    11 replies, posted
So I've been trying to learn a new programming language for the past couple of days and after trying C# (XNA), Java, C++ and a couple of other languages, I've decided to settle with C++. I'd like to develop games but I don't know much about C++ game development so I got a couple of questions. 1. When you choose what to "work" with, do you choose between for example SDL, SFML and OpenGL or is SDL/SFML using OpenGL/DirectX but makes it easier? 2. As a beginner to C++ and game development, is OpenGL/DirectX too hard or not recommended to start out with? 3. If I should choose something similar to SDL/SFML, what should I choose and do you know any decent tutorials on the subject? Thanks, Awwent
1. SDL and SFML are both cross-platform libraries, so they both use OpenGL. You should generally use SDL when working with C and SFML when working with C++. 2. If you're new to C++, you shouldn't start with things like OpenGL/Direct3D before you understand pointers, polymorphism and that kind of stuff. 3. Pure OpenGL or Direct3D, perhaps with helper libraries to create a window and render context. For example SFML/SDL to create the render context and OpenGL commands to draw stuff.
Depends on the language. C - SDL (You can use CSFML, but I have no experience with it) C++ - SFML C# - XNA or SFML.net
Alright. SMFL looks pretty good but I'm, to start with, just interested in making rogue-like games or whatever they're called. Is there any framework (or whatever it is called) for making this type of games or should I just go with the standard libraries and spam system("cls")? :P
[QUOTE=Rocket;27733611]What ever you want to do. I use system("cls"); but there's probably a library.[/QUOTE] Never, ever use system.
[QUOTE=Rocket;27733611]What ever you want to do. I use system("cls"); but there's probably a library.[/QUOTE] "oh hey I'm gonna run it on Linux" "oh fuck it doesn't works because i'm using system()"
[QUOTE=PiXeN;27734209]"oh hey I'm gonna run it on Linux" "oh fuck it doesn't works because i'm using system()"[/QUOTE] I'm aware but what should I do instead of that then for Linux?
system("clear") It's still not a good idea to use system though.
Since you're new to making games, you might want to check out ncurses. It's a neat library that lets you exercise better control over the terminal. It'll allow you to make little games in the terminal (you'll be stuck using ASCII instead of real graphics) and get a bit more experienced before you start tackling SDL/SFML.
[QUOTE=spear;27736742]Since you're new to making games, you might want to check out ncurses. It's a neat library that lets you exercise better control over the terminal. It'll allow you to make little games in the terminal (you'll be stuck using ASCII instead of real graphics) and get a bit more experienced before you start tackling SDL/SFML.[/QUOTE] Actually it can be easier to make a game using SDL than to make one using curses. That, and at least ncurses allows you to use wide characters, so you're stuck to Unicode instead of ASCII.
[QUOTE=Awwent;27733065]Alright. SMFL looks pretty good but I'm, to start with, just interested in making rogue-like games or whatever they're called. Is there any framework (or whatever it is called) for making this type of games or should I just go with the standard libraries and spam system("cls")? :P[/QUOTE] Look at libtcod, the C# Implementation is also really good.
Sorry, you need to Log In to post a reply to this thread.