techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Mar 3, 2008, 06:03 AM   #1
MrSeanKon
200 Posts
 
MrSeanKon's Avatar
 
Join Date: Nov 2006
Location: Athens in love with Anna :)
Posts: 253 (0.11/day)
Thanks: 28
Thanked 65 Times in 24 Posts

I hate threads but can I rewrite this source code??

First of all check this thread cos I uploaded there the part of the cardgame source code and one video.
It's a C# code.
Well what can I do??
MrSeanKon is offline  
Reply With Quote
Old Mar 3, 2008, 06:43 PM   #2
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

Hi MSK,

When exactly to you get the bad animation? Is it only when you click a card?
When the cards are dealt it seems okay (looks like you are using the same routine to move cards in both cases).
Does this happen when you are using seperate threads or when you are not?
You post on AOA was not exactly clear to me.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
The Following User Says Thank You to Kreij For This Useful Post:
Old Mar 5, 2008, 06:43 AM   #3
MrSeanKon
200 Posts
 
MrSeanKon's Avatar
 
Join Date: Nov 2006
Location: Athens in love with Anna :)
Posts: 253 (0.11/day)
Thanks: 28
Thanked 65 Times in 24 Posts

Kreij when I click on a playing card I see this terrible animation.
Did you download the source code??
Cos you have Visual Studio thus you can play with it easily.
Quote:
Originally Posted by Kreij View Post
Does this happen when you are using seperate threads or when you are not?
I have not tested this but I think it does not happen.
MrSeanKon is offline  
Reply With Quote
Old Mar 5, 2008, 12:12 PM   #4
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

Hi MSK,

I did download both the "bad animation" avi and the source code.
The source code runs fine for me. When I click on a card, the animation is smooth, and there is no graphical corruption like in your avi.

I'm running it on a P4D 3.0 with integrated graphics.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
Old Mar 17, 2008, 08:59 AM   #5
MrSeanKon
200 Posts
 
MrSeanKon's Avatar
 
Join Date: Nov 2006
Location: Athens in love with Anna :)
Posts: 253 (0.11/day)
Thanks: 28
Thanked 65 Times in 24 Posts

Thanks again for your effort sorry for my ignorance (cos I am AMD fan) your CPU is dual core?
What's your video card??
Anyway cos I am not sure I will continue using threads....
MrSeanKon is offline  
Reply With Quote
Old Mar 17, 2008, 12:26 PM   #6
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

Yes, CPU is a Pentium 4 Dual Core 3.0GHz w/ 2GB of RAM
Video card is a Radeon X300/X550 128MB (324MHz Code / 196MHz MEM)
OS is XP Pro SP2

Just out of curiosity, MSK, have you ever considered abandoning the windows form application and writing the whole thing in DirectX(Xna) ? Much better having a game loop handle animation than bumping picturebox locations.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp

Last edited by Kreij; Mar 18, 2008 at 07:42 PM.
Kreij is offline  
Reply With Quote
Old Apr 4, 2008, 11:04 AM   #7
MrSeanKon
200 Posts
 
MrSeanKon's Avatar
 
Join Date: Nov 2006
Location: Athens in love with Anna :)
Posts: 253 (0.11/day)
Thanks: 28
Thanked 65 Times in 24 Posts

No mate but is it easier?
Well I am not a professional programmer; I am 35 years old and I cannot read new stuff like a student!
MrSeanKon is offline  
Reply With Quote
Old Apr 4, 2008, 01:29 PM   #8
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

Well, I wouldn't say that it's any easier, but I also wouldn't say it's harder.
You would have to learn about DirectX and how it works, but for 2D applications (as opposed to 3D) it's pretty straight forward.

The advantage of moving to DirectX would be that if you ever wanted to add something 3D to the game, you would have the foundation to do so.

35? Pffft ... I getting close to 50 and I still learn new stuff every day.

Oh, one thing. If you want to try out XNA studio, you need to use VS2005 (or the 2005 express editions). XNA is not compatible with 2008 yet.
You can use the DirectX libraries from any version.
You can do everything in pure DirectX programming that XNA give you, XNA just makes it easier by automatically coding certain things for you.

There are a bunch of good articles on MSDN's Coding4Fun pages. There is also a ton of information on the DirectX and XNA sections.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Going to try ubuntoo but would like get gentoo working redwing26 Linux / BSD / Mac OS X 5 Sep 13, 2011 02:52 PM
C++ source code to compare XML files like ExamXML XML differ mr. Adam Programming & Webmastering 1 Jul 7, 2007 09:17 PM
Entire Quake 3 source code released grazzhoppa News 0 Aug 20, 2005 02:04 AM
VIA releases source code DanTheBanjoman News 0 Apr 13, 2005 10:43 AM
Quake II source code and .NET Breit Games 0 Aug 20, 2004 12:38 AM


All times are GMT. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts