Giter Club home page Giter Club logo

hump's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hump's Issues

contribution guidelines

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 ?

Camera doesn't follow the graphical scale

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.

issue with the camera attach function with the love.graphics.translate -self.x -self.y

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.

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.