Giter VIP home page Giter VIP logo

rajola's People

Contributors

bevilacqua avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

rajola's Issues

MapColor problem in TileLevel

The mapcolor i defined for tiles in the example do not correspond to the colors that appear.

Example:
Hex value should be: 0xff0000
Value the program reads from file: -65536
Hardcoded value for value:

animatedTile = new BasicTile(0 , animatedSprite , -65536); //Red (#FF0000)

organizeImages(): ArrayIndexOutOfBounds Exception

I have been working on this for a while now and i can see whats wrong. The method is attempting to access pixels outside of the image. I was hoping you could take a look at it when you get the chance. You can use the test i added to the repository to help you debug it.

Thank You!

Image size problems in TileLevel class

While the color bug is finally fixed and the TileLevel class technically works it allows for no flexibility because the Image must be 256 X 256. I am not sure why this is because the class takes the width and height directly from the image:

Seen here[TileLevel.java | line# 57-61]

try {
            this.mapImage = ImageTools.toSlickImage(ImageIO.read(new File(path)));
            this.width = this.mapImage.getWidth();
            this.height = this.mapImage.getHeight();
            tiles = new int[width * height];

I am not sure why this is occurring if you have a chance please take a look, if not i should be able to put some more time into it a little bit later.

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.