Python Forum
Is Python used to make popular games that you can play on the Xbox or PlayStation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is Python used to make popular games that you can play on the Xbox or PlayStation
#11
metulburr---- thank you, thank you for:
from direct.showbase.ShowBase import ShowBase
from direct.task import Task
from math import pi, sin, cos
from direct.actor.Actor import Actor
from direct.interval.IntervalGlobal import Sequence
from panda3d.core import Point3
  
class MyApp(ShowBase):
  
    def __init__(self):
        ShowBase.__init__(self)
 
        self.scene = self.loader.loadModel("environment")
        self.scene.reparentTo(self.render)
        self.scene.setScale(0.25, 0.25, 0.25)
        self.scene.setPos(-8, 42, 0)
 
        self.taskMgr.add(self.spinCameraTask, "SpinCameraTask")
 
        self.pandaActor = Actor("panda-model", {"walk": "panda-walk4"})
        self.pandaActor.setScale(0.005, 0.005, 0.005)
        self.pandaActor.reparentTo(self.render)
        self.pandaActor.loop("walk")
 
        pandaPosInterval1 = self.pandaActor.posInterval(13,
                                                        Point3(0, -10, 0),
                                                        startPos=Point3(0, 10, 0))
        pandaPosInterval2 = self.pandaActor.posInterval(13,
                                                        Point3(0, 10, 0),
                                                        startPos=Point3(0, -10, 0))
        pandaHprInterval1 = self.pandaActor.hprInterval(3,
                                                        Point3(180, 0, 0),
                                                        startHpr=Point3(0, 0, 0))
        pandaHprInterval2 = self.pandaActor.hprInterval(3,
                                                        Point3(0, 0, 0),
                                                        startHpr=Point3(180, 0, 0))
  
        self.pandaPace = Sequence(pandaPosInterval1,
                                  pandaHprInterval1,
                                  pandaPosInterval2,
                                  pandaHprInterval2,
                                  name="pandaPace")
        self.pandaPace.loop()
 
    def spinCameraTask(self, task):
        angleDegrees = task.time * 6.0
        angleRadians = angleDegrees * (pi / 180.0)
        self.camera.setPos(20 * sin(angleRadians), -20.0 * cos(angleRadians), 3)
        self.camera.setHpr(angleDegrees, 0, 0)
        return Task.cont
  
app = MyApp()
app.run()
Thank you for this--- its like magic, I will save this to my desktop and it will serve as motivation. For people like me( who have no experience with animation and programming)---- this is like magic. I am serious, it really is beautiful.
Reply
#12
(Dec-21-2018, 09:08 PM)ironsheep Wrote: So to make a game at home I would need to continue studying Python, Blender, and how to do animation in Photoshop, right??
Yes. I would start with 2d first with pygame and python before starting 3d however.

also GIMP is the free version of Photoshop.
Recommended Tutorials:
Reply
#13
(Dec-18-2018, 08:03 PM)j.crater Wrote: Could you name a few titles? Or post a source of a list of Python games perhaps.
I forgot about this one in python/pygame
https://store.steampowered.com/app/442210/Switchcars/
source

Ill keep posting them as i come across them.
Recommended Tutorials:
Reply
#14
I find this game. This is another Steam game made with Pygame and Python. The name of this game is Super Potato Bruh:
https://store.steampowered.com/app/95136...tato_Bruh/
https://www.pygame.org/news/2018/10/supe...d-on-steam
Reply
#15
Doki Doki Literature Club is completely made with python as well.
https://store.steampowered.com/app/69878...ture_Club/
Reply
#16
It seems like this is a new knowledge about the game that I just learned. But with the game versions at [link removed] It is mod apk versions, can you use Python to edit them?
buran write Apr-06-2024, 06:01 AM:
Spam link removed
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Library or website for multiplayer games Flask/Python drimades 1 5,199 Nov-07-2021, 06:45 AM
Last Post: ndc85430
  I can not play mp3 in pygame vinicius 4 5,157 Feb-19-2018, 11:01 PM
Last Post: SeabassG33
  Fun games to help with Low_Ki_ 2 4,107 May-10-2017, 01:23 AM
Last Post: Low_Ki_
  Can a player play game created with Python without installing Python? hsunteik 3 5,301 Feb-23-2017, 10:44 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020