Code Monkey home page Code Monkey logo

panda3d-tutorial's People

Contributors

fireclawthefox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

panda3d-tutorial's Issues

Error with panda3d 1.10

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

I have some small questions

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.