I
i5513
Hi!, I'd like develop a game where a "grid" is used. I imagine this
class exists now, but I can't find it.
I'd like, for example:
Grid grid= new Grid (640,480,3,4);
grid.BackGroundColor (RGB("red"));
grid.GridColor (RGB(blue));
grid.LineColor (RGB("yellow");
Where 640 is Grid's length, 480 is Grid's height.
3 is number of rows and 4 is number of column.
Three functions Color has obvious mission.
Once create Grid, I'd like:
grid.DisplayGrid ();
# Display Grid on screen
grid.Draw (3,4,3,5);
# Display a new line on Grid (from (3,4) to (3,5)), where start and
end are the center of (x,y).
grid.Remove (3,4,3,5);
# Remove line.
If I don't find this class, I'll develop it, but before I'd like to
know if I can derivate my class from others.
Thanks you!!
PD: (I'm a newbie in Java)
class exists now, but I can't find it.
I'd like, for example:
Grid grid= new Grid (640,480,3,4);
grid.BackGroundColor (RGB("red"));
grid.GridColor (RGB(blue));
grid.LineColor (RGB("yellow");
Where 640 is Grid's length, 480 is Grid's height.
3 is number of rows and 4 is number of column.
Three functions Color has obvious mission.
Once create Grid, I'd like:
grid.DisplayGrid ();
# Display Grid on screen
grid.Draw (3,4,3,5);
# Display a new line on Grid (from (3,4) to (3,5)), where start and
end are the center of (x,y).
grid.Remove (3,4,3,5);
# Remove line.
If I don't find this class, I'll develop it, but before I'd like to
know if I can derivate my class from others.
Thanks you!!
PD: (I'm a newbie in Java)