i'm going to make a game in c++ - snakes n ladders..
first i though of making the board by plotting pixels ..
n the program will have the knowlegde of the coordiantes of each box, sankes and laddders.
to check in which box a pawn is i'll just check what are its coordinates and check in which box it lies(coordinates of each box is prefixed)
i made wach square of side 20 pixels ..
a pawn's center is always at the center of a box..
to move a pawn ahead i just added 20 to its x - axis coordinates (for horizontal movement only)
now i thought of another way but have no way how to implement it:::
is there any way i can just draw a 16 bit image and just import it into my program ?
if you have any advice/suggestions that'd be really nice ..
Drawing your board as a graphic is a good idea. How you import it into your program depends very much on your OS and what graphics library you use in C++. There are several graphics libraries
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…