Code Monkey home page Code Monkey logo

go-tmx's People

Contributors

gwutz avatar kyleconroy avatar salviati avatar solarlune 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-tmx's Issues

How to load external tilesets?

Hello! I've started looking around at several TMX file loaders, and I've noticed that a lot of them (this one included) don't load external tilesets that maps / layers use.

Is there a reason for this, or is it just a missing implementation? And how would one do this with go-tmx?

Thanks for any assistance!

2nd Layer is rendered RED

Thanks for sharing your work, but if can help me fix below out of your time :)
As you can see below Im using 2 layers for Tiled.
Screen Shot 2019-12-31 at 10 38 49 PM

Because I have added 2nd layer of collision
<layer id="2" name="collision" width="12" height="12">

Below is the result :
Screen Shot 2019-12-31 at 10 38 06 PM

If I delete the 2nd layer (collision layer), it works as expected below:
go-rpg-walk

TMX file: https://pastebin.com/57NTfEYG

tmx2consul/util.go can not build

in example/tmx2console/util.go,line 13

//next line,tmx.Prpperties can not found ,and don't go build.
func GetProperty(p *tmx.Properties, name string) (value string, err error) {
    values := p.Get(name)
    if len(values) > 1 {
        err = PropertyNotUnique
        return
    }
    if len(value) == 0 {
        err = PropertyUnavailable
        return
    }
    value = values[0]
    return
}

How to get tile by X and Y?

How to get tile by X and Y?

My layer 0 contains my game meta data, all sprites in this layer will block movement.

log.Print(maps[p.Map].Layers[0])

But how i can do it? Can i get by X and Y?

z-index?

How I get the plane/level of a tmx-file? I become Objects from Object-Groups - ok. It would be good if I could add a player to a tmx-level.

image

The players would then be "top" behind the objects of the level in order to be able to hide behind objects as well.

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.