Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie)
Tank wars clone (newbie) Tank wars clone (newbie)
Tank wars clone (newbie)
Go Back  Xtreme Visual Basic Talk > > > Tank wars clone (newbie)


Closed Thread
 
Thread Tools Display Modes
  #21  
Old 08-17-2004, 08:54 AM
Iceplug's Avatar
IceplugTank wars clone (newbie) Iceplug is offline
MetaCenturion

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


Maybe you should try using
Application.ExecutablePath
and then put the path through a call to
IO.Path.GetDirectoryName()
__________________

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!
  #22  
Old 09-27-2004, 08:21 AM
Needbass2004 Needbass2004 is offline
Regular
 
Join Date: Apr 2004
Location: Ashe County, NC
Posts: 53
Default

Ok, I wrote one of these games when I was 14 yr old in quick basic 4.5 in DOS. That was 8 years ago. I called it War of the Machines....However I recently gave my old worn out computer away and it had the only copy I know of on it and the source.
My version had intro music, level editor, cheats for bigger blasts, and 256 colors




But I can remember the source a little bit.

The Math Formula is here what little I can remember of it.

bullet_pos_x = current_tankcenter_x
bullet_pos_y = current_tankcenter_y
do


bullet_pos_x = (bullet_x + cos(angle) * velocity) + wind ;if you want wind


bullet_pos_y = (bullet_y + sin(angle) * velocity) + gravity

gravity = gravity + "WHATEVER THE GRAVITY FORMULA IS"


loop until bullet_collision_detected = true


Not much info here but it will give you an idea how to handle the function when the weapon is fired.
  #23  
Old 09-27-2004, 08:42 AM
Iceplug's Avatar
IceplugTank wars clone (newbie) Iceplug is offline
MetaCenturion

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

Sadly, this thread is over a month old.
__________________

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!
Closed Thread


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
Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie) Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie) Tank wars clone (newbie)
Tank wars clone (newbie)
Tank wars clone (newbie)
 
Tank wars clone (newbie)
Tank wars clone (newbie)
 
-->