Git Product home page Git Product logo

pyxel2gm's Introduction

pyxel2gm

Tools to streamline use of Pyxel Edit with Game Maker Studio.

Installation

For now, you are required to have the Go programming language installed. (Eventually I will probably provide pre-compiled binaries somewhere.)

C:\> go get github.com/hurricanerix/pyxel2gm/...

pyxel2gm-export

Exports tilesets located in .pyxel files as sprites in a Game Maker Studio project directory.

Setup:

Example.gmx/assets/sprites/foo/spr_bar.pyxel
Example.gmx/assets/sprites/spr_baz.pyxel
Example.gmx/sprites/images/spr_bar_0.png
Example.gmx/sprites/images/spr_bar_1.png
...
Example.gmx/sprites/images/spr_bar_N.png
Example.gmx/sprites/images/spr_baz_0.png
Example.gmx/sprites/images/spr_baz_1.png
...
Example.gmx/sprites/images/spr_baz_N.png

When run, tiles 0-N in spr_bar.pyxel and spr_baz.pyxel will be copied to Example.gmx/sprites/images/ directory as "spr_bar_0.png", "spr_bar_1.png", ...

pyxel2gm-editor

This utility maps sprites back to their corresponding .pyxel files and opens them with Pyxel Edit. This allows you to have your external editor in Game Maker Studio open Pyxel Edit with the .pyxel file instead of the exported png. Once the instance of Pyxel Edit launched by the utility closes, it will export the tiles in the opened .pyxel file into the projects "sprites/images" directory.

pyxel2gm's People

Contributors

hurricanerix avatar

Watchers

 avatar

pyxel2gm's Issues

Add animation

Once #7 is complete, it would be nice if when pyxel2gm-editor creates a pyxel file, if there were more than one tile in the tileset, if it would also add a single animation consisting of all the tiles in the tileset.

It would be nice to have a import utility.

It would be nice to have a way to take an existing project with sprites, and create pyxel files corresponding to all the sprites. This would help those who would like to use the pyxel2gm-editor utility, but already have a large number of sprites in their project.

new pyxel files not opened

For some reason, when you click to edit a sprite in game maker and a pyxel file does not exist, pyxel2gm-editor creates the pyxel file, but does not open it in Pyxel Edit. A second click to edit the sprite then opens the newly created pyxel file.

Fix it so that after clicking to edit a sprite wihtout a pyxel file, it opens the newly created pyxel file.

png exists in sprites, but not as .pyxel

If you create a new sprite, or have existing ones from before setting up this tool, pyxel2gm-editor will not find a corresponding pyxel file and will just return.

In the event that pyxel2gm-editor can not find a pyxel file it should do the following:

  1. create a new pyxel file for the sprite, putting it in the root of the assets directory
  2. the new file should contain all frames of the existing sprite as tiles
  3. open the newly created pyxel file in Pyxel Edit

Map tiles in tileset to canvas

When pyxel2gm-editor creates a new pyxel file, it would be nice if it created it such that the tiles in the tileset were already mapped to tiles on the canvas.

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.