Skip to main content

Projeto realizado em python com intuido educacional de tentar reproduzir o jogo Wolfenstein 3d no prompt de comando.

Project description

pyfenstein3d

codecov License: MIT PyPI CI

GitHub Repo stars

Introdução

Projeto realizado em python com intuito educacional de tentar reproduzir o jogo Wolfenstein 3d no prompt de comando.

Utilizando a fonte Consolas, é possivel considerar que cada 2 caracteres representem 1 pixel. E assim "renderizar" qualquer imagem no prompt utilizando ANSI escape code para dar cor.

Para manter o número de quadros por segundo estável, o projeto foi desenvolvido considerando uma renderização de 100x62

Instalação

Para executar o projeto é necessario instalar python 3

Instale pip utilizando o commando:

python -m ensurepip

Execute o comando para realizar a instalação do pyfenstein3d:

python -m pip install pyfenstein3d

Execução

Após instalação e configuração do prompt, execute o modulo com o comando abaixo

python -m pyfenstein3d

Comandos

Comando Tecla
Andar para frente W
Andar para trás S
Andar para esquerda A
Andar para direita D
Virar para esquerda Seta esquerda
Virar para direita Seta direta
Atirar Seta cima
Abrir porta Espaço

Implementações Futuras

  • "Renderizar Pixel"
  • Raycasting 2d
  • Raycasting "3d"
  • Textura parede
  • Sprites
  • Animação
  • Portas
  • Arma
  • Tiro
  • Interação itens
  • Inimigo
  • Inteligencia artificial

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfenstein3d-1.5.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfenstein3d-1.5.1-py3-none-any.whl (421.9 kB view details)

Uploaded Python 3

File details

Details for the file pyfenstein3d-1.5.1.tar.gz.

File metadata

  • Download URL: pyfenstein3d-1.5.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for pyfenstein3d-1.5.1.tar.gz
Algorithm Hash digest
SHA256 a523a322c7b08aed6182e67c91f95c46bbe584f2be3d5820135556cf957d14c5
MD5 55b7d205f0e311c3d68dc6c1b0a04e0e
BLAKE2b-256 41c8b4e181af8538cddb7084295538024a0ab1761cce34f3d6af46f98827a7b1

See more details on using hashes here.

File details

Details for the file pyfenstein3d-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: pyfenstein3d-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 421.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for pyfenstein3d-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9fd1bffbdeb6ec6325edfd5f1a4ff97c40f198102645915a7d5b4e77a74476e
MD5 7740b67604b4f0d26a74a38cfd6484f2
BLAKE2b-256 ea85db346c878a08ea4f043981ef1ce8a87f8acbe1e13353dac22559fec51778

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page