Saltar al contenido

juegos creados con ejemplo de código Python

Contamos con tu apoyo para extender nuestros tutoriales acerca de las ciencias informáticas.

Ejemplo 1: juegos hechos con python

Video games uses or made by using python python
1. Battlefield 2 uses Python forall of its add-ons and a lot of its functionality.2. Bridge Commander
3. Civilization IV uses Python for most of its tasks
4. Disney's Toontown Online is written in Python and uses Panda3D for graphics.5. Doki Doki Literature Club!, a psychological horror visual novel using the Ren'Py engine
6. Eve Online uses Stackless Python.7. Freedom Force
8. Frets on Fire is written in Python and uses Pygame
9. Mount & Blade is written in Python.10. Pirates of the Caribbean Online is written in Python and uses Panda3D for graphics.11. The Sims 4 uses Python
12. The Temple of Elemental Evil, a computer role-playing game based on the classic Greyhawk Dungeons & Dragons campaign setting
13. Unity of Command (video game)is an operational-level wargame about the 1942/43 Stalingrad Campaign on the Eastern Front.14. Vampire: The Masquerade – Bloodlines, a computer role-playing game based on the World of Darkness campaign setting
15. Vega Strike, an open source space simulator, uses Python for internal scripting
16. World of Tanks uses Python for most of its tasks.

Ejemplo 2: juego simple con python

# 1 - Import libraryimport pygame
from pygame.localsimport*# 2 - Initialize the game
pygame.init()
width, height =640,480
screen=pygame.display.set_mode((width, height))# 3 - Load images
player = pygame.image.load("resources/images/dude.png")# 4 - keep looping throughwhile1:# 5 - clear the screen before drawing it again
    screen.fill(0)# 6 - draw the screen elements
    screen.blit(player,(100,100))# 7 - update the screen
    pygame.display.flip()# 8 - loop through the eventsfor event in pygame.event.get():# check if the event is the X button if event.type==pygame.QUIT:# if it is quit the game
            pygame.quit() 
            exit(0)

Ejemplo 3: juegos en python

import os
os.system('pip install pygame')input("PyGame installed.")

Te mostramos reseñas y calificaciones

Recuerda algo, que te damos el privilegio comentar si te ayudó.

¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)



Utiliza Nuestro Buscador

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *