Sala de Sinais

Kivy Course – Create Python Games and Mobile Apps





* O link para o vídeo completo está no final desse artigo.
Saiba mais clicando em Robô IQ OPTION de AUTOMATIZAÇÃO de Lista de SINAIS
E conheça também sobre o Melhor Bot Para Opções Binárias 2022
Que tal um robo gratuito para IQ Option? Sistema Para IQ Option Grátis

In this Kivy tutorial, you will learn to create games and applications with Python for every platform (Windows, Mac, iOS, Android).

First you will learn how to use the Kivy library. You will create graphical user interfaces with buttons, labels, and images. You will learn how to implement many kinds of layouts to create interfaces that can adapt to every screen size from desktop to mobile.

Then you will create a full game with Kivy and Python. The GALAXY project is a perspective game where you need to keep your spaceship on the track.

✏️ Course developed by Jonathan Roux. Check out his channel:

💻 Source code and resources files:

🕹 Try GALAXY on your mobile:

⭐️ Course Contents ⭐️

Introduction
0:00:00 Introduction
0:02:03 The GUI libraries with Python (tkinter, QT, pygame…)
0:02:44 The course curriculum
0:03:37 Prerequisites

Setup
0:04:09 Project creation and installation of Kivy
0:13:03 Download the resources files

The Lab project | 1 – Layouts
0:13:31 Introduction
0:16:55 Button and Label
0:23:51 BoxLayout
0:30:49 Size_hint and Pos_hint
0:37:18 What can we do with Kivy ?
0:39:23 Embed a layout
0:41:10 AnchorLayout
0:45:36 GridLayout
0:50:15 StackLayout
0:59:30 ScrollView
1:02:28 PageLayout
1:05:05 Conclusion
1:07:10 Layouts : a practical example

The Lab project | 2 – Widgets
1:08:58 Introduction
1:10:39 Button click
1:15:42 Exercise : Create a counter
1:18:06 Custom font
1:20:09 Toggle Button
1:24:00 Exercise : Enable/disable the counter
1:25:41 Disabled button
1:27:52 Switch
1:29:55 Slider
1:32:13 Exercise : Display the value of the slider
1:35:38 Exercise : Enable the slider
1:37:34 Progress bar
1:39:05 TextInput
1:43:31 Images
1:46:56 Create an application with multiple screens ?

The Lab project | 3 – Canvas
1:47:39 Introduction
1:51:34 Rectangle and ellipse
1:56:32 Line
1:58:28 Exercise : Cross
2:00:32 Lines (Circle, ellipse, rectangle) and colors
2:04:15 Canvas from the code
2:07:30 Move the rectangle
2:10:41 Exercise : borders of the screen
2:13:25 Ball and animation
2:19:19 Exercise : Make the ball rebound
2:23:05 Coordinates and RelativeLayout
2:28:56 Exercise : Flag

The Galaxy project | V1
2:30:32 Introduction
2:37:40 Project creation
2:39:09 Perspective point
2:44:35 Vertical lines
2:55:11 Principle : Perspective transformation
3:01:21 Perspective transformation
3:11:34 Exercise : Re-center
3:14:37 Horizontal lines
3:21:52 Horizontal lines perspective
3:28:33 Forward movement
3:36:08 Delta time
3:40:34 Exercise : Lateral movement
3:44:01 Exercise : Key press
3:47:58 Keyboard

The Galaxy project | V2
3:53:58 Introduction
3:55:02 Structure our code
3:57:41 Tiles and lines coordinates
4:05:24 Exercise : Line Y from index
4:07:26 Display a tile
4:13:30 Move the tile
4:16:22 Display several tiles
4:20:36 Tiles : infinite generation
4:28:10 Random land generation
4:34:16 Exercise : Do not exit the land
4:36:42 Exercise : Start with a straight line
4:38:49 Exercise : Display the ship
4:44:52 Exercise : Fix the game speed
4:49:13 Collisions

The Galaxy project | V3
4:58:34 Introduction
4:59:34 « Game over » state
5:04:07 Create the menu
5:08:32 Start of the game
5:16:25 Restart the game
5:19:45 Finalise the menu
5:24:38 Exercise : Add the background image
5:26:15 Exercise : Score
5:31:11 Exercise : Add the sounds

5:40:22 Conclusion

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

And subscribe for new videos on technology every day:

Vídeo



