This is a small snippet of code that asks the player for their birth date, checks if they're over 18 years old, and either passes or blocks them from playing whatver game is implemented in the cartridge.
If the player already passed the check once, it's saved in the cartdata, so they don't have to do it every time.
To implement this in your game:
- copy the entire contents of tab 1 into your game code somewhere
- add
🐱ok=false
at the start of your game code - add the
🐱init()
call in the beginning of your game, but after thecartdata()
call. If your game doesn't use cartdata, you may skip this step, but the game will ask for the player's birth date every time it's launched. - add
if (not 🐱ok) then return 🐱draw() end
as the first line in your draw routine - add
if (not 🐱ok) then return 🐱update() end
as the first line in your update routine
[Please log in to post a comment]