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

Pages: [1] 2 3 ... 12
1
Window / Re: Window not showing anymore
« on: October 26, 2020, 05:16:27 pm »
More like you are doing something that you shouldn't be doing. Don't have global SFML resources like this. Have a proper design, and singleton is pretty much always bad.

2
Graphics / Re: rectSourceSprite out of scope
« on: August 11, 2020, 05:19:32 pm »
What is rectSourceSprite? sf::Sprite does not have this member. And SFML does not have a class called rectSourceSprite either.

Either post the whole code (or at least minimal and reproducible), or make it clearer what you are trying to achieve. Why do you not want to use setPosition?

3
General / Re: Debug works perfectly, Release works halfway?!
« on: March 03, 2020, 02:47:13 pm »
The release lib are those without the "-d". Make sure you link correctly to those.

You are right in saying your compiler cannot change the way it reads your algorithm, however if your code has undefined behaviour, and other bugs, the compiler can do a lot of stuff that maybe you don't want. My guess if the libraries are fine, is that you might have some bug that doesn't show in debug because of the debug is built, but it does show in release. Without the code, kinda hard to know for sure though, and at this point, I'd suggest to build release with debug info and go with a debugger.

Otherwise, try to make a minimal reproducible and complete code for us to help you.

4
Window / Re: Valgrind reports 464 bytes lost in simple Window program
« on: February 17, 2020, 02:17:47 pm »
That's normal. Due to some global variable in the SFML code. No worries there.

5
Feature requests / Re: Friendly string mapping to Keyboard::Key
« on: January 27, 2020, 03:04:29 pm »
No I did not. Jokes/irony does not translate well in text. But it's fine :)

However, the original answer remain. C++ does not have a ToString that can be overriden.

6
Feature requests / Re: Friendly string mapping to Keyboard::Key
« on: January 23, 2020, 04:03:06 pm »
Unlike C#, C++ classes don't inherit from an root object class, that contains the ToString function. We are to this day still stuck in doing our own mapping. Thor does provided a mapping, and it's really not that hard to do.

As for prompting people to move to whatever thing, let just people use whatever they want :)

7
Network / Re: Linking error only against sfml-network on linux
« on: January 20, 2020, 06:31:09 pm »
Nothing in 2.5.1 changed for that class. My guess is that either your compiler is not actually fully compatible, or you've not installed the package correctly. I suggest rebuilding 2.5.1 yourself instead of using the Linux package. It's just safer for compatibility.

8
General / Re: Sprite Pointer?
« on: January 09, 2020, 05:32:56 pm »
1- This is basic C++. I suggest reading a good book before doing anything like this if you don't know this.
2- Sprite are lightweight, texture are heavy. Just create a sprite on the fly.
3- Read 1 again. This is very basic C++ and you should know this before trying to make a game.

9
General / Re: STL List object with sprite
« on: December 18, 2019, 06:28:17 pm »
You need to make sure you scope your memory correctly. A resource manager is what you probably need. This is not a good case for a list.

As for the check with chestAmount, there's nothing in the code here that indicates that the size of your list is equal to the chestAmount. The runtime error says it. You are trying dereference the end iterator. So you are going too far.

10
SFML projects / Re: SFML Gameboy Emulator
« on: December 17, 2019, 03:21:16 pm »
Awesome, can't wait to dive into that code! Thanks for sharing!

11
General / Re: STL List object with sprite
« on: December 17, 2019, 03:18:36 pm »
I'd be really curious to see why a list is better than a vector in your case (in most case, a list is not better than a vector). Also, the difference between his and yours is that he check if the iterator has reached end(). You don't which is exactly what your error is saying. Cannot deference end list iterator.

12
There's quite a few pattern that can be found here. I suggest you read on the state pattern.

13
SFML projects / Re: 2D Game Engine
« on: December 10, 2019, 02:00:54 pm »
Game Engine in general are usually optimized. They are also most of the time developed with a game. There's a reason why people say "make a game, not an engine". One of the main reason why people uses a 3D engine to make 2D game is because, 2D is 3D but with just a dimension cut off. Ultimately, most of the feature of one can be applied in some way to the feature of the other one.

Do you have anything to show us? Because saying you want to make an optimized engine is great, but can you do it, and please defined optimized (performance, memory wise, etc.)

14
General discussions / Re: Android x64 support
« on: December 05, 2019, 03:13:41 pm »
PR are always welcome. Remember that the SFML team is working on their spare time for free. If you have the solution, or you are willing to put time on this, go ahead.

15
SFML projects / Re: SFML Gameboy Emulator
« on: November 29, 2019, 07:05:24 pm »
Wow that is very nice.

If I may, I'd suggest publish it even if not clean. Facilitate code review, but also shows the evolution and things work!

But good job!

Pages: [1] 2 3 ... 12
anything