46 Comments

  1. Lol, i first recognized, that this video is new, when i was finished watching it. Thanks for the Tutorials FreeCodeCamp <3

  2. Hey Guys Please pray for my uncle and grandfather they may need a ventilator if their oxygen keep fluctuating please pray your prayer may save my uncle grandfather and grandmother. Please!!!!!! PLEASE PRAY PLEASE

  3. I knew never wanted this course to give a little boost to my newly learned fundamentals….thanks freecodecamp and Jonathan

  4. Im unable to import transforms, please help!
    "from .transfroms import transform, transform_2D, transform_perspective

    ImportError: attempted relative import with no known parent package"

  5. hey my graphics driver isn't supporting this and i am in windows 7 what should i do

  6. Traceback (most recent call last):

    File "D:kivy-the labmain.py", line 14, in <module>

    kivi().run()

    File "D:kivy-the labvenvlibsite-packageskivyapp.py", line 949, in run

    self._run_prepare()

    File "D:kivy-the labvenvlibsite-packageskivyapp.py", line 918, in _run_prepare

    self.load_kv(filename=self.kv_file)

    File "D:kivy-the labvenvlibsite-packageskivyapp.py", line 691, in load_kv

    root = Builder.load_file(rfilename)

    File "D:kivy-the labvenvlibsite-packageskivylangbuilder.py", line 306, in load_file

    return self.load_string(data, **kwargs)

    File "D:kivy-the labvenvlibsite-packageskivylangbuilder.py", line 406, in load_string

    widget.apply_class_lang_rules(

    File "D:kivy-the labvenvlibsite-packageskivyuixwidget.py", line 463, in apply_class_lang_rules

    Builder.apply(

    File "D:kivy-the labvenvlibsite-packageskivylangbuilder.py", line 541, in apply

    self._apply_rule(

    File "D:kivy-the labvenvlibsite-packageskivylangbuilder.py", line 661, in _apply_rule

    child.apply_class_lang_rules(

    File "D:kivy-the labvenvlibsite-packageskivyuixwidget.py", line 463, in apply_class_lang_rules

    Builder.apply(

    File "D:kivy-the labvenvlibsite-packageskivylangbuilder.py", line 541, in apply

    self._apply_rule(

    File "D:kivy-the labvenvlibsite-packageskivylangbuilder.py", line 559, in _apply_rule

    assert(rule not in self.rulectx)

    AssertionError

    Process finished with exit code 1

    I got this error

  7. has anyone heard of quantumxtrades on twitter? seems only person in
    world that proven with US brokerage statements 0 daily losses, lot of
    fake gurus use tradervue which they can delete trades but no one has
    used real US brokerage statements until now its amazing even videos

  8. WARNING] [MTD ] Unable to open device "/dev/input/event10". Please ensure you have the appropriate permissions. i am geeting this error the button not showing

  9. thanks for your great content .
    is there any way to i can add subtitle to this video ????
    i can not find any subtitle choice for this video 🙁

  10. i cant see the lables getting error like this

    Traceback (most recent call last):

    File "c:UsersgourishankarOneDriveDesktopkivymain.py", line 11, in <module>

    thelabApp().run()

    File "C:Usersgourishankarlibsite-packageskivyapp.py", line 949, in run

    self._run_prepare()

    File "C:Usersgourishankarlibsite-packageskivyapp.py", line 918, in _run_prepare

    self.load_kv(filename=self.kv_file)

    File "C:Usersgourishankarlibsite-packageskivyapp.py", line 691, in load_kv

    root = Builder.load_file(rfilename)

    File "C:Usersgourishankarlibsite-packageskivylangbuilder.py", line 306, in load_file

    return self.load_string(data, **kwargs)

    File "C:Usersgourishankarlibsite-packageskivylangbuilder.py", line 406, in load_string

    widget.apply_class_lang_rules(

    File "C:Usersgourishankarlibsite-packageskivyuixwidget.py", line 463, in apply_class_lang_rules

    Builder.apply(

    File "C:Usersgourishankarlibsite-packageskivylangbuilder.py", line 541, in apply

    self._apply_rule(

    File "C:Usersgourishankarlibsite-packageskivylangbuilder.py", line 621, in _apply_rule

    cls = Factory_get(cname)

    File "C:Usersgourishankarlibsite-packageskivyfactory.py", line 146, in _getattr_

    raise FactoryException('Unknown class <%s>' % name)

    kivy.factory.FactoryException: Unknown class <Lable>

  11. Is there a place in this video which explains how to publish a Kivy program to iOS if you have Windows?

  12. does someone knows how to fix unable to get window i tried every single solution my brain is dying cuz i searched the hole night how to fix it PLS HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  13. For anyone using Linux:
    You must name the .kv file as a lowercase version of the app name. In the example, the file should be named as thelab.kv (at least that was the only way it worked for me)

  14. At 57.43
    b=Button
    Giving a syntax error
    Saying that cannot assign to function call

  15. ᴵ'ᵐ ˢᵘᵇˢᶜʳᶦᵇᶦⁿᵍ ᵗᵒ ᵉᵛᵉʳʸᵒⁿᵉ ʷʰᵒ ˢᵘᵇˢᶜʳᶦᵇᵉ ᵃⁿᵈ ˡᶦᵏᵉ. .. 0:06

  16. How do I put f.ex buttons A, B, and C to the top left, and buttons D, E, and F to the center-left in the anchorlayout? Or is this not possible? He explains how to make one Boxlayout which uses the anchor_x and anchor_y but then that's all from it.. If I add another BoxLayout under the first and try to use different anchorpoints for it, it doesn't work..

  17. You are the best instructor I have seen, I am a sr comp sci curriculum dev and I look for videos where instructors are given with detail. Good work!

  18. im working on react native, wanted to learn python and a framework for a long time. Can I build complete functional apps with kivy, the community seems very small. Should I try this or move onto some other frame work. If kivy library is good, I really love to create mobile apps with it.
    Is kivy practical when creating commercial apps for clients?

  19. I am using Visual Studio and its saying “You dont have an extension for debugging kivy. Should we find a kivy extension in the Marketplace?”. When I click “Find kivy extension” there are no results. Can someone help?

  20. You mean Kivy is actually USABLE? Last time I looked at it back in the fall of last year, it was just a toy library, completely useless for Python game making.

    EDIT: After skimming through the video, I have to say that Kivy is NOWHERE NEAR READY for making actual games. Try making a card game with draggable (and overlapping) cards, and get back to me.

  21. Are you telling me I don't need java and kotlin to develop natively for android?

  22. This channel is so professional (3.54 m of subscribers and rising) and this guy also and we're waiting for french version. Greetings from Algeria.

Comments are closed.