GithubHelp home page GithubHelp logo

cocos2d-python-tutorials's People

Contributors

chase4926 avatar liamrahav avatar mightypanders avatar nenodias avatar ryukinix 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocos2d-python-tutorials's Issues

No car.png

python add.py 
Traceback (most recent call last):
  File "add.py", line 83, in <module>
    car_layer = CarLayer()
  File "add.py", line 65, in __init__
    self.sprite = Sprite("assets/img/car.png")
  File "/usr/local/lib/python2.7/dist-packages/cocos/sprite.py", line 121, in __init__
    image = pyglet.resource.image(image)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/resource.py", line 529, in image
    atlas=atlas)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/resource.py", line 458, in _alloc_image
    file = self.file(name)
  File "/usr/local/lib/python2.7/dist-packages/pyglet/resource.py", line 414, in file
    raise ResourceNotFoundException(name)
pyglet.resource.ResourceNotFoundException: Resource "assets/img/car.png" was not found on the path.  Ensure that the filename has the correct captialisation.

Link to car.png that I found: https://github.com/adamwiggins/cocos2d/blob/master/test/car.png

SDL Error in basics/audio.py

Hi there,
I'm running into a problem in the audio tutorial, where it seems I'm getting an SDL error. I'm running it in a venv with python3.6, and cocos2d 0.6.5, on a Debian OS. To be sure I wasn't typing something in incorrectly, I've copied and pasted the tutorial over, to no avail. Is this anything you've seen with a simple solution? Apologies if it's something stupid I've overlooked!

I have a traceback here:

  File "cocos2d-testing/basics/audio.py", line 38, in <module>
    director.run(scene.Scene(AudioLayer()))
  File "cocos2d-testing/basics/audio.py", line 27, in __init__
    song = Audio("assets/sound/LatinIndustries.ogg")
  File "cocos2d-testing/basics/audio.py", line 19, in __init__
    super(Audio, self).__init__(audio_file)
  File "/path/to/.venvs/cocos2d-testing/lib/python3.6/site-packages/cocos/audio/pygame/mixer.py", line 423, in __init__
    self._chunk = Mix_LoadWAV(file)
  File "/path/to/.venvs/cocos2d-testing/lib/python3.6/site-packages/cocos/audio/SDL/mixer.py", line 156, in Mix_LoadWAV
    return Mix_LoadWAV_RW(rwops.SDL_RWFromFile(filename, b'rb'), 1)
  File "/path/to/.venvs/cocos2d-testing/lib/python3.6/site-packages/cocos/audio/SDL/dll.py", line 210, in _f
    raise cocos.audio.SDL.error.SDL_Exception(cocos.audio.SDL.error.SDL_GetError())
cocos.audio.SDL.error.SDL_Exception: <exception str() failed>
Exception ignored in: <bound method Sound.__del__ of <__main__.Audio object at 0x7f69189ed308>>
Traceback (most recent call last):
  File "/path/to/.venvs/cocos2d-testing/lib/python3.6/site-packages/cocos/audio/pygame/mixer.py", line 426, in __del__
    if self._chunk:
AttributeError: _chunk

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.