filmov
tv
Python / Pygame Tutorial 6 - Keyboard Events

Показать описание
This is the next tutorial in my Python / Pygame series. In this video we look at how to move an object around on the screen using the arrow keys on the keyboard. This should be the start of a cool game we will start to make next tutorial! Please subscribe if you like the videos.
Download this code:
Code:
import pygame
black = (0,0,0)
white=(255,255,255)
x,y=0,0
moveX,moveY=0,0
gameLoop=True
while gameLoop:
gameLoop=False
moveX = -5
moveX = 5
moveY = -5
moveY = 5
moveX=0
moveX=0
moveY=0
moveY=0
x+=moveX
y+=moveY
Download this code:
Code:
import pygame
black = (0,0,0)
white=(255,255,255)
x,y=0,0
moveX,moveY=0,0
gameLoop=True
while gameLoop:
gameLoop=False
moveX = -5
moveX = 5
moveY = -5
moveY = 5
moveX=0
moveX=0
moveY=0
moveY=0
x+=moveX
y+=moveY
PyGame Tutorial (Deutsch) #6 - Kollisionen mit Coins
Python Pygame Tutorial - Episode 6! Creating Restart Code and Previous Run and High Score Tracking!
Pygame Tutorial #6 - Enemies
Python / Pygame Tutorial 6 - Keyboard Events
Pygame Tutorial - 6 - Keyboard Input Controls/ Key Pressed Event
Pygame (Python Game Development) Tutorial - 6 - Draw Rect and Fill
Pygame Tutorial #6 - Der Gegner
PyGame Castle Defender Game Beginner Tutorial in Python - PART 6 | Adding Different Enemy Types
Dragon Ball Z Buu's Fury FAN Remake in pygame (Quick demo)
Spawning Enemies in Pygame | Pygame Tutorial #6
Snake and apple game in python pygame - 6. Game over logic | Python project tutorial
PyGame Flappy Bird Beginner Tutorial in Python - PART 6 | Game Over and Reset Game
PyGame Platformer Game Beginner Tutorial in Python - PART 6 | Adding Lava And Game Over Condition
Pygame Platformer Tutorial - Full Course
Python Final Fantasy Style RPG Battle Beginner Tutorial in PyGame - PART 6 | Buttons & Sprites
Pygame Tutorial (Basics) Galaga Style Game Part 6 - Borders and Enemy Spawning Object
pygame tutorial 6 : Spawning Enemy
PyGame Tutorial 6 - PyGame FULLSCREEN Display Flag
Python Pygame Full Course - Part 6 | Easy, Simple Beginner Pygame Tutorials | Space Invaders
Pygame Tutorial for Beginners - Python Game Development Course
Pygame tutorial #6 - player jumping in pygame
Come Creare un VIDEOGIOCO in Python con Pygame TUTORIAL ITA | PARTE 6/10
PyGame Endless Vertical Platformer Beginner Tutorial in Python - PART 6 | Scrolling Background
Pygame Tutorial - Part 6 - Character Animation with Sprites
Комментарии