Long time I didn’t make something… to mush work and too big projects. To make a pause, I give a try to an idea that I had.
One of the annoying thing is to create maps, so I wanted to take map form google so I only have to define start point and end point for a racing game (yes race all around the world !!!).
I manage to “stream” map but it was too slow (I only download 1 image at a time to not harm server) and maps from google are far too mush inacurrate. So I go for an editor that download map with a few tools to define road limite. Even so, the size of data is far too mush (6mo for a small part of a small town…)
So there is the result (a flew day of works ;)), it is not polished but it is complet : Google Map Race
And the editor : Google Map Race Editor
The source code : User : guest , Password : guest0
For the game :
left : turn left
right : turn right
up : speed up
space : select
For the editor, everything should be put in the “~/.bonbonchan/” folder. To add a race, you have to add a “.txt” file with 3 line :
1/ Name of the race
2/ Start point : ix,dx,iy,dy,angle
3/ End point : ix,dx,iy,dy,angle
ix,iy are integer of the coordinate of the image. dx,dy are double of the coordinate inside the image. angle is a double in radian.
To conclude, this game is not really good (or even legal), but I did’t want to waste the code so ;D.