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.0.tar.gz (15.8 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.0-py3-none-any.whl (421.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfenstein3d-1.5.0.tar.gz
  • Upload date:
  • Size: 15.8 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.0.tar.gz
Algorithm Hash digest
SHA256 59dc65f8f6ea985e96f55630e779a31e8b8f1d6b596299bb73de2395e49ef0a6
MD5 c100ef2fcdec159b9c3b935efed4358a
BLAKE2b-256 a764ba9e54a3a95c9f4c54f96cdca9e22181f485b4e8797c5c9cdd2bb28e27ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfenstein3d-1.5.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c011ab21cf127df8014ae7fb32224a39ef63b53118c2fb231f3d4e059ebccf4a
MD5 875bea14cdd03ad30c018b7fd215e759
BLAKE2b-256 b5ec9ec83d618778ff44a9ee87d68f0b1447083caced6d891378e63add5c4630

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