Search found 4 matches

by nadomodan
Sat Jan 01, 2022 12:51 pm
Forum: Support and Development
Topic: How to program action game in a wrapping world? (2D torus)
Replies: 15
Views: 6497

How to program action game in a wrapping world? (2D torus)

Imagine simple top-down arena shooter, bump.lua for collision, tile map made in Tiled or proceduraly generated, standard stuff except the edges of the map are connected, kind of like in Asteroids. This game seems to have implemented it pretty well https://benjamin-soul.itch.io/voidrun, look at the s...
by nadomodan
Fri Feb 22, 2019 11:23 am
Forum: Support and Development
Topic: Hard time combining pixel art scaling and hump camera
Replies: 4
Views: 8375

Re: Hard time combining pixel art scaling and hump camera

Doesn't work well after all, something with the scissor makes things not render outside the initial view (when I move the camera there). I don't understand why use scissor for camera at all, both hump.camera and gamera uses it but you aren't going to see anything outside camera view anyway so why se...
by nadomodan
Thu Feb 21, 2019 9:57 am
Forum: Support and Development
Topic: Hard time combining pixel art scaling and hump camera
Replies: 4
Views: 8375

Re: Hard time combining pixel art scaling and hump camera

I already listed your suggestion in my post, doesn't quite work though. Thank you for the suggestion of that library, looking at the explanation at link it gave me another idea and I managed to make everything work perfectly by just changing order of function calls and making camera follow scaled pl...
by nadomodan
Wed Feb 20, 2019 11:42 pm
Forum: Support and Development
Topic: Hard time combining pixel art scaling and hump camera
Replies: 4
Views: 8375

Hard time combining pixel art scaling and hump camera

https://cdn-images-1.medium.com/max/2000/1*FDPW1J8SeQa3crTAddi0Tw.gif I want to achieve the camera as in gif, just center on player + offset based on distance of mouse pointer from center of screen, can't quite get scaling and camera working together, right now just centering on player, will ad off...