AppWarp in theoretic view - android

It is the first time, that I'm working on a multiplayer mode to my game, so maybe this is reason why I so many questions have.
So, I have read all the existing tutorials(also YouTube videos), but have some questions.(Because libgdx has already changed a lot since tutorials have published.)
How should a project folder structure look like? Which packages should I add to my android folder in libGDX project?
My existing single player game has 2 different roles. One for player and one for computer, with different motivations. It is a graph based game, they all playing by signing its vertices with two different colours.(The game has a mathematic base, a graph algorithm.) So, in this way all the two players codebase should be the same?
Maybe I need a screen with some listeners for the multiplayer game, and that is all? Can you please tell me some basics, about building this screen?
libGDX's changed project structure make it hard and complicated to interpret older AppWarp tutorials.

You can follow our documentation for integration. I can suggest the steps that would help you in conversation of single to multiplayer Game.
Initialize AppWarp SDK at home screen.
Connect User when he open the application after the initialization
Once User will connected you can create/Join Room API and enter in the Game Scene once join Room succeeded.
In Game scene whenever you play your turn you can send turn data with sendMove API.
Whenever game data is received you can check the nextTurn User and update the respective UI on your Game screen
So these are the steps you can use for single Player to multi Player conversion.
Let me know if you need more helps in game integration.

Related

Smart Searching System for Video Database (Android App)

I want to implement a searcher in the app. When the user searches for the video stored in the local phone database using the search bar, suggestion will be popping up to aid in their search. And to generate the relevant filters for each video, I’m thinking of using tensorflow lite to process each video in the database automatically (object detection, human activity recognition, audio recognition), and generate tags to store in the database. And from the database, it’ll be used for the suggestion for the search bar.
For the database, I’m thinking of using DAO, to store the data on the phone locally. I think it has sufficient storage as I’m thinking of storing the tags (such as what kind of object it contains, location when the video is taken, etc)
And for the TFlite models, I got the example codes from the official GitHub of tensorflow lite. And I’m still inspecting the code to get the output of the model and store it to the database.
I’m actually not sure on how to process the videos in the background automatically whenever there’s unprocessed or edited video added to the phone.
Any insight/feedback is definitely welcomed as I’m facing a huge block in implementing the app. Appreciate if links or relevant pointers can be provided so I can look further. And if there’s any wrong to my thought process in implementing, feel free to point it out. Thanks so much.
FYI, I’m coming from Electrical and Electronic Engineering background, and I had never learn android app development before. I’m self learning it now, and implementing the app using Jetpack Compose and Kotlin language, but as long as the methodologies are compatible with the existing project without breaking it, then it’s fine.

Android Firebase Multiplayer Matchmaking

I have written a Tic-Tac-Toe app and have also learned a good amount of Firebase in the last 2 weeks. However, I am thinking of adding Multiplayer Matchmaking and real-time turn-by-turn TicTacToe online using Firebase.
So here is what I am thinking:
There's a play button.
Click on it.
It will show a "Searching for opponents" TextView.
So I think I should do something to show it open state and then see another player that clicks and shows that open -- Two open then connect them. But what if there are more players? What if 5-6 players click at once when there's no one and it thinks it is empty?
I want that 2 players can be matched out of any number of players. As I am relatively intermediate in Firebase, can anyone help me a bit with the logic and also pretty good if with the workflow and a code snippet.
Thanks in advance,
Android Programmer :)
You can make 2 List
available Games
players available to join.
Then pick them up on First Come First Serve basis. Assign first player to first available game. Then Change the status of a player to busy (remove it from list) & also change the status of Game to ready (remove it from list)

how to allow users to select the photos in the unity android game?

In my game i want allow users to select some Photos. So,these made as Textures for GameObjects in Unity3D android game.
I tried publishing it through the Google andriod project and then with
eclipse tool.
but i didn't find anything about making textures or images and then
pass it to the game.
Doing some searching, it looks like the answer to this question is "write a native plugin". Fortunately, somebody has already done that for you.
You will want to replace the provided SetImage function with some code of your own, instead of setting image.texture, you will want to GetComponent the renderer of the object whose texture you want to set, get the material of that Renderer, and then set its mainTexture to your new photo-texture.

Augmented reality based android app for supermarket users

I m an 4th undergraduate student and I have to make a demo on Augmented Reality in Android for my final year project at the university. This is for a supermarket.
when user passes a specific shelf in the supermarket user wanted to be notified by the app if any promotions available for the items in that shelf.e.g like a message pop up with a pointing arrow to the shelf (assuming only one category of items available in one shelf)
I want to know is it possible to do by capturing an images of shelves and save it in the database and identify the images when user passes through and pop up message to the screen if any promotions available? or any other easy ways available to do this?
if so could you please give me what are the android sdk tools available for this purpose and and guide me with some references and examples which i should refer
Thanks a lot in advance
This is a very complex problem. You can approach it like below:
Start with QR code recognition, this is now supported in the Google Vision API for Android devices. QR codes are available on most objects these days.
Instead of storing the objects (which are loosely defined), see if you can store the logo's of the companies and the product name styling for comparison. You can then use OpenCV's numerous tools for this purpose. OpenCV is available on Android.
Making it robust to take care of all conditions, is still an area of research, but look at what Amazon has done with Amazon Flow.

Android Dev - Text based game within an app

I am looking to add a simple text based trivia type game within an app I already have built for a Business. We would like to get more user interaction in the app. Further, I would like to have high scores...etc display in the app.
Creating a web serice and MySQL database would be simply enough to capture scores and query to top score. However, Is there soemthing like a free game API or something that would make this a lot easier than creating a game from scratch? I have seen some really complex game api's, but I am not trying to make an entire app. Just add a simple trivia game inside my app.
Any suggestions? Comments?
What would be the easiest way to go about this?
Radical Breeze's Illumination Software Creator has a tutorial on building a text-based game with their program. Illumination is a visual development environment like App Inventor.
If you don't want to go through the tutorial, I believe you can just download the code for the game. The program comes in a free download version. Illumination generates full source code for a number of platforms, including Android, though I think you may have to pay for mobile platform code generation. (Payment is "choose your own price".)
All generated code is "native". I.e., no special API.

Categories

Resources