Giter VIP home page Giter VIP logo

elm-2d-game's People

Contributors

legendairie avatar luftzig avatar zinggi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elm-2d-game's Issues

Z-index either not used or misleading

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.

More basic shapes for prototyping

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.

Shapes that would help
Shape Potential Use
Circle Player
Triangle Enemy
Nice to haves / potential ideas
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?

Animated sprites should receive their own time

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?

Documentation missing for `Float2`

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?

Plugin naming convention

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.

Similar framework

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.