How to create an online database for a swift game to store player scores? - iphone

I am looking to create something along these lines.
http://www.iostutorial.org/2011/06/17/add-high-scores-to-your-ios-game/
However, i want it to be online so it stores high scores of players and displays top 10 scores.
it would be of great help if someone could point me in the right direction. Any books or articles would be great.

Game center is designed specifically for what you are trying to do. It has the added advantage that it will provide exposure for your game, potentially increasing sales.

Related

Hololens 2 eye tracking

I am trying to recreate human prefab as it joins my Unity app through Photon. I want to track user eyes on its head model so that other users can see, where he is looking. I know that Hololens 2 has the capabilities of eye tracking and I found 2 interesting values that could help me - GazeOrigin and GazeDirection (https://learn.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/features/input/eye-tracking/eye-tracking-eye-gaze-provider?view=mrtkunity-2021-05). Is it possible to somehow map these values onto user prefab's eyes? Are there any helper transformations?
Thank you for any advice and help :)

ARFoundation placing AR-objects from a certain point and saving point to database

I am new to AR and I hope you guys could give me an idea on where to start.
I want to create a mobile AR application that gives displays information on a wall filled with electronics and pipes. This information should usually be displayed on the same place when starting the app, since the electronics dont move theirselves. From time to time the electronics do get switched up, so I want an admin being able to change the positions of the information in the app. I think that to realize this I need to save the locations to my own database server. I was thinking about using a specific point (that I will call an anchor) and then count length from that point to the onther points. Preferably the AR objects (information) stay in the same place even when the anchor is out of sight, so we could walk around and everything still works fine.
I added an image to clarify my idea, I hope you guys could give me some recommendations on what techniques to use.
This was my first post and I hope the idea is somewhat clear.
Image to clarify my idea

Pre-Designed Hololens Application for a specific room using Unity

I'm trying to develop an app for the Hololens 1 using Unity. What I want to archive is providing a pre-designed experience to users for a specific room (like a specific room in a museum).
My idea is, that I scan the room with the Hololens, using the scanned mesh in Unity to place the virtual content (using the scan mesh to place the content at the correct position in the room) and then build the app and deploy it to the device. The goal is, that I can give a visitor of the museum the Hololens, he can go to this room, start the app in the room (everywhere in the room) and see the virtual objects on the right places (for example a specific exhibit, the door to the next room, in the middle of the room or....). I don't want to have the visitor place objects by himself and I don't want the staff to do this in advance (before handing out the headset). I want to design the complete experience in Unity for one specific room.
Everytime I am searching for use cases like this I didn't really find a starting point. Somehow the app has to recognize the position of the headset in the room (or find pre-set anchors or something like this).
I really thought this might be a very basic use case for the hololens.
Is there a way to achieve this goal? Later I want to design multiple experiences for all the rooms of the museum (maybe a separate app for every room).
I think I have to find pre set anchors in this room and then placing the content relative to it. But how is it possible to define this anchor and ensure that every visitor finds it so that the virtual content appears on the corresponding real world object?
You should start with Spatial Anchor technology. Spatial Anchor can help you lock the GameObject in a place to locations in the real world based on the system’s understanding. Please refer this link for more information:Spatial anchors. And then, you need persisting local Spatial Anchor in the real-world, this documentation show how to persist the location of WorldAnchor's across sessions with WorldAnchorStore class:Persistence in Unity. If you also want to share experiences with multiple customer to collectively view or interact with the same hologram which is positioned at a fixed point in space. You need to export an anchor from one device and import it by a second HoloLens device, please follow this guide:Local anchor transfers in Unity
Besides, in situations where you can use Azure Spatial Anchors we strongly recommend you to use it. Azure Spatial Anchors provides convenience for sharing experiences across sessions and devices, you can quick-start with this:How to create and locate anchors using Azure Spatial Anchors in Unity

How do I record game wins in swift for iOS to Game Center?

I would like my app to not only report a total score earned back to Game Center, but I would like to report current game 'Won' STATUS and total games won in the Leaderboard (as well as report back to the user).
Essentially I want the Game Center Leaderboard to report back total 'WINS', not just points. For the life of me I can not find any code examples that would accomplish this, nor am I finding any information that notes this is even possible.
So I guess this is a two part question: Is this possible (to report a game is won STATUS) and, if it is possible, can someone point me in the right direction to look at some example code that would accomplish this?
I believe, through my exhaustive research, that this is not possible. Game Center essentially records total points, and I believe they can only go up. It is not possible to simply add/subtract. It just simply accumulates. In addition, Game Center does not seem to offer the ability to record match wins vs. match losses. So there wouldn't be any data for me to query on that either. I'm exploring using a backend data service to create my own leaderboard. This was my conclusion after a week or so of research, but please feel free to correct me; I'm still looking for a solution! Thanks!

Points System for rewarding participation within sports league

Suppose player's scores determine their rank within a their division within a tournament. The, points are allocated according to their rank. The website hosts seasonal scores and tracks players cumulative points.
Thus, I am seeking a rewards system via php/mysql that would allow players to redeem their points for merchandise.
I have seen "points systems" for user interaction via web sites and only assume a similar system could be set up using player's performance points as described above.
I do not have PHP or DB coding abilities but feel this entirely possible. Has anyone seen a similar scenario as I have described? Just looking for thoughts and comments from those more knowledgeable than I on this subject. Thank you.
I, as well, felt it was possible. I have just have not seen any real world examples with similar circumstances. The "points and rewards" systems observed on the web seem to award points based on user interactions with the site rather than "on field" performance.
Possibly, the better question would be is where does one go to have such a system developed (allowing that I personally do not and will not have these abilities)??