Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am trying to make a slitherlink game, and am not too sure how to approach creating the game, more specifically the grid structure on which the puzzle will be played on.

This is what a empty and completed slitherlink grid would look like:

http://i.stack.imgur.com/U1kXn.gif

The numbers in the squares are sort of clues and the areas between the dots need to be clickable:

http://i.stack.imgur.com/RMwiv.gif

I would like to create the game in VB .NET. What data structures should I try to use, and would it be beneficial using any frameworks such as XNA?

share|improve this question

1 Answer 1

Hey Noupoi and welcome to gamedev.stackexchange! Starting with your first question:

As your game board will be a nice rectangular thingy you can use an array. http://msdn.microsoft.com/en-us/library/wak0wfyt.aspx

To represend the game board you may want to create your own data structure which contains the folowing informations:

  • The number of the field
  • Information about the walls

As an alternative you can use an int array for the numbers and another array for the walls and binary code the walls.

As for XNA it will help you with some higher MAth (which I assume you dont need) and with the rendering part. It is basicly a framework which helps you at working with directX, so if you want to extend your game in this direction (maybe use 2D graphics instead of plain numbers) it may get very handy. For me the structure used by XNA also feels very confortable so I use it even in some non directly gaming related project. But this is of course a personal opinion.

I hope this helps a bit!

Regards

floAr

share|improve this answer
    
Thanks for the reply. How should I go about creating the interface for the user to do the puzzle on. The boards for slitherlink can be of varying sizes, and ideally, I would like the user to be able to click on the spaces between the dots to make their input. –  Noupoi Oct 3 '12 at 12:54
    
You can catch the input with simple math. Just get the coordinates the user clicket on and then chech between which two fileds it is. this should be fairly easy using your tilesize and some if statements. –  floAr Oct 13 '12 at 7:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.