I'm currently at around 250 lines of code. I will keep updating this post as the game develops. ![]() It makes a lot of sense to me, but I've used Unity extensively before, I'm accustomed to game programming logic and I'm quite a good programmer so those might have had something to do with it. I wanted to get used to SFML first, and I gotta say : i t's awesome. sf::Image::GetPixel() doesnt check the x and y parameters against the images bounds, thus making accessing not owned memory possible. I still have a lot of game logic to implement though. I just need to give a graphical response to the user input, such as the piece they select, and where they can move it. But what would I do with it? A game, of course, and chess seemed like a pretty easy example to implement. You can even omit to mention that you use SFML - although it would be appreciated. This function doesnt check the validity of the pixel coordinates, using out-of-range values will result in an undefined behavior. You can use SFML in your project without any restriction. This function doesnt check the validity of the pixel coordinates, using out-of-range values will result in an undefined behavior. In short, SFML is free for any use (commercial or personal, proprietary or open-source). ![]() The first one that came to my mind was SFML, and this is my first contact with it. External libraries used by SFML are distributed under their own licenses. The language itself doesn't have support for anything like that, so I would have to resort to libraries. ![]() So, today I've decided to try to do something graphical with C++. Download SFML library SFML - Visual Studio Setup (C++ Tutorial) Samuli Natri 9.36K subscribers Subscribe 1.4K 101K views 4 years ago GameDev CPP SFML How to setup a Visual Studio.
0 Comments
Leave a Reply. |