Comments (4)
These are the kind of operations that don't require IO, or the IO required is synchronous, so making this API async (with callbacks or coroutines) would have little value without future plans to make more of the system async.
This also comes up in other ways:
- Wiring up the sound system
- Camera's viewport and Renderer's window coordination
- System information interrogation (eg, how many mouse buttons there are or what shape of gamepad there is)
from pursuedpybear.
An idea that's been floating around is registering systems (or API proxies) onto events, making them accessible to all event handlers.
While this technique hasn't been used yet, it's an option to implement this?
from pursuedpybear.
This has come back up with discussion of dependency injection needs. Still needed, design still isn't finished.
from pursuedpybear.
I think we call this "dependency injection".
from pursuedpybear.
Related Issues (20)
- Import warnings in ppb __init__.py HOT 1
- features subpackage doesn't have __init__.py HOT 3
- Update Getting Started HOT 5
- SDLmixererror when invoking ppb.run() HOT 4
- Crash on exit "Error calling SDL_DestroyWindow: Window data not set" HOT 3
- SdlMixerError error when running ppb HOT 2
- Wheels have version 0.0.0 HOT 1
- RectangleSprite objects create a Square image as default. HOT 1
- Design Proposal: Event extensions
- Update Trove classifier from stage "4 - Beta" to "5 - Production/Stable"
- mypy in a ppb project won't type the ppb module.
- Update function
- KeyBoardMovementSprite moves too quickly when moving diagonally HOT 3
- Default sprites are not in doecumentation
- Remove SDL installation step from getting started
- Fix outdated mention of "ship" class in getting started
- Remove mentions of Python 3.8 ahead of its impending end of life
- Updater system does not call `super().__init__`
- Add end-to-end briefcase testing HOT 1
- I want to provide some tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pursuedpybear.