How to start writing or creating a jumping app? (Python)

I tried using this game, but I do not quite understand a lot of programming talk. All I have done so far downloads the Leap Motion SDK and finds that programs can be written using python. which is a programming language that I am familiar with.

From the samples on the SDK, it seems that a module is required to start recording, which means that each application to go to the jump starts with "import Leap" in python. however, I do not have this β€œLeap” module, and I'm not sure where to download it.

To a large extent, I would like to be able to play and create some basic applications that can do some simple things, but I'm not so sure that I really need to write a program for jumping movement, and then also how to turn it into an application, which can be opened and controlled using the Leap Motion device.

+4
source share
2 answers

To get started, here's an overview of the Leap Motion Python documentation: https://developer.leapmotion.com/documentation/Languages/Python/Guides/Leap_Overview.html

You can find Leap.py in the LeapSDK / lib / directory. Check out the following link for information on the Leap Motion SDK file structure: https://developer.leapmotion.com/documentation/Languages/Python/Guides/Sample_Python_Tutorial.html

Finally, you can find the Leap Motion API documentation here: http://developer.leapmotion.com/documentation/Languages/Python/API/index.html

UPDATE: Leap Motion has changed the location and structure of the documentation since I wrote this answer. The above links no longer work.

Since I am also no longer developing on the Leap Motion platform, I am not familiar with the various APIs that they currently have installed, so I will avoid making any assumptions and just leave a link to the documentation index:

https://developer.leapmotion.com/documentation/index.html?proglang=current

+7
source

The docs have instructions for running the example :

https://developer.leapmotion.com/documentation/python/devguide/Sample_Tutorial.html#id26

Which explains the dependencies.

+1
source

Source: https://habr.com/ru/post/1493900/


All Articles