Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcmoyer/hug
A utility library for LÖVE with a focus on simplicity
https://github.com/jcmoyer/hug
library love2d lua utility
Last synced: about 1 month ago
JSON representation
A utility library for LÖVE with a focus on simplicity
- Host: GitHub
- URL: https://github.com/jcmoyer/hug
- Owner: jcmoyer
- License: apache-2.0
- Created: 2013-09-29T06:30:15.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-05-09T03:28:25.000Z (over 5 years ago)
- Last Synced: 2023-03-22T10:46:55.965Z (almost 2 years ago)
- Topics: library, love2d, lua, utility
- Language: Lua
- Homepage:
- Size: 159 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hug [![Build Status](https://travis-ci.org/jcmoyer/hug.png?branch=master)](https://travis-ci.org/jcmoyer/hug)
Minimalistic utility library for LÖVE. Documentation can be [read online](http://jcmoyer.github.io/hug/doc/) or compiled manually using [LDoc](https://github.com/stevedonovan/LDoc).
# Getting started
The fastest way to get started with hug is by cloning it into your LÖVE game directory. Here, hug is cloned into `hug/` (relative to the directory where `main.lua` and `conf.lua` are kept):$ git clone https://github.com/jcmoyer/hug.git
Now you can load hug modules using `require`:
local color = require('hug.color')
local red = color.new(255, 0, 0)function love.draw()
love.graphics.setColor(red)
love.graphics.rectangle('fill', 0, 0, 128, 128)
endTo learn more about hug, check out the documentation [here](http://jcmoyer.github.io/hug/doc/).
# License
Copyright 2013 J.C. Moyer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.