Comments (4)
I wonder if the p5 dependency is really necessary.
The engine barely used it.
from 24a2.
So I managed to make it work with rollup - https://github.com/qqoen/24a2/commit/379524841fa4c5eb526486b437936813b4f7f14b (upd. https://github.com/qqoen/24a2/commit/db1e9571ac0107b57a6fbba7bf9d8cdd5524e3ac), but there are currently some differences with original API as rollup IIFE bundling requires global variable where all the exports could be stored (currently set as $24a2). I haven't touched example files yet, but tested on my own project, it seems to work fine with modules and with global context as well.
from 24a2.
I wonder if the p5 dependency is really necessary.
The engine barely used it.
Dropping p5 would be nice, as it also makes it more minimalistic. Currently I figured out how to set it as external dependency in rollup, so import could be omitted if needed, but library itself still needs to be compiled as a module to be compatible with import syntax.
from 24a2.
Hi both - thanks very much for opening this issue!
This is definitley on my radar - to be completely honest I'm not super familiar with setting modules up. I'll do some reading and work something out.
Dropping P5 (or hiding it from the user) makes sense to me - I've opened #12
from 24a2.
Related Issues (14)
- Investigate mobile support HOT 2
- Add basic sound support HOT 1
- Configurable clear color HOT 2
- A list of featured games? HOT 2
- How does onDotClicked work? HOT 2
- Custom grid size HOT 2
- Consider dropping P5 as a dependency HOT 6
- Sharing games made with 24a2 HOT 7
- Update library file path in https://24a2.routley.io/tutorial/ HOT 1
- Feature request: custom grid size HOT 1
- Feature request: set text color HOT 1
- Helter Shelter - a game based on the 24a2 engine HOT 1
- onDotClicked() doesn't work when the canvas has padding
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 24a2.