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 - Cpl.Bator

Pages: 1 [2] 3 4 5
16
General / Re: Raspberry PI 2
« on: June 08, 2015, 08:00:02 pm »
yes, i known this "bug", but, when i resolve him, i've got another problem :

[ 16%] Built target sfml-system
[ 17%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
In file included from /home/pi/SFML-2.3/src/SFML/Window/GlContext.cpp:66:0:
/home/pi/SFML-2.3/src/SFML/Window/EglContext.hpp:163:12: error: ‘XVisualInfo’ does not name a type
src/SFML/Window/CMakeFiles/sfml-window.dir/build.make:80: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o' failed
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o] Error 1
CMakeFiles/Makefile2:155: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/all' failed
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
 

17
General / Raspberry PI 2
« on: June 08, 2015, 09:30:46 am »
Hello everyone, i've got problem when i compile SFML 2.3 on my PI2 with GLES.
i've got wrong header location :

[ 18%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
In file included from /opt/vc/include/interface/vcos/vcos_assert.h:149:0,
                 from /opt/vc/include/interface/vcos/vcos.h:114,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from /home/pi/SFML-2.3/src/SFML/Window/EGLCheck.hpp:32,
                 from /home/pi/SFML-2.3/src/SFML/Window/EglContext.hpp:33,
                 from /home/pi/SFML-2.3/src/SFML/Window/GlContext.cpp:66:
/opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: Aucun fichier ou dossier de ce type
compilation terminated.
src/SFML/Window/CMakeFiles/sfml-window.dir/build.make:80: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o' failed
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o] Error 1
CMakeFiles/Makefile2:155: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/all' failed
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2


vcos_types.h call vcos_platform_types.h with include in the same location, but vcos_platform_types.h is inside child folder ( pthreads ).

without GLES , SFML-2.3 work fine, but in software... ;)

18
Graphics / Re: Smooth screen scrolling
« on: May 19, 2015, 07:09:51 am »
Hi. search for deltatime on the forum

19
SFML game jam / Re: 4th SFML Game Jam Announced
« on: May 15, 2015, 04:24:31 pm »
i dont understand the votes , Black'n White have the same score and more vote than the choosen theme.
can you explain thats ?

20
SFML game jam / Re: 4th SFML Game Jam Announced
« on: May 15, 2015, 03:46:56 pm »
yes, i voted for all round, now , i cannot connect with my login / password.

edit: That's re-work now... thx.

21
SFML game jam / Re: 4th SFML Game Jam Announced
« on: May 15, 2015, 11:35:52 am »
i cant connect to my account , my password is wrong... very strange behavior.

22
SFML projects / Re: Lord of war - capture the flag
« on: January 05, 2015, 03:09:33 pm »
Thank you very much for the video , this week i will publish version 0.2 with some improvements.

23
SFML projects / Re: Lord of war - capture the flag
« on: January 03, 2015, 06:08:04 pm »
Thanks. & thank for the image tips.
the demo for Linux is available in the first post ! :)


24
SFML projects / Lord of war - capture the flag
« on: January 03, 2015, 01:34:11 pm »


this is a prototype of my game : Lord of war

the goal is simple , capture the flag at the center of the map , you begin the game with 30 pts of reinforcement , with this point , you can call 3 types of ennemy with different cost and ability

the soldier cost 1 , he have a low range and medium ammo / accuracy.
the snipper cost 5 , he have a high range and low ammo & high accuracy.
the gunner cost 15 , medium range and high ammo and low accuracy.

your reinforcement appears on the left , you ennemy, the mujaddid appears on the right.
when your unit is empty and alive, a small icon appear on the top of your soldier with the letter 'A' for ammo , just click on your unit for refill ammo. the refilling have different cost , that use score point : 10 for a soldier , 100 for a snipper , 500 for a gunner.
Your best soldier have different rank ( 3 for now ) with a small icon on the soldier : '^'
All the game is playable only with the mouse , you can scroll the map too

Enjoy!

Win-x86

Linux x64

25
SFML projects / Re: [Game] Croger
« on: December 16, 2014, 07:40:31 pm »
Quote
But how will it look? I don't know. =)
Just run the french version and go to new game , or "nouvelle partie"

26
SFML projects / Re: [Game] Croger
« on: December 16, 2014, 07:00:13 pm »
ok, Android version is not the same than PC , i search for help in PC version... i try on my galaxy note 3 is better ^^
well , Translation is finish , but i've got a small problem with the "Main Procedure" in French "Procédure principale" the sentence is outside the button , can i use tabulation \n :  "Procédure\nprincipale" ?

27
SFML projects / Re: [Game] Croger
« on: December 15, 2014, 11:44:55 am »
the help is not clear, i want to see it in action for verify my translation, how can add langage to the demo ?
French langage is more complex than English.

28
Graphics / Re: Problem with sprite movement.
« on: December 15, 2014, 12:37:37 am »
Probably my english is not correct... i'm french.

you mix Event ( probably in your event loop ) and movement.
you need to know , when an event was fired ( your mouse click ) , is fired just ONE time.
that's explain your problem : you click over and over again to reach the correct position.

and you mix real time input : sf::Mouse::isButtonPressed() and event input : pollEvent()
is not correct , listen Ixrec, and reread the tutorial and my first reply.


edit :

too fast ? use deltatime, use search on the forum.

@++

29
Graphics / Re: Problem with sprite movement.
« on: December 14, 2014, 11:46:15 pm »
your event was fired one time when you click.
you mix event and move, it's bad way. you must use some flag for your problem :


if (event.type == sf::Event::MouseButtonPressed)
{
    if (event.mouseButton.button == sf::Mouse::Right)
    {
        button_right = true;
    }
}

if (event.type == sf::Event::MouseButtonReleased)
{
    if (event.mouseButton.button == sf::Mouse::Right)
    {
        button_right = false;
    }
}



...
...
after event
...
...

if(button_right==true)
{
        // do move here
}
 

process your event , and after, and only after move your stuff.

30
Graphics / Re: view.move not smooth enough
« on: December 14, 2014, 08:15:47 pm »
don't use immediate value for move view or other stuff, search inside tutorial or google for use deltatime with sf::Clock.

Pages: 1 [2] 3 4 5