Kivy Course - Create Python Games and Mobile Apps

Опубликовано: 12 Май 2021
на канале: freeCodeCamp.org
1,183,884
28k

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:
   / @codewithjonathan  

💻 Source code and resources files:
https://codewithjonathan.net/resource...

🕹 Try GALAXY on your mobile:
http://onelink.to/6w47wy


⭐️ 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: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news


Смотрите видео Kivy Course - Create Python Games and Mobile Apps онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь freeCodeCamp.org 12 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,183,88 раз и оно понравилось 28 тысяч людям.