Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jamesL

Pages: 1 2 3 [4] 5 6 ... 9
I'd say half the games I play on Steam have to download and install the VC++ redistributables

buy a game
download it
press play
wait for VC++ redistributables to install

next week --
buy a different game
download it
press play
wait for VC++ redistributables to install

couple of days later --
well, you know
ha ha ha

Graphics / Re: Drawing a vector of rectangle shapes
« on: January 30, 2017, 07:28:02 pm »
couldn't this
  blockContainer.draw(blockContainer, window);

be like this

regarding the new book
Mastering SFML Game Development


code files are now available for download

one zip file full of .rar files

can't read the book online yet, but the pdf is available for download

I have not downloaded it yet

I'll let the book author start a new thread specific for the book

hmmm, wondering if this is the final code

some unusual files names for maps in this folder
B05590_10_code / Build / Media / Maps



General / Re: Installation with MinGW64
« on: January 29, 2017, 04:35:08 am »
I'd suggest you use the (IMO) easiest approach:
  • Download SFML's source (either zipped or by cloning the repository).
  • Download and install CMake.
  • Create the proper makefiles to build SFML, but also set the installation folder to your MinGW folder.
  • Build and install SFML.
This way all SFML files will land in the right folders for the MinGW components to find them just like it happens on Linux.

Let's assume MinGW is installed in "C:\MinGW", so I'd run the following commands:

cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:/MinGW C:/SFML/source
cmake --build . --config Debug --target install
cmake --build . --config Release --target install

Running these three lines will build and install both debug and release builds of SFML.

why not just download the prebuilt GCC 6.1.0 MinGW (SEH) - 64-bit from here

I think that is far and away the easier approach

in your example
where do you run the cmake command from
C:\MinGW ?
the cmake installation folder ?
the sfml download folder ?

Graphics / Re: Draw very big tilemaps
« on: January 28, 2017, 02:47:47 pm »
took me 5 minutes before I realized the word "This" in your post was a link

I thought you meant "this way in the post above"

I kept reading the code and thinking ? that's your favorite way ? :)

I'm sure making it into a kindle version or pdf is easy

but it probably takes some time to get it set up into their web Mapt version

they also probably want to release all versions (including the print version) at around the same time -- and I'm sure it takes time to get that printed

and amazon has moved the "book available" date from Feb 6 to March 6

System / Re: Game states and OOP
« on: January 27, 2017, 08:38:06 pm »

that's a lot of stuff you want to do

you have a lot of ambition

since you want to do that much I'm going suggest that you get a book

do you have a Credit Card | Debit Card | PayPal ?

you can sign up for a 30 day free trial here


they have lots of good SFML books

during the free trial you can read all the books online and watch the video --- all completely free (obviously you can read books on other subjects too --- linux, java, SQL)

then at the end of 30 days you can cancel your membership -- or continue for $20 a month

if you don't want to do that there are some videos on youtube

obviously the code quality of some will be better than others

System / Re: Game states and OOP
« on: January 27, 2017, 06:40:28 am »

in this code
is cutie supposed to be a global sprite ?

and what is this

specifically what is

SFML projects / Re: Let's make 16 classic game in C++ video series
« on: January 25, 2017, 12:13:54 am »
that is a great way to learn the library

just go to the download site listed on the video and download the code

look through it

watch the videos
what makes them great is they don't show the final code at the beginning, but each games starts off with a simple window and then adding and changing line by line they end up with a game

and I think its great that each game is contained in a single file

makes it much easier to follow along

if you want a game full of templates and classes and inheritance then go to
and buy an sfml book

or search youtube



I hope you were able to include a lot of the opengl stuff

that's the kind of sfml book I'd really like to see

OrderNexus this wait is killing me, do you have an estimate on how much longer until your new book comes out? I know you can't give a specific day but I'm eagerly awaiting it.
I'm finishing up the last chapter tomorrow, so it will definitely be out in January. I would say probably in the next week or two.

Amazon says
February 6, 2017
Mastering SFML Game Development Paperback 

packtpub says January

no table of contents yet, but there's this description

"It begins by going over some of the foundational code necessary in order to make our RPG project run.

By the end of chapter 3, we will have successfully picked up and deployed a fast and efficient particle system that makes the game look much more 'alive'.

Throughout the next couple of chapters, you will be successfully editing the game maps with ease, all thanks to the custom tools we’re going to be building.

... After being introduced to the use of shaders and raw OpenGL, you will be guided through implementing dynamic scene lighting, the use of normal and specular maps, and dynamic soft shadows.

However, no project is complete without being optimized first. The very last chapter will wrap up our project by making it lightning fast and efficient."

What You Will Learn
* Build custom tools, designed to work with your specific game
* Use raw modern OpenGL and go beyond SFML
* Apply GLSL and advanced lighting techniques to really light up the screen with custom effects
* Implement a very fast and efficient particle system by using a cache-friendly design
* Use advanced lighting techniques to add that extra touch of sophistication
* Revamp your code for better structural design, faster rendering, and flashier graphics
* Utilize networking to build better software for group projects.

General / Re: I can't get my program working
« on: January 17, 2017, 03:52:30 am »
what's the problem ?

do you get an error at run time or compile time 

does the program run at all

does it compile at all

are you on windows, linux or mac

what version of sfml ?
which compiler ?

General / Re: Runs in debug but not release (fails to create window)
« on: January 14, 2017, 01:30:34 am »


that d means debug

so that dll is for the debug version of the exe

as eX said, you've got the debug versions of the dll linked with the release version of the exe


where it says
It is important to link to the libraries that match the configuration: "sfml-xxx-d.lib" for Debug, and "sfml-xxx.lib" for Release. A bad mix may result in crashes.

General / Re: Newly Compiled sfml not working.
« on: January 09, 2017, 10:18:33 am »
you shouldn't have to build sfml with cmake

codeblocks and sfml works right out of the box


but learning to compile SFML is a good learning experience
so you might want to continue and get it working

General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: December 17, 2016, 12:00:20 am »
these are Ebooks

I have a year subscription to that site so I get everything

so I'm not positive what exactly what ebook means

I am able to download pdfs of books,
I am able to get some books on my kindle
I am able to read all books on the site as web pages 

so I'm not sure what you got for $5
I guess any of those could be considered an "ebook" 
you may get all of that for $5

Pages: 1 2 3 [4] 5 6 ... 9