CAGD 458 - Blog Post 1 - 3/29/2026

     This project has been much different from my others as I have only really programmed for videogames and in those games, we were not asking for much of the players device information. This time around we need a whole bunch of stuff from players and for me those permissions mean I do not use Unity C# like I have been using for the last 3 or so years. It has been really hard this print because it seemed much shorter than others because we had spring break and I was unable to work on the game during that time and when we got back, I was trying to figure out how to do this compass for the game. It has been extra difficult because in the game we are using the device location to determine where the player is rather than a player object in the game, because of this I need to grab some permissions from the device and it has been a small struggle as I have never had to do that until now and I have found out that I actually need to use a JavaScript and plug it in to Unity because I cannot use the any Unity code to access the kind of permissions I need. It has been a little bit of a struggle, but I think that I am getting close to finding out how to do it, but this is all from what I am finding out through the internet as I have not done this before.

    After I get this figured out, I will move onto the rest of the map which should not be as difficult because after I figure out the permissions, I need the other programmers are completing the permissions they need then we will be set with all of that so we can use that all in the future for ours. We may need to add to it but once we get the more important permissions completed, we will be all good. Once I figure this out it will be nice too because I also need to use the geo location of the device and that will only be a small modification to what I have done because what I have now is trying to grab the orientation and one of the other programmers is using the same plugin for the phone cameras. 

    Once the permissions are allowed, I will then be able to rotate the compass on the screen based on the user's device orientation. The type of compass and map we are going for is very similar to Pokémon go and the way their map and compass are and because we are not a player object moving around in 3D or 2D space with the movement of a controller or keyboard rather we are using the location and orientation of the device and we are on posting to a web build rather than google pay or itch.io makes parts a little different than what I have been finding.


Comments