All Projects → bcvery1 → tilepix

bcvery1 / tilepix

Licence: MIT license
Library for combining tiled maps with pixel

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to tilepix

RawSalmonEngine
A game engine utilising "Tiled" map files
Stars: ✭ 15 (-62.5%)
Mutual labels:  tiled-map-editor, tiled
tuile
Tuile (french for tile) is a 2D graphics engine inspired from old hardware and based on layers, tiles sets, tile maps and sprites. Its scanline rendering pipeline makes it perfect for raster effects.
Stars: ✭ 19 (-52.5%)
Mutual labels:  tiled-map-editor, tiled
cl-tiled
Tiled map library for CL
Stars: ✭ 15 (-62.5%)
Mutual labels:  tiled-map-editor, tiled
LD35
Entry for Ludum Dare 35 Game Jam. Theme: Shapeshift (Colyseus 0.3.x)
Stars: ✭ 13 (-67.5%)
Mutual labels:  ludum-dare
gimp-tilemap-gb
Tilemap GB - Console App - AND - GIMP plugin for importing & exporting Game Boy game tilemaps and tilesets (as bitmap images or .GBM/.GBR files. Related tools: GBTD, GBMB, GBDK, Zal0-ZGB)
Stars: ✭ 42 (+5%)
Mutual labels:  tiled-map-editor
phaser3-simple-rpg
A simple Phaser3 RPG using Typescript ⚔️
Stars: ✭ 80 (+100%)
Mutual labels:  tiled-map-editor
entity-system-js
ensy - A very simple Entity System for JavaScript
Stars: ✭ 90 (+125%)
Mutual labels:  gamedev-library
Tracy
C++ frame profiler
Stars: ✭ 3,115 (+7687.5%)
Mutual labels:  gamedev-library
Berry
Berry is a simple Tiled Map Loader for Corona SDK.
Stars: ✭ 16 (-60%)
Mutual labels:  tiled
MultiGame
MultiGame is a tool for rapid development in Unity
Stars: ✭ 16 (-60%)
Mutual labels:  gamedev-library
flame tiled
Package to add Tiled support for the Flame game engine
Stars: ✭ 21 (-47.5%)
Mutual labels:  tiled
UnityHexagonLibrary2d
A library to manage 2D hexagonal tiles in Unity.
Stars: ✭ 58 (+45%)
Mutual labels:  tiled-map-editor
glazejs
A high performance 2D game engine built in Typescript
Stars: ✭ 96 (+140%)
Mutual labels:  tiled-map-editor
raylib-py
A Python binding for the great C library raylib.
Stars: ✭ 147 (+267.5%)
Mutual labels:  gamedev-library
ludum-dare-31
The theme for LD31 was "Entire Game on One Screen"
Stars: ✭ 28 (-30%)
Mutual labels:  ludum-dare
Driftwood
Driftwood 2D Tiling Game Engine and Development Suite
Stars: ✭ 23 (-42.5%)
Mutual labels:  tiled
friendlyfiregame
Explore the world of “Friendly Fire” and meet all its inhabitants in a quest to save the world from an unknown destiny.
Stars: ✭ 64 (+60%)
Mutual labels:  ludum-dare
AsLib
🎨: RPG map maker (paint tool)
Stars: ✭ 82 (+105%)
Mutual labels:  tiled-map-editor
ludum-dare-browser
a website for browsing ludum dare games
Stars: ✭ 25 (-37.5%)
Mutual labels:  ludum-dare
ld47-fortLoop
Fort Loop: a 48h puzzle game for Ludum Dare 47
Stars: ✭ 24 (-40%)
Mutual labels:  ludum-dare

Build Status Go Report Card GitHub GoDoc

TilePixLogo TilePix

TilePix is a complementary library, designed to be used with the Pixel library (see below for more details on Pixel). TilePix was born out of Ludum Dare; having found that a vast amount of very limited time during the Ludum Dare weekends was used planing out map layouts, and defining collision or activation areas. TilePix should make those activities a trivially short amount of time.

Pixel

This library is a complement to the Pixel 2D games library, and is largely inspired by it. A huge thanks to faiface for one, giving us access to such a fantastic library; and two, providing the inspiration for this library!

TilePix would not have been possible without the great amount of care and effort that has been put into Pixel.

Legal

Pixel is subject to the MIT licence.

Stability

TilePix is a work-in-progress project; as such, expect bugs and missing features. If you notice a bug or a feature you feel is missing, please consider contributing - simply (and correctly) raising issues is just as valuable as writing code!

Releases

The aim is that releases on this library will fairly regular, and well planned. You can use Go modules with TilePix if you want version security.

Example

Here is a very basic example of using the library. It is advisable to view the excellent Pixel tutorials before trying to understand this package, as TilePix is very Pixel centric.

package main

import (
	"image/color"

	// We must use blank imports for any image formats in the tileset image sources.
	// You will get an error if a blank import is not made; TilePix does not import
	// specific image formats, that is the responsibility of the calling code.
	_ "image/png"

	"github.com/bcvery1/tilepix"

	"github.com/faiface/pixel"
	"github.com/faiface/pixel/pixelgl"
)

func run() {
	cfg := pixelgl.WindowConfig{
		Title: "TilePix",
		Bounds: pixel.R(0, 0, 640, 320),
		VSync: true,
	}

	win, err := pixelgl.NewWindow(cfg)
	if err != nil {
		panic(err)
	}

	// Load and initialise the map.
	m, err := tilepix.ReadFile("myMap.tmx")
	if err != nil {
		panic(err)
	}

	for !win.Closed() {
		win.Clear(color.White)

		// Draw all layers to the window.
		if err := m.DrawAll(win, color.White, pixel.IM); err != nil {
			panic(err)
		}

		win.Update()
	}
}

func main() {
	pixelgl.Run(run)
}

Futher examples can be found in the examples directory.

Contributing

Thanks for considering contributing to TilePix; for details on how you can contribute, please consult the contribution guide.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].