fireclawthefox / panda3d-tutorial Goto Github PK
View Code? Open in Web Editor NEWA Tutorial about game creation with the Panda3D game engine
License: Other
A Tutorial about game creation with the Panda3D game engine
License: Other
Thank you for this tutorial! It really helps.
Looks like some api changed in 1.10 so I have error
File "...\P3D Tutorial\game\player.py", line 44, in __init__
self.leftButton = KeyboardButton.asciiKey("d")
TypeError: ascii_key() argument must be a byte string of length 1, not str
The Inkscape project is mentioned as InkScape
when it should be either Inkscape, no capital S.
Hello, I am so sorry, please forgive me for my bad English.
In the User interactions of Chapter 3: Develop on page 39 of the tutorial, “Having done that, you should be able to move the character left and right with the 'A' and 'D' keys on your keyboard if you restart the application.”
Is the 'A' and 'D' is 'D' and 'F'?
I followed your tutorial and built new folders and new files. After creating a single role, I have been reporting an error. . . Say I didn't define the global variable 'loader':
Traceback (most recent call last):
File "main.py", line 10, in
app = Main()
File "main.py", line 7, in init
self.player = Player(0, 1)
File "D:\documents\Panda3D\code\game\player.py", line 33, in init
"defend":charPath + "defend"
File "C:\Anaconda3\envs\py2\lib\site-packages\direct\actor\Actor.py", line 280, in init
self.loadModel(models, copy = copy, okMissing = okMissing)
File "C:\Anaconda3\envs\py2\lib\site-packages\direct\actor\Actor.py", line 1910, in loadModel
model = loader.loadModel(modelPath, loaderOptions = loaderOptions, okMissing = okMissing)
NameError: global name 'loader' is not defined
After joining the second role, the error is like this:
Traceback (most recent call last):
File "main.py", line 23, in
app = Main()
File "main.py", line 12, in init
self.player = Player(1, "p1")
TypeError: init() takes exactly 4 arguments (3 given)
I changed
self.player = Player(1, "p1")
self.player2 = Player(1, "p2")
to
self.player = Player(1, "p1", 1)
self.player2 = Player(1, "p2", 2)
Later, it is again the fault of the definition of the loader:
Traceback (most recent call last):
File "main.py", line 23, in
app = Main()
File "main.py", line 12, in init
self.player = Player(1, "p1", 1)
File "D:\documents\Panda3D\code\game\player.py", line 32, in init
"defend":charPath + "defend"
File "C:\Anaconda3\envs\py2\lib\site-packages\direct\actor\Actor.py", line 280, in init
self.loadModel(models, copy = copy, okMissing = okMissing)
File "C:\Anaconda3\envs\py2\lib\site-packages\direct\actor\Actor.py", line 1910, in loadModel
model = loader.loadModel(modelPath, loaderOptions = loaderOptions, okMissing = okMissing)
NameError: global name 'loader' is not defined
Maybe I didn't understand it. After all, my English is too bad. I am so sorry to bother you.
Thank you so much for your tutorial.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.