Giter Site home page Giter Site logo

pyweek26's People

Contributors

ahmedamrmohamed avatar larryhastings avatar lordmauve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ahmedamrmohamed

pyweek26's Issues

Ripples not rendering on Mac

Another issue from the reviews:

The water waves (that indicate the flow) did not render on my machine (running osx 10.12, python 3.6.2, pygame 1.9.3)

KeyError: remote-bomb

User asrp reported a crash as part of the ratings feedback:

Traceback (most recent call last):
File "game.py", line 2590, in <module>
main(sys.argv[1:])
File "game.py", line 2584, in main
pyglet.app.run()
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/app/__init__.py", line 138, in run
event_loop.run()
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/app/base.py", line 142, in run
self._run()
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/app/base.py", line 155, in _run
platform_event_loop.step(timeout)
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/app/xlib.py", line 125, in step
device.select()
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/canvas/xlib.py", line 168, in select
dispatch(e)
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/window/xlib/__init__.py", line 917, in dispatch_platform_event
event_handler(e)
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/window/xlib/__init__.py", line 1108, in _event_key
return self._event_key_view(ev)
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/window/xlib/__init__.py", line 1089, in _event_key_view
self.dispatch_event('on_key_press', symbol, modifiers)
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/window/__init__.py", line 1232, in dispatch_event
if EventDispatcher.dispatch_event(self, *args) != False:
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/event.py", line 357, in dispatch_event
if handler(*args):
File "game.py", line 2529, in on_key_press
return game.on_key_press(k, modifiers)
File "game.py", line 444, in on_key_press
r2 = send_message(self.key_handler, "on_key", k)
File "game.py", line 377, in send_message
return fn(*a)
File "game.py", line 1416, in on_key
bomb.detonate()
File "game.py", line 1949, in detonate
self.occupant.on_blasted(self, position)
File "game.py", line 1217, in on_blasted
self.drown()
File "game.py", line 1225, in drown
self.on_died()
File "game.py", line 1202, in on_died
gravity=-400,
File "/tmpfs/dynamite-valley-1.0.2/src/dynamite/scene.py", line 83, in spawn_particles
gravity
File "/tmpfs/dynamite-valley-1.0.2/src/dynamite/scene.py", line 492, in __init__
super().__init__(scene, position, sprite_name)
File "/tmpfs/dynamite-valley-1.0.2/src/dynamite/scene.py", line 204, in __init__
self.sprites[sprite_name],
KeyError: 'remote-bomb'

Launch final game with -O

There are lots of asserts, including in OpenGL code, and maybe players will have a better experience if we turn them off.

If player wins and dies on the same frame, both happen

If there's only one dam left in a level, and you blow up that dam and die in the same logical frame, e.g.:

  • you're standing on an bomb that blows up the dam
  • you're standing next to the bomb that blows up the dam
  • you're standing on the dam when it blows up

Then you both die and win the level simultaneously. The game displays both "You Won!" and "Oops!", one on top of the other. In my experience the game always behaves as if you won, and pressing Space goes on to the next level / title screen.

Log in moving water stuck against dam may not start moving when the dam is blasted

day8-4

The log below the red floating bomb is on water moving down. Once you destroy the dam, the log should move. But once that red floating bomb goes off, the log will never move again.

If I had dropped the bomb to the left of the floating log, instead of above it, the log would have been fine. It would have started moving once the dam was destroyed.

You can continue a game that you've already won

If you win a game, then at the main menu press Space to continue playing, you replay the final level in that sequence ("tutorialX" or "levelX"). When you win a game, it should blow away the savegame file.

Player can place bombs onto bombs

When skipping bombs, if there's no place for the bomb to go, the bomb stops atop the other bomb:

day11-1

Perhaps this makes sense, but the floating bomb might explode, leaving a bomb in mid-air:

day11-2

Or it might flow out of the way, with the same result:

day10-1

I would expect not to be able to throw a bomb in this case, or for the bomb to explode, or for it to actually sit atop the bomb, move with it, etc.

Feature request: use speech bubbles for level complete / player died

Instead of a big label over the screen, it'd be more in theme to have a speech bubble appear, in the same way that we have dialog at the beginning, for level complete or player death.

Maybe something like:

Level complete:
<( GOOD JOB! )

Player death:
<( WHAT JUST HAPPENED, JIM? )

Launcher issue with relative paths

The run_game.py launcher seems to have a bug where the 'src' path is considered absolute instead of relative to the launcher script itself.

On Windows:

py -3 run_game.py
Traceback (most recent call last):
File "run_game.py", line 26, in
os.chdir(srcdir)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\src'

On something Posixey:

Traceback (most recent call last):
File "run_game.py", line 26, in
os.chdir(srcdir)
FileNotFoundError: [Errno 2] No such file or directory: '/src'

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.