Battleship - Game Ships Functionality | Python | Pygame Module | Programming Beginners
Описание
Here is the 4th video of Battleships in Python, using Pygame.
In this video we put some functionality together for the ships in the game. By this I mean, we create the methods for the ships to be selected, and moved around the screen. For them to be situated correctly on the grid, and rotation is introduced.
I didn't realize what a massive task this project was going to be.
Either way, the biggest project I have tackled thus far, and I absolutely loved it!! I hope you'll follow along and enjoy.
#Python #pythonprogramming #pygame #battleship #pythontutorial #pythonforbeginners #pythontutorial #python3 #code
https://github.com/GrizzlyH/Battleship_Walkthrough.git
Music Attribution : Free Spirit by Kirk Osamayo
www.freemusicarchive.org/music/kirk-osamayo/blue-season-3-1/free-spirit/
01:00 Ship.selectShipAndMove()
05:05 Event Handling
07:30 Sort Fleet()
10:55 Ship.check for Collisions()
15:30 Ship.snapToGridEdge()
17:50 Ship.ReturnToDefaultPos()
19:14 Ship.snapToGridEdgeContinued
21:45 Ship.snapToGrid()
28:40 Ship.Rotation()
41:11 Ship.CheckForRotationCollisions
50:16 Guns.RotateGuns()
54:50 Guns._updateImages()
Рекомендуемые видео



















