Screen Shake - Pygame Tutorial

preview_player
Показать описание
Screen shake is very useful for adding a feeling of impact. This video discusses two different implementations of screen shake.

Code Download:

Base Code for Video (up to video 5):

Discord:

Twitter:

This video and the code produced in it are released under: CC0 1.0 Universal (CC0 1.0). This puts the video and code produced in it in the public domain, so use it for whatever you want.

#python #gamedevelopment #pygame
Рекомендации по теме
Комментарии
Автор

I am inspired by you keep the great!! videos coming man

Mircoludist
Автор

You should make a tutorial on how to use tiled map editor and loading it!

FeverDev
Автор

Awesome work
Always clean tutorials

Your game is smooth, how do you achieve this?
When pygame starts rendering lot of tiles/sprites (30+) it starts lagging.
Doing multithreading or processing does not help that much..

A video about global optimisation could be cool

Have a Nice day !

Raphy
Автор

Is this possible for python turtle??? I cant get an answer anywhere I have the code set up in turtle but it wont run I even have pygame imported too. #Help. Its telling me non type object has no attribute blit. How do I get turtle to make the screen shake with pygame also imported??

slumpermonkeytv
Автор

Hi buddy !! ☺☺Just wanted to thank you for all the effort you put in making these videos . But I was just wondering why don't you try pymunk library for physics in pygame. It would be simple and easy to implement physics 😄😄 Just wondering though...

Mayank-hmcc
Автор

My way of implementing it is to cast the viewport part of the canvas onto the screen And make the viewport Rect shake to make the vibration effect. However, when the viewport is at the very edge of the canvas, the shaking would make part of the viewport rect out of canvas, causing an error to image.subsurface method. 😥

姜振-kh
Автор

bro didnt get it ...just tell the logic what do to

advancedcuber