How get Cam sizes (Hump.camera)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
pankiwi
Prole
Posts: 3
Joined: Thu May 05, 2022 12:39 am

How get Cam sizes (Hump.camera)

Post by pankiwi »

I am making a game and I used another camera but due to problems with the viewport I changed it to hump.camera, the game needs Max X Max Y Min X Min Y to work correctly in creating scenarios and ui, I don't know how to calculate those values ​​with hump. camera :o:
User avatar
pgimeno
Party member
Posts: 3674
Joined: Sun Oct 18, 2015 2:58 pm

Re: How get Cam sizes (Hump.camera)

Post by pgimeno »

Try cam11 maybe.

viewtopic.php?f=5&t=87663
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: How get Cam sizes (Hump.camera)

Post by togFox »

Can totes vouch for cam11.

You can save a lot of time by switching now.

(Thanks pgimeno - it is now in my 'must have' tool kit. :)
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
pankiwi
Prole
Posts: 3
Joined: Thu May 05, 2022 12:39 am

Re: How get Cam sizes (Hump.camera)

Post by pankiwi »

change cam, is not good solution
User avatar
pgimeno
Party member
Posts: 3674
Joined: Sun Oct 18, 2015 2:58 pm

Re: How get Cam sizes (Hump.camera)

Post by pgimeno »

If you want a viewport, you need a library that supports a viewport. Hump doesn't.
pankiwi
Prole
Posts: 3
Joined: Thu May 05, 2022 12:39 am

Re: How get Cam sizes (Hump.camera)

Post by pankiwi »

what camera use ,soo many libs
User avatar
dusoft
Party member
Posts: 655
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: How get Cam sizes (Hump.camera)

Post by dusoft »

pankiwi wrote: Thu May 05, 2022 2:53 pm what camera use ,soo many libs
https://github.com/love2d-community/awe ... e2d#camera
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: How get Cam sizes (Hump.camera)

Post by togFox »

pgimeno wrote: Thu May 05, 2022 1:59 am Try cam11 maybe.

viewtopic.php?f=5&t=87663
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests