hdictus / hump Goto Github PK
View Code? Open in Web Editor NEWThis project forked from vrld/hump
LÖVE Helper Utilities for Massive Progression
Home Page: http://hump.readthedocs.org
This project forked from vrld/hump
LÖVE Helper Utilities for Massive Progression
Home Page: http://hump.readthedocs.org
closed
Hey, thanks for maintaining this library.
I am writing a visibility function and its requires (alignment and intersection functions).
What game development utilities this repository accepts ? Is it better to add a new file with require("hump.vector")
or to put all the visibility function in vector.lua ? Do you accept dependency to luaunit in the test suite ? What is the describe
function in spec/timer_spec.lua ?
When changing the graphical scale of the game, the camera will still use the default LÖVE scale. It ends up out of proportion. For example, when following a character, the camera might be scale times as slow. I believe this has something to do with using scissors, since they're unaffected by graphical transformations, and I'd be willing to look for a workaround. I'd just like to know if that's the default behaviour and you want to keep it that way, or if it's not working properly because I'm doing something wrong.
example.zip
Here's how to interpret the example:
love example.zip
will load the original program as default. The magenta dot is at (0, 0), the white dot is at (100, 50), and the lines cross at (200, 100).love example.zip 2
will double the graphical scale. All drawings remain at the same position, but that position is transformed by LÖVE into its double.love example.zip 1 true
loads the program with the default scale, but using the camera centered at the lines crossing. Nothing happens.love example.zip 2 true
will use both the doubled graphical scale and the camera. Since the camera doesn't follow the graphical scale, it still interprets as if the white dot was at (100, 50), when in reality it's doubled as is now at (200, 100), the original set position for the camera (the lines crossing). Because of that, the white dot appears centered.im new to using this library and i keep getting this error that in the attach() it love.graphics.translate(-self.x,-self.y) and it says that x is a nil value. how can i fix this? pls help
Error
hump/camera.lua:119: attempt to perform arithmetic on field 'x' (a nil value)
Traceback
[love "callbacks.lua"]:228: in function 'handler'
hump/camera.lua:119: in function 'attach'
main.lua:132: in function 'draw'
[love "callbacks.lua"]:168: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
heres the error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.