2D soccer game
2D soccer game
2D soccer game
2D soccer game
2D soccer game
2D soccer game 2D soccer game 2D soccer game 2D soccer game 2D soccer game 2D soccer game 2D soccer game 2D soccer game
2D soccer game 2D soccer game
2D soccer game
Go Back  Xtreme Visual Basic Talk > > > 2D soccer game


Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2006, 04:56 AM
melbmartin melbmartin is offline
Regular
 
Join Date: Apr 2004
Posts: 67
Default 2D soccer game


Okay, this is basically just me trying to get an idea of what would be the best way to try and tackle this program. The basis of it is like Football Manager and Championship Manager where circles represent each player and they kick the ball around and score goals.

My aim is to create a game like this for my beloved AFL (Australian Football League) but for arguments sake, lets just consider it to be soccer because everyone knows soccer and when looking from top down at a bunch of circles with numbers representing players, its hard to tell the difference lol.

I'm just asking for a little heads up in what would be the best way to draw the graphics. I am aware that using 36 (AFL has 2 sides of 18 players) pictureboxes or labels would result in a lot of flickering as they are all going to be moving around simultaniously.

I know some GDI+ like the very basics but it isn't overly hard to learn more about. Would this be the best way to program this?

The only 'animation' would be the 36 players (a circle with a number represents a player) moving around the oval (AFL is on an oval, not a square pitch) and yeh the ball moving from one player to another and eventually to the goals.

My worry is that several times a second, the computer will be cycling through each of the 36 players and running a very long set of code that decides what they are going to do as there are thousands of options every second for each player on the ground, like in all sports. I worry that this would tax the computer to a point where it is just unbearably slow but that is just a prediction.

anyway, summing things up, what method would you guys recommend using to create something like this and if there is anywehre that you can point me it'd be much appreciated.
Reply With Quote
  #2  
Old 04-10-2006, 04:42 PM
Iceplug's Avatar
Iceplug2D soccer game Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

Definitely GDI+ would be a better solution than pictureboxes.
You may want to check out my tutorial on reducing flickering from GDI+ intensive applications.

I wouldn't be able to tell you anything on 36 players apiece taxing your system til the collapse but I don't think that would happen unless you have a very sophisticated algorithm for determining the player's movement.

Animation is something that you would add after you've got the objects moving on the field, because it requires more artwork and, depending on how your players are implemented, some way of handling their animation frames. This is something that will be very nice under good GDI+ control.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #3  
Old 04-10-2006, 11:40 PM
melbmartin melbmartin is offline
Regular
 
Join Date: Apr 2004
Posts: 67
Default

well when ever I refer to animation I mean just having the circles moving smoothly.

the algorithims to determine player movements will be run every second so the screen could simply be updated every second showing where the players are (so they arnt constantly moving)
Reply With Quote
  #4  
Old 04-11-2006, 05:19 PM
Iceplug's Avatar
Iceplug2D soccer game Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

A second is a very long time from a programming stand point .

For animating the circles (moving smoothly), you are going to need to use position and velocity vectors to keep track of the ball and make it move smoothly.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
Reply


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

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
2D soccer game
2D soccer game
2D soccer game 2D soccer game
2D soccer game
2D soccer game
2D soccer game 2D soccer game 2D soccer game 2D soccer game 2D soccer game 2D soccer game 2D soccer game
2D soccer game
2D soccer game
 
2D soccer game
2D soccer game
 
-->