Comments (3)
Maybe we could create modules based on the Official Raylib Cheatsheet? e.g.:
Raylib::Core.init_window
Raylib::Shapes.get_collision_rec
Raylib::Textures.load_image
Raylib::Text.get_font_default
Raylib::Models.draw_line_3d
Raylib::Audio.init_audio_device
That way people can just refer to the official cheatsheet without having to cross reference how Taylor implemented it. From there we can create helper classes to make it easier (e.g. the Rectangle class).
from taylor.
I really like this suggestion and have had plans to clean up the top level namespace, on the roadmap this is what I consider part of "Audit the codebase". When I do it I'll also be writing a migration guide to 1.0.0 for people who have been using it that details all of the major changes like this.
This top level namespace clutter has come from me basically directly porting raylib functions with minimal effort to make them more ruby like. The reason for this is because I wanted to use the tools to actually make some games before I decide how I want to group them and make them more ruby like. I've been doing that for a while now and I have quite a few ideas, much like the ones you have mentioned.
Thanks for showing an interest in Taylor, I really appreciate it! I will absolutely be implementing changes based on this feedback.
from taylor.
I'd love to help with patches for this.
Feel free to send some too, @westonganger. If there's a burst from me I'll PR it this weekend.
from taylor.
Related Issues (20)
- Compile instructions HOT 1
- Custom shader support HOT 2
- 3D support? HOT 1
- Documentation link leads to 403 HOT 1
- Intel Mac issues? HOT 5
- Documentation for taylor-config.json / Web support HOT 1
- mkdir permission denied. HOT 2
- Advocate the Web functionality HOT 1
- Platformer and Gestures examples in Taylor Playground won't run HOT 1
- require/file io HOT 2
- Hot-reloading HOT 2
- website down HOT 3
- Wrong header on cheatsheet HOT 1
- Website: Full documentation link in the cheatsheet gives an 403 error HOT 1
- Why MRuby instead of CRuby? HOT 1
- Issues with the website HOT 4
- Typo In README HOT 1
- Raylib 5.0 HOT 1
- Performance Discussion HOT 5
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 taylor.