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

Pages: 1 [2] 3 4 ... 9
16
General / Non ASCII characters
« on: July 06, 2011, 04:01:43 pm »
It doesn't really matters. Just let me know which one I should use when I'm using Notepad to save file, I can choose from four:
ASCII
Unicode
Unicode Big Endian
UTF-8

17
General / Non ASCII characters
« on: July 06, 2011, 03:30:28 pm »
Hi, I'm from Poland and here we have special characters like:
ą,ę,ź,ż,ć,ó now i have a txt file where I have:
żźźżóóóóó
And of course when I'm trying to display it in SFML I get only óóóó, so I tried to add character set liek in tutorials:

sfUint32 zbior[] = {0x0104,0x0106,0x0118,0x0141,0x0143,0x00D3,0x015A,0x0179,0x017B,0x0105,0x0107,0x0119,0x0142,0x0144,0x00F3,0x015B,0x017A,0x017C,0x0};
   sfFont_CreateFromFile("arial.ttf",50,zbior);

And when I set this Font to string I get nothing displayed. Any solutions?
Should I convert all chars readed from file to sfUint32 array and use sfString_SetUnciodeText?

18
General / Double click event
« on: July 05, 2011, 10:10:11 am »
Okay, thanks. I guess I must also check if second click happend in the same place as first one right?

19
General / Double click event
« on: July 04, 2011, 11:10:42 pm »
I work with C, it's just c++ compiler. (Yes I know, be next blaming me)

The thing is that when I'm doing double click I get SINGLE first so it looks like(I'm not sure if it's wrong or not"):

SINGLE
DOUBLE
SINGLE
DOUBLE

20
General / Double click event
« on: July 04, 2011, 10:43:33 pm »
No, it's CSFML 1.6

21
General / Double click event
« on: July 04, 2011, 01:10:46 pm »
Code: [Select]

int main()
{
sfClock* clock =  sfClock_Create();
sfWindowSettings Settings = {32, 8, 2};
     sfVideoMode Mode = {800, 600, 32};
     sfRenderWindow* App;
     sfEvent Event;

     /* Create the main window */
     App = sfRenderWindow_Create(Mode, "CSFML", sfClose, Settings);
     if (!App)
         return EXIT_FAILURE;
     
     /* Start the game loop */
     while (sfRenderWindow_IsOpened(App))
     {
         /* Process events */
         while (sfRenderWindow_GetEvent(App, &Event))
         {
             /* Close window : exit */
             if (Event.Type == sfEvtClosed)
                 sfRenderWindow_Close(App);
if (Event.MouseButton.Button == sfButtonLeft && Event.Type == sfEvtMouseButtonPressed)
{
if (sfClock_GetTime(clock) <= 0.5f)
std::cout << "DOUBLE\n";
else
std::cout << "SINGLE\n";
sfClock_Reset(zegar);

}
         }
         /* Clear the screen */
         sfRenderWindow_Clear(App, sfBlack);
 
         /* Update the window */
         sfRenderWindow_Display(App);
     }
 
     /* Cleanup resources */
sfClock_Destroy(clock);
clock = NULL;
     sfRenderWindow_Destroy(App);
 
     return EXIT_SUCCESS;
 }


Not working quite as I would like it to work.

22
General / Double click event
« on: July 04, 2011, 11:38:08 am »
Okay, it's killing me. I know that there is no built in double click event so I wanted to implement it by my own with usage of clock. Default Windows value is 500ms so I tried to implement it by measuring time between each click but I can't get it to work. Can anyone post code to it or some advice?x_x

23
General / Questions about game programming
« on: June 25, 2011, 05:45:38 pm »
Just as I thought, any soultions how can it be resolved, any tutorials?

24
General / Questions about game programming
« on: June 25, 2011, 01:43:32 pm »
Sorrz for double post:
"Paperdolling, drawing different parts of a person at certain positions. Eg, helmet, armour, legs, arms, weapon. "

Could You write something more on it? So I basically draw every piece seperatly based on what characters wears, but how animate it later? Keep animations frames of every item and then just play?

25
General / Questions about game programming
« on: June 24, 2011, 03:42:15 pm »
Thanks, will be helpful.

26
General / Questions about game programming
« on: June 24, 2011, 10:35:57 am »
That would be nice if it is not a problem.

27
General / Questions about game programming
« on: June 23, 2011, 10:45:36 am »
Thanks.

I think I will start with normal RPG, MMO may still be not in my reach. I guess I better start projecting. Thanks for time. If You have any hints please share them.

28
General / Questions about game programming
« on: June 21, 2011, 05:19:27 pm »
Hi, summer is coming and I wanted to create at least a base for MMORPG 2D isometric game, I say base because I know I won't achieve anything big in 2 months.

My questions:
1)Character can wear varius types of weapons, how can I "stick" image of for example sword into hand of character?
2)What about weather effect like snow,rain,desert storm. Should I use particile system?
3)When shaders can be useful?
4)What about lights and shadows in SFML?
5)What about collision detection, should I only mark some terrains as "nonclickable" and other as "clickable"
6)How should I maintain multiple clients? I think spawning 100 threads for 100 clients is a bit of performance waist?
7)About optimization I think drawing only what is visible and sending data about things that are in player's field of view
8 )I need simply GUI system, which GUI made in SFML can You recommend and why? I need simple buttons, entryboxes for single lines of text and windows.

Thanks in advance for help


Thanks in advance.

29
General discussions / When official SFML 2.0 is going to be realised?
« on: June 08, 2011, 09:21:55 am »
Okay, I will use 2.0. Thanks.

30
General discussions / When official SFML 2.0 is going to be realised?
« on: June 08, 2011, 09:10:59 am »
Hi, I just found Laurent post saying:
Quote
Definitely SFML 2. It's just one (or two) major feature away from the public release, the only thing that you have to take in account is that the graphics API will change a lot.

It was posted on 1 Jun.

I wonder when official release is going to happend because I want to use SFML in my project for summer project(coding will start in 1 month) and I would like to use official API and I know there are big differences between 1.6 and 2.0

Pages: 1 [2] 3 4 ... 9
anything