Computer Science Canada Help with a grid system |
Author: | Danjen [ Sun Mar 25, 2007 9:56 pm ] |
Post subject: | Help with a grid system |
Okay, so I'm making a turn-based strategy RPG akin to Tactics Ogre (but without the glam ![]() |
Author: | Danjen [ Mon Mar 26, 2007 8:53 pm ] | ||
Post subject: | Re: Help with a grid system | ||
Hey, I my solved problem.
Basically, I had to ensure that the x and y's difference didn't exceed the movement value. But I have another problem. I need to make a procedure that draw an isometric grid. It needs to be flexible enough so that it can accept the starting coordinates of the grid, repeats a user-defined number of times. I think the procedure would start out proc DrawIsoGrid (x1, y1, x2, y2, c, x1_, y1_, x2_, y2_, c_, xrep, yrep : int) for y: 1 .. yrep for x: 1 .. xrep . . . end for end for end DrawIsoGrid |
Author: | ericfourfour [ Mon Mar 26, 2007 11:25 pm ] |
Post subject: | Re: Help with a grid system |
Danjen, you don't have to go through all of the trouble of colouring the text yourself, just use [syntax="turing"][/syntax]. It will do it for you. |
Author: | Danjen [ Tue Mar 27, 2007 7:55 pm ] |
Post subject: | Re: Help with a grid system |
I knew that, except that I thought it was [code=turing]... but when that didn't work in the preview I just thought I'd color it myself and hope no one noticed ![]() But seriously though, I would like some help for this stupid line thing. ![]() |
Author: | Drakain Zeil [ Thu Mar 29, 2007 6:05 pm ] |
Post subject: | RE:Help with a grid system |
make a procedure to draw one square at XY coords, and loop through it as if you were drawing circles at changing positions. Give it the arguments, (X,Y, Colour). |