so ive handed in my project its not fully how i imagined it i have had to take out the icon selection and the app is limited to the area of the uploaded xml with more time on it i could make it so it actively loads an xml based on the users position but because the xml files have to stay small so not to crash the app this would take a lot of time.
ive had some many issues that i was not able to finish the ghost but i will aim to get them working for the exhibition to show off the the app as it should be
Major Project New Media
Monday, 9 May 2011
Monday, 2 May 2011
Sunday, 1 May 2011
collection sorted now to sort the score update
i luckly found this in the google api documentation
google.maps.geometry.spherical.computeDistanceBetween(latlng pointA, latlng pointB);
which calculates the distance in meters between to points which allowed me to found out the distance of the user from all the collectables i then did
if (distance < R)
{
colls.setMap(null);
}
R = a radius around the user
distance = the distance returned from google.maps.geometry.spherical.computeDistanceBetween
so now as the user comes into contact with the collectables they are removed from the map
win
now i just need to add something like
send score(+10) or something to update a score
nearly there however i dont think i will have the time to make the ghost but i will try i have a bit of script that animates a mark alone a poly line so i should be able to change that to make my ghost but will have to see if i have time
google.maps.geometry.spherical.computeDistanceBetween(latlng pointA, latlng pointB);
which calculates the distance in meters between to points which allowed me to found out the distance of the user from all the collectables i then did
if (distance < R)
{
colls.setMap(null);
}
R = a radius around the user
distance = the distance returned from google.maps.geometry.spherical.computeDistanceBetween
so now as the user comes into contact with the collectables they are removed from the map
win
now i just need to add something like
send score(+10) or something to update a score
nearly there however i dont think i will have the time to make the ghost but i will try i have a bit of script that animates a mark alone a poly line so i should be able to change that to make my ghost but will have to see if i have time
Friday, 29 April 2011
marker test
ok so now the streets are full of markers now to change the image and add the score detection to them, then it will be ready to test almost there now
Thursday, 28 April 2011
markers on roads
http://econym.org.uk/gmap/epoly.htm
this site give a .js with some extra function for google maps api v3 like how to calculate the distance of a polyline and how to place marks on a polyline at a set distance
this site give a .js with some extra function for google maps api v3 like how to calculate the distance of a polyline and how to place marks on a polyline at a set distance
Wednesday, 27 April 2011
size
ok so ive ran into an issue the size of the xml file it seems that the big the file the harder the iphone finds it to load all the polyline so at present ill just have to have a small area that is playable with then game
Monday, 25 April 2011
Subscribe to:
Posts (Atom)