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

Pages: [1] 2 3 ... 15
1
Network / Re: 8 bit bools in packets instead of 1 bit
« on: July 20, 2014, 03:47:34 pm »
Thanks again! You've helped me think a few ideas through

2
Network / Re: 8 bit bools in packets instead of 1 bit
« on: July 18, 2014, 11:48:05 pm »
I observed some open source game projects to use bit streams, and so I was inclined to ask. Thanks for the response!

Edit: Sort of curious about "horribly inefficient" (net resources more valuable usually?)

Edit: Also, I wonder if typical network compression on outgoing packets somehow fixes this

3
Network / 8 bit bools in packets instead of 1 bit
« on: July 17, 2014, 10:19:39 pm »
Why does the Packet class send 8 bits for bool data instead of 1?
Code: [Select]
Packet& Packet::operator <<(bool data)
{
    *this << static_cast<Uint8>(data);
    return *this;
}

4
General discussions / Re: Linking dependencies
« on: October 19, 2013, 11:53:28 pm »
Using MinGW I did the following setup:

Defines
GLEW_STATIC
SFML_STATIC
UNICODE

Libraries
sfml-audio-s
sfml-graphics-s
sfml-network-s
sfml-window-s
sfml-system-s
sndfile
openal32
jpeg
glew
freetype
ws2_32
gdi32
opengl32
winmm

It compiles and runs just fine - but I might be doing too much

5
Network / Re: Appending two packets together
« on: September 13, 2013, 05:16:13 pm »
That was not obvious to me unfortunately. Thank you for the help!

I thought the data included some type of header too (specific to the packet), but I guess not.

6
Network / Appending two packets together
« on: September 13, 2013, 01:47:40 pm »
Is it possible to append two packets together?
Code: [Select]
// the first packet
sf::Packet packet1;
packet1 << std::string("eat") << std::string("IceCream");

// the second packet
sf::Packet packet2;
packet2 << std::string("run") << FORWARD_RUN;

// the two above packets appended would be read like
sf::Packet packet1plus2;
std::string cmd1, cmd2, item;
int runDir;
packet1plus2 >> cmd1 >> item >> cmd2 >> runDir;

7
General discussions / Re: Default font removed in SFML 2
« on: December 19, 2012, 11:33:49 pm »
Please update the documentation to reflect this. It confused me for a few minutes.

8
Graphics / Looping/scrolling sf::View?
« on: May 05, 2011, 08:57:48 pm »
I'm not generous enough to write a tutorial, but I'll give you a few hints on one way to implement infinitely looping views:

* The background image will have to contain redundant pixel data on it's right and bottom sides that replicates the left and top sides of the background image respectively.
* The amount of redundant pixel data on the background image's right and bottom sides pertains to how many pixels can be seen in the application at one time minus one.
* The redundant pixels can be added to the image file or dynamically added to the image at runtime.
* The view will reset to the opposite side every time it is about to exceed the image pixels on the X or Y axis.

9
General / No LoadFromX constructors design choice
« on: May 05, 2011, 06:50:55 am »
Why do classes like sf::Image not have overloaded constructors that implicitly call LoadFromX where X could be, for example, File?

I'm not suggesting this feature, but I'm questioning the design choice to not include it in order review my own choices in my application.

10
General discussions / Database support?
« on: May 05, 2011, 03:01:29 am »
SFML will not run scripts (e.g., PHP) for you, manipulate databases (e.g., MySQL) for you, or run servers (e.g., web servers) for you.

However, it allows you to interface with servers through the TCP, UDP, HTTP, and FTP protocols and
it allows you to code your own TCP-derived and/or UDP-derived server (e.g., web server, FTP server, or a custom server).

11
Graphics / Looping/scrolling sf::View?
« on: May 05, 2011, 12:57:46 am »
You should attempt to master views and the solution will hopefully become apparent.
SFML 1.6 "Using Views" tutorial

Getting real-time mouse input will be necessary to set the center position of the view
SFML 1.6 "Handling Events" tutorial (scroll down to the "Getting real-time inputs" section)

12
General / undefined reference to `sf::SoundBuffer::SoundBuffer()'
« on: May 05, 2011, 12:53:19 am »
You are not setting up the project correctly in Code::Blocks.

13
General / Looking for a SFML demo.
« on: April 28, 2011, 03:57:15 am »
You shall look no further than the examples folder inside the SFML SDK.

14
General / libgcc_s_dw2-1.dll missing ?
« on: April 27, 2011, 02:06:23 pm »
I should have not used the word "renamed" to describe to the user that he needs to use "-static" and not "-static-libgcc".
They're separate parameters that have existed for many previous versions. My goal was just to help him weed the dependencies out of his application.

15
General / Clamp to Screen
« on: April 27, 2011, 01:59:55 pm »
If you're still having problems and post a minimal, but compilable, piece of code that demonstrates an attempt to clamp the character to the bounds of the screen,
I'm confident that someone will be able to help you.

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