zinggi / elm-2d-game Goto Github PK
View Code? Open in Web Editor NEWA small rendering engine for creating 2d games with elm, based on WebGL.
Home Page: http://package.elm-lang.org/packages/Zinggi/elm-2d-game/latest
License: MIT License
A small rendering engine for creating 2d games with elm, based on WebGL.
Home Page: http://package.elm-lang.org/packages/Zinggi/elm-2d-game/latest
License: MIT License
When using functions like shapeZ
, spriteZ
, or any of the more complicated provided functions with a Float3
position, the Z-order (where sprite layering is determined by the last number in the Float3
tuple) is not respected -- or, it may work in a confusing way.
Expected Behaviour: swapping of non-equal Z-coordinates of overlapping sprites should swap their layering.
Current Behaviour: no change is seen when Z-coordinates are swapped.
I've created a simple example using shapeZ
on Ellie, which can be found here.
Being able to use a few more built in shapes without having to use sprites or custom render functions would help make prototyping more productive because being limited to rectangles makes it difficult to distinguish between game entities.
Shape | Potential Use |
---|---|
Circle | Player |
Triangle | Enemy |
Shape | Potential Use |
---|---|
Ring | Hitbox |
Line | Path |
Curved Line | Trajectory |
Hexagon | Dangerous terrain |
Octagon | Ally npc |
I have not used veryCustom but it looks like the current way to implement other shapes is it use that. Is that correct?
In the Game.TwoD.Shapes section of the docs you specify that "Since we're dealing with 2d only, the only available shape is a square". Are the shapes I am listing imposible to implement?
Would these changes be in the right direction of this project?
Because time is global, switching animations usually causes the new animation to start in the middle of the sequence.
Users should be able to manage a unique time for each sprite. Doing this will allow users to start animations at any point in the animation sequence(usually the start) as well as handle uncommon animations that may not loop in a normal fashion.
Does the time field in the render config serve another important purpose besides determining a sprites animation frame?
The alias Float2
is documented nowhere (had to look at the source code to find it.
You should consider documenting it, possibly somewhere in Render
?
Hi, this is a super minor thing, but I saw you want plugins to be named elm-game-2d-.
I am very new to Elm but is there any reason not to call them elm-game-2d/ ?
I think that would make it a little more obvious if a package is part of elm-game-2d.
I wrote a 2D Elm game framework called Messenger and it has many nice features.
Our team developed a game called Reweave based on this framework.
Your 2d game library is great, but I think Messenger works better when creating a complex games (it's modularized, object-oriented).
I would appreciate if you could let me add a link to my project in your Readme. I hope that more people can see my framework :)
Hope you like our framework & game!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.