2D hex based game.
2D hex based game.
2D hex based game.
2D hex based game.
2D hex based game.
2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game.
2D hex based game. 2D hex based game.
2D hex based game.
Go Back  Xtreme Visual Basic Talk > > > 2D hex based game.


Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2006, 03:32 AM
reload reload is offline
Newcomer
 
Join Date: Aug 2006
Location: Australia
Posts: 13
Talking 2D hex based game.


Hi All,

Firstly please excuse the noob post.

OK im designing an old school hex map based wargame, (yes I am showing my age here ) Which is all well and good.

Now I have created the basics of the game and have used the map as one giant Picturebox with a file that contains a picture of the hex map that I would like to use.

Now I have friendly and enemy units (pictureboxes) moving around by adjusting the co-ordinates of the picture boxes, which works great. I can even calculate the number of hexes apart they are based on the pixel distance and some trigonometry.

Now this is all and fantastic , but gosh its ugly in terms of programming!!! And it sure isn’t scalable! I mean how am I going to port this for people to play online?

So my question is this, surely im not the first person to want to do a Hex map 3D style game, and I saw a neat post by Iceplug (and yes he sure does live up to his guru status )

Does anyone know of a resource or have some code that would be worthwhile to have a look at?

Thanks again and sorry to be so noobish!


Ryan
PS anyone ever play battletech?
Reply With Quote
  #2  
Old 08-11-2006, 10:39 PM
reload reload is offline
Newcomer
 
Join Date: Aug 2006
Location: Australia
Posts: 13
Default Update and thanks to ICEPLUG !

Hi All, ok here is an update, i found a post thanks to Iceplug, and expanded his work, i tried to reply to that post in which i found his example but i didnt have access or something. so here it goes.

i have included the cose which originated from IcePlug, and i have modified.

basically here is the summary of changes.

Iceplug's map layed the hex grid out in a "diamond shaped" pattern. this pattern is extremely effective in showing hexes, but its not that exciting in terms of using a lot of screen real estate. so i made some changes.

I wanted to lay it out as a flat map style (which you will see) i have been successful in this with the exception of a few minro things, which no doubt ill get to) but one thing im really stuck on, and im hoping that you all may be able to help.

The drawn map "scales itself" to the size of the form, so if i make a bigger form it just enlarges the map which has been drawn, ideally what i would like to do, is have the map in one part of the form, and other information about units etc in the other part of the form.

Is there a way to stop this scaling and to show the hexes and the images in the actual size that they are made in (in this example 30x30).

Many thanks and again i salute Iceplug!

Ryan
Attached Files
File Type: zip TileMap5.zip (307.5 KB, 37 views)
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 hex based game.
2D hex based game.
2D hex based game. 2D hex based game.
2D hex based game.
2D hex based game.
2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game. 2D hex based game.
2D hex based game.
2D hex based game.
 
2D hex based game.
2D hex based game.
 
-->