Comments (2)
Mmmmm. I don't know why, but I find myself hesitating to add that feature. Trouble is, I can't really say why. It's just that my arachnid sense is tingling.
On the other hand, it makes total sense. Let me think about this for a while.
from anim8.
The thing that was "nagging me" was my "that is not proper object orientation!" alarm.
But hey, Lua is not object oriented by default. A clone() method seems very reasonable in a prototype-based language.
Besides, adding the method involved 3 lines of code. I might as well give my users some pleasure.
In any case, this is done. I've released v1.1.0 with your two suggestions. Thanks!
from anim8.
Related Issues (20)
- Accessors to current frame width and height HOT 2
- Is this project upgrading to 0.10.0? HOT 1
- Add support for SpriteBatches HOT 7
- Flickering with onLoop gotoFrame HOT 7
- Improving documentation HOT 4
- There is no frame for x=value, y=value HOT 2
- Possible to crop frame of animation? HOT 1
- Wrong frame duration for first and last frames HOT 3
- How I Can Get number of current frame what is playing ? HOT 2
- Portuguese version of Readme
- Multiple instances of anim8 causes distorted sprite HOT 7
- (suggestion)fps2ms
- "flip" method(s) HOT 1
- animation:update(dt) not working
- Wrong typo
- not compatible with love 11.x HOT 1
- I get an Error when starting my Program. No Idea how to fix it.
- Ability to play animations backwards in time HOT 1
- Callbacks HOT 3
- Add spritesheet and sprite abstractors HOT 4
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 anim8.