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 - bolbozaur

Pages: [1]
1
General / SFML books - reading order?
« on: December 12, 2019, 10:36:19 pm »
What should be the "reading" order of these books?

All of them share the same publisher:
- SFML Essentials (Milcho G. Milchev)
- SFML Blueprints (Maxime Barbier)
- SFML Game Development By Example (Raimondas Pupius)
- SFML Game Development (Artur Moreira, Henrik Vogelius Hansson, Jan Haller)

I suspect there's no just one correct answer, hence I am looking for a general advice.

Assume:
- solid general programming fundamentals (structural, oop, web, low level, data structures, etc.)
- no (or very basic) game programming experience
- no (or very basic) SFML programming experience

2
General / Collision detection: two identical cases - how to solve?
« on: November 23, 2019, 07:21:50 pm »
I am looking for a conceptual solution to my problem. It's a simple platformer-alike game where player can move horizontally during free-fall.

Consider those two cases:


In the first case, from game experience point of view, the player should land on top of the box; and in the other case he hit the left edge, hence the player should fall down.

However, from my code point of view ("real behaviour"), both those collision detection cases are identical. I am not sure how to separate them.

In both cases the vertical velocity is positive (falling down) and the user is moving with some fixed positive horizontal velocity. (moving right)

From a collision-standpoint the two cases are identical, I think. How can I tell whether I should put the player on top of it or let him fall?

3
SOLVED!

Seems like my compiler is 32-bit. Downloading 32-bit SFML fixed the problem.

4
General / SFML installation C::B - undefined reference to '__imp___XXXXXX'
« on: December 18, 2017, 08:34:30 pm »
Hello.

I just installed SFML and when trying to compile any code I get plenty of
undefined reference to '__imp___ZN2af68...' errors.

So naturally I went to google and it seems like it's common problem. I tried installing SFML again reading installing guide very carefully - same problem.

I'm using Code::Blocks 16.01 with pretty much all default settings (GNU GCC Compiler, seems to be 4.9.2 version according to THIS code I ran) and I downloaded SFML 2.4.2 - GCC 4.9.2 TDM (SJLJ) - 64bit. Also tried downloading SFML 2.4.2 - GCC 6.1.0 MinGW (SEH) - 64bit.

So what have I done step by step is:
1. Download SFML and extract it somewhere. Open C::B and start new empty project.
2. I went to Project Properties -> Project's build options... -> Search Directories and:
    2.1.: -> Compiler: added ...\SFML-2.4.2\include
    2.2.: -> Linker: added ...\SFML-2.4.2\lib


3. Then went to "Release" (from the left menu) -> Linker Settings -> and Added these files:
- ...\SFML-2.4.2\lib\libsfml-system.a
- ...\SFML-2.4.2\lib\libsfml-window.a
- ...\SFML-2.4.2\lib\libsfml-network.a
- ...\SFML-2.4.2\lib\libsfml-audio.a
- ...\SFML-2.4.2\lib\libsfml-graphics.a
4. Then went to "Debuf" (from the left menu) -> Linker Settings -> and Added these files:
- ...\SFML-2.4.2\lib\libsfml-system-d.a
- ...\SFML-2.4.2\lib\libsfml-window-d.a
- ...\SFML-2.4.2\lib\libsfml-network-d.a
- ...\SFML-2.4.2\lib\libsfml-audio-d.a
- ...\SFML-2.4.2\lib\libsfml-graphics-d.a

Also tried adding these files in reverse order.

5. Copied all .dll files from "...\SFML-2.4.2\bin" to the location of .exe file "...\Kurs SFML\bin\Debug".

What did I miss? What did I do wrong? I tried re-doing it over and over from the beginning, yet same result - undefined reference.

I better start questioning my programming capabilities.  ;D

Thank you for any support. :)



Pages: [1]