В категории материалов: 76
Показано материалов: 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 |
Web development. CSS (Cascading Style Sheets)
- External style sheet
- Internal style sheet
- Inline style
- Classes
- ID
- Questions
- Exercises
- Tasks
11.5.3.3 use the CSS stylesheet when creating a site |
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. Tuple (Кортеж)
- Описание
- Неизменяемость
- Сравнение кортежей
- Множественное присваивание
- Вопросы
- Упражнения
- Задачи
11.2.4.1 создавать кортеж;
11.2.2.1 выполнять доступ к элементам строк, списков, кортежей; |
Python. PyGame. Draw module
- Draw module
- line
- lines
- polygon
- rectangle
- circle
- ellipse
- arc
- Examples
- Questions
- Exercises
- Tasks
12.5.2.1 output graphic primitives to the application window. |