HERE COMES THE EASY PYTHON GAMING ENGINE
DESIGN AND DEVELOP GAMES AND PLAY AND EVEN TRAIN UR GAMES
FOR NEURAL NETWORKS
go and download and install pretty easy -
https://www.ursinaengine.org/installation.html
once the installation is done
run this sample from the site which is simple cube movement using keys
similar to what we have played during our earlier gaming days
https://www.ursinaengine.org/introduction_tutorial.html
sample code for simple 3D game design-
from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
app = Ursina()
cube_orange = Entity(model='cube', color=color.orange, scale_y=20,texture='white_cube')
cube_orange_right = duplicate(cube_orange, origin_z=20)
blue_cube = Entity(model='cube', color=color.blue, scale_y=2, origin_x=5,texture='vignette')
duplicate(cube_orange,origin_x=10)
duplicate(cube_orange,origin_x=20)
duplicate(cube_orange,origin_x=30)
duplicate(cube_orange,origin_x=40)
duplicate(cube_orange,origin_x=50)
duplicate(cube_orange,origin_x=60)
duplicate(cube_orange_right,origin_x=10)
duplicate(cube_orange_right,origin_x=20)
duplicate(cube_orange_right,origin_x=30)
duplicate(cube_orange_right,origin_x=40)
duplicate(cube_orange_right,origin_x=50)
duplicate(cube_orange_right,origin_x=60)
duplicate(blue_cube,origin_x=15)
duplicate(blue_cube,origin_x=25)
duplicate(blue_cube,origin_x=35)
duplicate(blue_cube,origin_x=45)
duplicate(blue_cube,origin_x=55)
duplicate(blue_cube,origin_x=65)
moving_cube_left = Entity(model='cube', color=color.green, has_pickup=False , origin_x=-5)
ball = Entity(model='cube', scale=2, collider='box', speed=0)
ground = Entity(model='plane', texture='white_cube', scale=1000, collider='box')
player = FirstPersonController(model='cube', origin_y=-.5, color=color.orange, has_pickup=False)
camera.z = -5
Sky()
def moving_cube_left_drive():
while (True):
print(moving_cube_left.x)
moving_cube_left.x += 0.1
def update(): # update gets automatically called.
player.x += held_keys['d'] * .1
player.x -= held_keys['a'] * .1
moving_cube_left.y = moving_cube_left.y * .1
ball.x += ball.x * time.dt
app.run()
once the set up is done try playing the game
using keys W A S D .
ENJOY GAMING!
Comments
Post a Comment