![]() |
|
|
#1 |
![]() 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??
|
|
|
|
|
|
#2 |
|
Hardcore Monkey Moderator
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts
|
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
|
|
|
|
| The Following User Says Thank You to Kreij For This Useful Post: |
|
|
#3 |
![]() 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. I have not tested this but I think it does not happen. |
|
|
|
|
|
#4 |
|
Hardcore Monkey Moderator
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts
|
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
|
|
|
|
|
|
#5 |
![]() 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.... |
|
|
|
|
|
#6 |
|
Hardcore Monkey Moderator
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts
|
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. |
|
|
|
|
|
#7 |
![]() 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! |
|
|
|
|
|
#8 |
|
Hardcore Monkey Moderator
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts
|
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
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
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 |