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

Pages: [1]
1
Haha, well, looks like I've got a bit of reading to do here.

Speaking of which, is std::chrono more accurate than sf::Time?

I've been using sf::Time because of the ease of use, but something tells me std::chrono is more accurate?

2
One of my big concerns about this so far has been making sure that everything stays consistent when framerates change. I noticed early on that imposing a framerate limit will actually change movement speeds and stuff. So that's definitely something I think is worth checking out.

3
Hello, thanks for the constructive reply! I will go ahead and implement these suggestions for the next version. Last night I did quite a bit more work on this, implementing a second movement method, which, instead of moving the character at a static speed, simply ramps up the speed and then ramps it back down using whatever values are specified in the constructor.

After fixing those issues you pointed out, I believe I will try my hand at adding some collision detection!

The newest "version" should be pushed to github in a day or two.

4
Hello guys! I'm a computer programming student who has long been interested in getting into some relatively low-level game programming. I thought about trying out SDL but the object oriented nature of SFML was really appealing to me. So as my first project, instead of working on a game, I've decided to code some "portable" classes that can help in getting a game up and running but are also easily expanded by whoever happens to be using them.

Now, because this is my first project and foray into game programming of this nature, I am very much doing this in a "learn as you go" kind of way, so we shall see where this all goes.

Here is the github link for anyone who is interested: https://github.com/FrankBotos/SFML-Topdown-Player-Character

My plans for this are relatively modest. I want to build perhaps 2-3 other classes that are derived from this, that can be used with different perspectives (for example, 2d side scroller). I will attempt to also add collision detection at some point, though that may be beyond my abilities at the moment.

For now, here is a simple class that will take your sprite sheet and animate it and provide movement!

Hopefully some people actually find some kind of use for this.

Pages: [1]
anything