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
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
Subscribe to:
Posts (Atom)