В категории материалов: 96
Показано материалов: 11-20
Module PyGame. Object collisions
- Definition
- Checking if a point of one object is in the rectangle of another object
- collide() methods in pygame.Rect
- colliderect(Rect)
- collidepoint(x, y)
- collidelist(list)
- Questions
- Exercises
- Tasks
12.5.3.6 check the relative position of objects on the screen. |
PHP & MySQL. User registration
11.5.3.8 use script language to provide interactivity |
PHP & MySQL database. Connect to database
11.5.3.4 use script language to connect a database |
Module PyGame. Graphic text. Counter of game
- How to output text in pygame
- How to input text in pygame
- Examples
- Task 1 Output text
- Task 2 Animated text
- Task 3 Text movement
- Task 4 Click counter
- Task 5 Input name
- Questions
- Exercises
- Tasks
12.5.2.4 display graphic text on the screen
12.5.3.7 implement an algorithm for calculating game results |
Python. PyGame. Keyboard events
- Keyboard events
- Keyboard events attribute
- Check key down
- Task 1
- Task 2
- Using keyboard shortcuts
- Questions
- Exercises
- Tasks
12.5.3.4 control characters with the keyboard. |
Python. PyGame. Mouse events
- Mouse events
- Mouse clicks
- Cursor position
- Task 1
- Task 2
- Drag and drop
- Questions
- Exercises
- Tasks
12.5.3.3 control characters with the mouse. |
Python. PyGame. Loading and animation pictures
- Loading pictures
- How to load the picture
- How to determine the size of the surface
- Creating a background for race
- Add car movement
- Questions
- Exercises
- Tasks
12.5.3.1 code the movement of graphic objects |
Python. PyGame.
Time and animation
- Animation
- Time
- Example
- Questions
- Exercises
- Tasks
12.5.3.1 code the movement of graphic objects;
12.5.3.8 analyse the result of the program execution;
12.5.3.2 control the characters with module Time. |
Python. PyGame. Surfaces
- Creating new surface
- Output surface on display
- Output surface on another surface
- Example
- Questions
- Exercises
- Tasks
12.5.2.3 manage the surfaces programmatically. |
Python. Конвертация структур данных (множества, строки, списки, кортежи)
- Строка --> Список --> Строка
- Кортеж --> Список --> Кортеж
- Список --> Множество --> Список
- Кортеж --> Множество --> Кортеж
- Множество --> Список
- Вопросы
- Упражнения
- Задачи
11.2.4.2 конвертировать одну структуру данных в другую |