Love2d in-app products for android

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
max973
Prole
Posts: 1
Joined: Wed Jan 24, 2024 9:23 am

Love2d in-app products for android

Post by max973 »

Hello everyone,
I need your help!
I would like to put a game with three levels in the google store of which the first level is free and the other 2 paid as in-app products.
I've been busting my brain doing research online about it for over a month without finding any clear explanation.
The main doubts are:
- Where should the Google Play Billing library be inserted? In the Android Studio Mainactivity file or directly in the Lua main?
- How can I let the main.lua file "know" that a level has been purchased and then use some simple code to unlock it (I use gamestates to manage levels)?

Thanks in advance and I hope someone can help me
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 65 guests