Skip to content

Instantly share code, notes, and snippets.

View SaverioFrancesco's full-sized avatar
🎯
Focusing

Francesco Saverio Comisso SaverioFrancesco

🎯
Focusing
  • TechStar
  • Udine
  • 09:30 (UTC -12:00)
View GitHub Profile
@SaverioFrancesco
SaverioFrancesco / doom-3d.py
Created November 27, 2018 23:18 — forked from limdingwen/doom-3d.py
Doom-style 3-D Engine Python (Prototype)
# X is left-right
# Y is forwards-backwards
# Z is up-down
import pygame
import math
import time
def screen_coords(x, y):
return ((x / 2 + 0.5) * SCREEN_WIDTH, (-y / 2 + 0.5) * SCREEN_HEIGHT)