В категории материалов: 32
Показано материалов: 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 |
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. 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. PyGame library
- Installing the PyGame library
- Connecting and Initializing a PyGame module in the program
- Game window creation
- Game loop
- Questions
- Exercises
- Tasks
12.5.1.1 connect the PyGame library and its modules;
12.5.1.2 create the game window;
12.5.1.3 code the game loop of the application. |
PIL library. Image processing.
- Wave library
- Open and close *.wav files
- Functions of Wave library
- Get information about *.wav file
- Struct library
- Questions
- Exercises
- Tasks
12.6.3.1 use commands of the Wave library to process sound files. |
PIL library. Image processing.
- Model example
- Load pixels and Change color
- Get three colors from the pixel
- ImageFilter module in PIL
- Types of filters in ImageFilter
- Questions
- Exercises
- Tasks
12.6.2.2 use commands of module Image in PIL library (load, create, size, save) to manipulate images.
12.6.2.4 create filters for image processing.
|