How do you create flatpaks?

Hi, i was told you cant use flatseals for gaming. but, if you turn the games data from dvds into flatpaks to use the flatseals permissions.

how do i properly create a flatpak?

Create a .json manifest file for your game. This file contains metadata about your application, its dependencies, runtime, permissions, and more. You’ll specify the “modules” (components of your app), including the main game executable, libraries, assets, etc,.

where do i do that? do i need program to do that?

sorry for the questions. im still learning linux stuff.

so, what should i do first?

im using arch linux by the way.