This repository has the lessons of the gamming programming course

Overview

learning-python-game-programming

This repository has the lessons of the gamming programming course

Na faculdade, estou fazendo a disciplina de programação para jogos I. Para aprender a criar games em Python, estou desenvolvendo o Pong, um clássico muito simples mas que contém todos os princípios e boas práticas na construção de jogos. Criei este repositório publico no Github para compartilhar a minha evolução. Pretendo também fazer projetos pessoais para desenvolver ainda mais minhas habilidades em programação para jogos.

Como cada aula está organizada?

Cada aula será colocada em uma pasta do tipo lesson (lesson-01, lesson-02 ..., lesson-xx).

Que biblioteca será usada?

O Pygame. Pygame é um módulo do Python usado para criar video games. Isso te permite criar completas funcionalidades de jogos e multimídea na linguagem Python.

Pygame é livre. Sob a licença LGPL, com ele você pode criar games open source, freeware, shareware, e comerciais. Leia a licença para amis detalhes.

Instalaçao do Pygame

Para usar o Pygame você precisa do python, é claro! Se você ainda não tem, pode baixar em python.org. Use a versão python 3.7.7 ou maior, porque são mais amigáveis para você, caro newbie, além de rodar mais rápido.

A melhor forma de baixar o pygame é com a ferramenta pip (É o que o python usa para instalar pacotes). Se você fez certo e instalou o python em uma versão mais recente, o pip já vem instalado. Nós usamos a flag --user para dizer para o pip instalar no diretório home, ao invés do global.


É provável que dê um erro, mas não se desespere. Use python ao invés de python3 e tente novamente.


E aí? Será que deu certo? Para verificar use o comando a seguir:


ou


Se tudo ocorreu bem até aqui, vai aparecer um joguinho na sua tela. Se isso acontecer, você está no caminho certo e já pode passar para o próximo level :)

parte 1 - Game loop - desenhando criando estrutura básica

O códico fonte completo desta estapa está em lesson-01/main.py

Owner
Mateus Faustino
Front end Web developer learning full stack; Electrical Engineering Student
Mateus Faustino
Brax is a differentiable physics engine that simulates environments made up of rigid bodies, joints, and actuators

Brax is a differentiable physics engine that simulates environments made up of rigid bodies, joints, and actuators. It's also a suite of learning algorithms to train agents to operate in these enviro

Google 1.5k Dec 31, 2022
A Python tic tac toe game

Tic Tac Toe A Python tic tac toe game To start the game, run python3 main.py First, you have to select the game level. Today, it has three levels In a

Phant 1 Jan 14, 2022
Tictactoe py tkinter canvas - Tic Tac Toe written in Python 3 with tkinter mainly using canvas

Python 3 Tic Tac Toe with tkinter This is a tkinter version of my Tic Tac Toe ga

Bojan Adzic 1 Jan 09, 2022
Useful guides, tutorials, and FAQs related to LEGO Universe and Darkflame Universe.

Awesome Lego Universe A curated list of awesome things related to LEGO Universe. LEGO Universe was a kid-friendly massively-multiplayer online role pl

Eric Myllyoja 33 Dec 12, 2022
Dueling Platform for Competitive Programming. Learn through Games.

CP-Dueling Dueling Platform for Competitive Programming. Learn through Games. Setting Up Minimum Python version needed = 3.9.9 Install Virtualenv and

Bhavesh 3 Feb 07, 2022
3D online shooter written on Panda3D 1.10.10 and Python 3.10.1

на русском itch.io page Droid Game 3D This is a fresh game that was developed using the Panda3D game engine and Python language in the PyCharm IDE (I

Marcus Kemaul 5 Jun 04, 2022
2DMC is an abrrieviation for 2 Dimensional Minecraft.

2DMC 2DMC is an abrrieviation for 2 Dimensional Minecraft. This idea is originally created and implemented by Griffpatch on Scratch. This is a persona

DaNub 5 Nov 06, 2022
AI plays games with python

AI-plays-games- To use it, you first need to create an img file and save the pic

Murat Ali Avcu 7 Oct 16, 2022
Blackjack-Py is a terminal based game of blackjack within your terminal playing against CPU.

About Blackjack-Py is a terminal based game of blackjack within your terminal playing against CPU. Usage Clone the repo and run it with whatever pytho

Eccentrici 1 Dec 28, 2021
The zero player Darwinism simulation game as described by Conway (demonstrates Turing Completeness)

Conway's Game of Life The zero player Darwinism simulation game as described by Conway (demonstrates Turing Completeness). I created this script after

jachinema 1 Feb 13, 2022
Brawl Stars v31.96 server emulator written in Python.

Brawl Stars v31 Brawl Stars v31.96 server emulator written in Python. Requirements: Python 3.7 or higher pymongo dnspython colorama MongoDB configurat

9 Nov 26, 2021
Krieg is a Python package for a general game framework.

Krieg Krieg is a Python package for a general game framework. It provides base classes for implementing simple games. Some example games are already i

Juho Kim 2 Jan 06, 2022
Replicating Minecraft World Generation in Python

Minecraft World Generation in Python This is an attempt to replicate Minecraft world generation in Python. This is part of an article published on Med

Bilal Himite 159 Dec 19, 2022
Lutris helps you install and play video games from all eras and from most gaming systems.

Lutris Lutris helps you install and play video games from all eras and from most gaming systems. By leveraging and combining existing emulators, engin

Pop!_OS 2 Nov 15, 2021
Just to play with my kids: create a secret alphabet and exchange encrypted messages

Secret Alphabet Description This project allows you to randomly generate an alphabet (a set of characters) and its corresponding translation. For the

BS 1 Nov 12, 2021
This is text based adventure game

CHOOSE-YOUR-OWN-ADVENTURE This is text based adventure game CONTRIBUTORS Aditya binukumar Srishti Sharma Shiva Tripathi Tanishq Tanwar ABOUT Theme: Ho

Tanishq Tanwar 3 May 31, 2022
A DDQN that learned to play tic tac toe by playing against itself

TicTacToeAI A DDQN that learned to play tic tac toe by playing against itself Cu

Anik Patel 3 Apr 09, 2022
Automates cubemap generation for Source Engine games.

AutoCube Automates cubemap generation for Source Engine games during compile-time. Download: see the release page Installation Using with CompilePal A

5 Feb 18, 2022
Dontdie-minecraft - A python program that causes your computer to bluescreen whenever you die in Minecraft

Don't Die - A Python Program A python program that causes your computer to blues

3 Apr 19, 2022
This project is an exciting fun game for beginners to build up

This project is an exciting fun game for beginners to build up. The program generates a random number from 1 to 10, or 1 to 100 any range that is specified and the user must guess the number after a

PyLaboratory 0 Feb 07, 2022