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

Pages: 1 [2] 3 4
16
Graphics / Dissapearing text SFML2
« on: February 06, 2012, 02:16:25 pm »
I have the same problem on my client program. This could be caused by using a thread without an opengl valid context. But by adding a such context to my thread function, the problem still remains. Maybe should I call additionally some OpenGL functions like glFlush() ?

17
Graphics / How to center sf::Text (SFML2)
« on: January 31, 2012, 12:13:28 am »
Code: [Select]
sf::Text Text;
sf::FloatRect rect = Text.GetGlobalBounds();


Global can be replaced by Local.

18
SFML projects / my new fighting game demo
« on: January 13, 2012, 06:34:08 pm »
Helzeimer powaaa  :lol:

19
SFML projects / C++ Source Code
« on: January 07, 2012, 12:57:32 pm »
Hallo bobcorn !

Here is a forum in the international language. You must write in English, in intend that people understand you.

Bis bald

20
SFML projects / Heralds of Alaegis (dota 2d multiplayers)
« on: January 01, 2012, 04:29:42 pm »
Hi there,

I'm currently working on a correct GUI, It remains many things to do to reach the design that I expect, but there is a first draft of my work :


21
SFML projects / Heralds of Alaegis (dota 2d multiplayers)
« on: January 01, 2012, 04:00:01 pm »
Sure,

A dota Game is a game where two teams composed of 3 or 5 players (named Heroes) fight each other to defend their Nexus (the building which represent the team) and attack those of their opponent. They are helped by minions, who are basic soldiers controlled by the AI. Their role is to protect the heroes  against the other heroes or ennemy towers standed over the ennemy land. The minions are created wave per wave at a nexus, and go across the map in search of enemies to fight. If a player is killed for some reason, he gets a time penalty before he can play again, and respawns in his base. At any moment, he can at the market (with earned gold by waiting or killing ennemy units), buy items to improve his abilities. When the ennemy's defenses are down, the inhibitor building can be destructed, and a Super-Creep is created each new minion's wave. The ennemy is flooded and surrounded by too many minions and generally cannot defend the Nexus further. The game ends when this final building falls.

They are many other aspects that I didn't mention here, I'll do It in future posts if peoples are interrested.  :D

22
General / For some reason this error wont go away.
« on: January 01, 2012, 01:09:11 am »
Where is the main function ?

23
SFML projects / Heralds of Alaegis (dota 2d multiplayers)
« on: December 31, 2011, 07:27:34 pm »
Hello everybody !

Let me introduce myself; my name is Pierre-Emmanuel, I am 24 years old, and I'm a C++ programer since 4 years. Sorry if my english is not so good than yours, but this is not my natal langage. I first create a framework to easy develop games and graphical softwares, and then I wrote It again and again to reach a satisfying quality.

I'm currently working on a multiplayer game project in the style of Defense of the Ancients in 2D, style which fascinate me since I played for the first time to the game League of Legends (really great free-to-play game, by the way :wink: ). Obviously, due to the 2D's constraints on this type of game, this is not an easy job at all ! :D
I think I can handle alone the code (braving a lot of dangers :lol: ). On the other side, there is yet no characters, the graphics are catched from pictures on the web (oops ! :oops: ), there is no ambiant sounds, no musics, the scenario could stand on a sticky note, the gameplay is hesitant. In short, I really need some skilled peoples fascinated by the heroic fantasy things, who easy understand the Dota game mechanisms, to help me to create an original and great game environnement !

There is a sum of the current state of the game :

Scenario ->

The world of Alaegis such it was know, full of quiet and wonders, has vanished since a long time ago. Some darks plans, planified by powerfull and malicious peoples, have been applied to perturb a millenary peace between two races which have a common origin. On a side, the Amhrani peoples, skilled and agile wooden elves, masters of the living things and elements, and on the other side, the Sangrins, ingenious and powerfull urban elves, masters of the metal and Science. The war began here and there, and made many ravages, each side refering the blame on the other one. But in the horror of war, was born some incredibles warriors, with an heroic bravery, risking their life to defend the values they believed. Those ones were named gardian of the blessed Temple of their race, the World Tree of Tahemniel for the Amrahni, and the Omnipotent Castle of Forge-Town for the Sangrins. The loss of this symbol for one of the both side, would signify the inconditional victory of the other side, such the moral strength of each people in this world is linked to It.

Progression of the code ->

- Fights sytem operational
- Graphical interface almost operational but Its aspect is not definitive
- Lights handling and graphisms operational
- Physical handling in progress
- Animations handling in progress
- Sounds handling in progress
- Network handling in progress
- Playable characters : 1 (6 planned in total, 3 each side)
- Actual Buildings : Nexus, Tower (soon Spawn and Inhibitor)
- Actual Mobs : Minions (soon Super-Minions and neutral monsters (in underworld !))

Screenshots -> From the oldest to the most recent :

 

Of course, I also really need some fresh good ideas, because I'm starting from almost nothing, and every are good to take. The game's code and the framework's code are free and will be soon released, when they will be more advanced. I'll update regularly this post to report the most recent new features and show you the current state of the game.

Thank you for reading and happy new year ! =)

24
General / SFML Intenger to sf::String?
« on: December 26, 2011, 09:12:55 pm »
I looked in bits/basic_string and I found the same condition.
I'm already using -std=c++0x flag. I tried -std=c++11 with no success.
Here is my code, but I think this is correct :

Code: [Select]
#include<string>

int n = 8;
std::string s = std::to_string(n);

25
General / SFML Intenger to sf::String?
« on: December 26, 2011, 04:14:06 pm »
I just tried to compile a code using std::to_string with GCC 4.6.1 (c++11 enabled) and It seems to be not included in the <string> header (I got an error telling me that) ! :s

Do you have an idea for that ?

26
Graphics / Move Object from Point A to Point B
« on: October 29, 2011, 08:29:10 pm »
Hi,

You need to interpolate the position of the sprite at each step of time, using a function like this :

Code: [Select]
sf::Vector2f Interpolate(
const sf::Vector2& pointA,
const sf::Vector2& pointB,
float factor
) {
if( factor > 1.f )
        factor = 1.f;

else if( factor < 0.f )
        factor = 0.f;

return pointA + (pointB - pointA) * factor;
}


Code: [Select]
sf::Vector2f pointA = ..., pointB = ...;
float factor = 0.f, speed = .1f;
sf::Sprite sprite;

sprite.SetPosition(pointA);

while( App.IsOpened() )
{
    factor+=(App.GetFrameTime() * speed);
    sprite.SetPosition(Interpolate(pointA, pointB, factor));

    ...
}

27
General discussions / The new graphics API in SFML 2
« on: September 17, 2011, 12:52:36 am »
I agree too :D

28
SFML projects / iCEĀ³ - clone of Minecraft
« on: July 26, 2011, 09:33:05 pm »
On Windows 7, I don't have Z-buffer issues at all. :D

29
SFML projects / iCEĀ³ - clone of Minecraft
« on: July 22, 2011, 04:04:11 pm »
Oh my God ! I just dreamed to make a minecraft-clone too !
I'm gonna test It ! Congrats !

30
Graphics / Primitives, more points in polygon than are in code
« on: July 18, 2011, 04:17:14 pm »
You just cannot use non-convex shapes with SFML. This is an openGL limitation.

Pages: 1 [2] 3 4