Python Game Development with Pygame / Nejlevnější knihy
Python Game Development with Pygame

Kód: 53775612

Python Game Development with Pygame

Autor Frahaan Hussain, Kameron Hussain

You have written a little Python. Now you want to build games, real ones, with motion and sound and enemies that chase you, not just another script that prints to a terminal. Python Game Development with Pygame takes you the whole ... celý popis

548


Skladem u dodavatele
Odesíláme za 14-21 dnů
Přidat mezi přání

Mohlo by se vám také líbit

Darujte tuto knihu ještě dnes
  1. Objednejte knihu a zvolte Zaslat jako dárek.
  2. Obratem obdržíte darovací poukaz na knihu, který můžete ihned předat obdarovanému.
  3. Knihu zašleme na adresu obdarovaného, o nic se nestaráte.

Více informací

Více informací o knize Python Game Development with Pygame

Nákupem získáte 55 bodů

Anotace knihy

You have written a little Python. Now you want to build games, real ones, with motion and sound and enemies that chase you, not just another script that prints to a terminal. Python Game Development with Pygame takes you the whole distance, from a single black window to four finished games and a build you can hand to other people. The book starts where you are. Chapter one opens a window and draws a coloured rectangle. By the end of the first part you understand the game loop, frame-rate-independent motion with delta time, surfaces and blitting, the Rect class, image loading, and an input system that turns key presses into clean game actions. Then you build Catch the Falling Blocks, a complete arcade game with sprites, groups, collision, scoring, a HUD, sound effects, music, and screen shake. From there the book builds the architecture that every non-trivial game needs: a scene manager for menus, pause, and game-over screens; 2D vectors for acceleration, steering, and bouncing; spritesheet animation driven by entity state; a camera that follows the player through a level larger than the screen, with parallax and culling; and tilemaps loaded from text files and the Tiled editor with per-axis collision resolution. You apply all of it to a full platformer with gravity, variable-height jumps, coyote time and jump buffering, patrolling and chasing enemies, hazards, collectibles, a particle system, scene transitions, and a robust save file. The advanced part is genuinely advanced. You implement a fixed-timestep physics loop with an accumulator and interpolation, an impulse-based box solver, and learn when to switch to pymunk. You profile a slow game with cProfile and py-spy and fix it with surface conversion, caching, dirty-rect rendering, and NumPy pixel work. You build 2D lighting with blend modes, and see the path to GPU shaders. You make your game testable by separating logic from rendering, run pygame headless for unit tests, and build a debug overlay and data hot-reload loop. Two more projects tighten the screws: a twin-stick shooter with mouse aiming, object pooling for hundreds of bullets, enemy waves, pixel-perfect mask collision, and an upgrade system; and a small top-down RPG with a tiled overworld, NPCs, a typing dialogue box, a turn-based battle built as a state machine, an inventory, and a shop. Later chapters cover audio design and adaptive music, game feel and juice, procedural level generation with validation, a reusable menu and settings toolkit with full accessibility support, architecture patterns from composition to a lightweight ECS, and multiplayer from local co-op to the concepts behind networked play. The final chapter packages a game for Windows, macOS, and the browser with PyInstaller and pygbag, and publishes it on itch.io. Every technique is shown as finished, working code on the modern, actively maintained pygame-ce library and current Python. If you can write a function and a class, you can start here, and by the last page you will not just know pygame's API, you will know how to design a game you can keep building.

Parametry knihy

548



Osobní odběr Praha, Brno a 47904 dalších

Copyright ©2008-26 nejlevnejsi-knihy.cz Všechna práva vyhrazenaSoukromíCookies


Můj účet: Přihlásit se
Všechny knihy světa na jednom místě. Navíc za skvělé ceny.

Nákupní košík ( prázdný )

Vyzvednutí v Balikovně a PPL
boxech
zdarma nad 1 499 Kč.

Nacházíte se: