SFML community forums

General => SFML projects => Topic started by: man'O'war on March 27, 2012, 06:11:24 pm

Title: OCard !!
Post by: man'O'war on March 27, 2012, 06:11:24 pm
Hi
I'm Dr.Crow 20 years Old, newBiE prOgrammer, first Year @university ! but i have  few knowledge abOut C++/Sfml & Qt ! sO,
I was working on a game-card project recently , sO i want to present it for you !in the same time, seekIng fOr advice !
because it become hardEr and little complicated to manage! eSpecially when a bug occur il the middle of nOWhere  :P ;D
the game is nOt finished,just the basics feature for a game card ! ! nO IA Available ! ;D

Project's Information
Name: OCard !!
Style : A Card-Game TurnPerTurn (TPT)!! ( OGame style )
Version: Testing version !
Langage : C++/SFml & Qt
Link : Qt's dll ( QtGui4.dll , QtCore4.dll ) --> http://www.mediafire.com/download.php?6ob16uocetoktj1
Link : Sfml's & MinGW's dll ( sfml-graphics.dll, sfml-system.dll, sfml-window.dll + libgcc_s_dw2-1.dll , mingwm10.dll) --> http://www.mediafire.com/download.php?3xcz4ltn1c9p24d
Link ( Ressource & Exe ) ( plateForme : Windows ) --> http://www.mediafire.com/download.php?pxa912qh64cc21i
ScreenShot !:: URL
http://www.mediafire.com/download.php?d6ppdwdmvpa718v
About OCard !
How to play !
Simple ! First OF all , draw a Card from your own deck and add it to your hand , then, you can Deploy a Vessel card in the your FleetZone , and / or use a tactic card ! only one Vessel Card can be deployed per turn per player Contrary to tactics card !
FleetZone & TacticZone are Limited Zone, sO , each card player occupe one place in the Field !
if you dont have any freeZone, you can play card of this type !
after this, you déclare battle to your Opponent.... or not .  ;D
Then, you Ends your turn .


Until Now, cards are in two spicies , Vessel & Tactics, i'll add other Types later ...
Each Player has to Collect a sum of RESSOURCES to win  ( by attacking )! ( not avaliable in this version )

Inside Turn :
Every turn is compounded of Steps :

Few Fundamental notion

Quote
Eg :A Vessel inOffensive mode attacks a Vessel in Retreat Mode !
Battle Calulation is applied between ( WeaponPoint of the attacked(offensive) & ShellPoint of the target(Retreat) )


inGUI :

Quote
Check the LOGer in the middle of the Field, it indicates the information of the actual happening events ! ( in French   ::) )

Add-Ons feature !  8)
I'll introduce the Quantifiers of the game ! What each player dispose, and what player win in afterBattle !.
til nOw, there is Two types :
EnjOy, and thank you !

Explaining my problems , i have no experience for such a big game ! ( getting complicated each time i progress in  :-\ ) !
I'm using a GameManger! which include players & manage the whole game in a freeThread !
some times, sfml window does not get updated until the function is over !

I explain : may be you've noticed that the program takes a while to load ( to be launched) ! (just few second but, in fact: this is the first draw Code ( animated style ) !
[/list][/list][/list][/list]
Code: [Select]
firstDrwa()
{
     for ( int i = 0; i < 5; i++ )
     {DrawCard();
     sf::Sleep(x);}
    //each x.second, the player draw a card, until he draws 5 !then, the game continue ....
}
{
In my program, i'm using two thread , ( the man thread, and the thread of the GameManager )
HowEver this code is in theThread( GameManger) , and the draws ( of sprites ) are in the main Thread :??:  :o :(
*Same Thing when j've tried to animate a drawAction ! from deck to Hand ! if the animation takes 3seconds !
Code: [Select]
1.When ready to draw !
2.the window freezes ( 3 sec )
3.then the card is directly in the hand !

There is no animation of the sprite ! ( the moving )  :-\
any suggestion !! ? !

thank you & have a nice day !
Dr.Crow !