Search found 7 matches

by Aidymouse
Wed Aug 25, 2021 2:09 pm
Forum: Support and Development
Topic: Hardon Collider and Acceleration leaves weird gap
Replies: 1
Views: 3553

Hardon Collider and Acceleration leaves weird gap

Hey there, In the game I'm working on at the moment, the field is constructed of hexagons, some of which are solid and impassable. I notice something weird when colliding with the corner in between two hexagons, in that it leaves a little gap. After some experimentation, I found that it has somethin...
by Aidymouse
Sun Dec 30, 2018 9:42 pm
Forum: Support and Development
Topic: Floorcasting help - looks grainy
Replies: 5
Views: 3769

Breakthrough! Also more problems.

Ah ha! I figured out by looking over the tutorial and comparing it to my own code that I screwed up the variable wallX. if side == 0 then wallX = self.posY + perpWallDist * rayDirY else wallX = self.posX + perpWallDist * rayDirX end wallX = wallX - math.floor(wallX) ballX = wallX wallX = math.floor(...
by Aidymouse
Sun Dec 30, 2018 8:20 pm
Forum: Support and Development
Topic: Floorcasting help - looks grainy
Replies: 5
Views: 3769

Re: Floorcasting help - looks grainy

OK this reply might make me look like an idiot. Can you just not attach text files directly or can I just not see them being attached?

EDIT: Okay there it is
by Aidymouse
Sun Dec 30, 2018 8:19 pm
Forum: Support and Development
Topic: Floorcasting help - looks grainy
Replies: 5
Views: 3769

Re: Floorcasting help - looks grainy

Hi, thanks for the super fast reply!

Whoops, I forgot about my backwards file loading system. I think I've fixed it.
Also just realized I never attached the readme.

Thanks for your advice! I'm looking into how the height works now. I think you're right.
by Aidymouse
Sun Dec 30, 2018 12:03 pm
Forum: Support and Development
Topic: Floorcasting help - looks grainy
Replies: 5
Views: 3769

Floorcasting help - looks grainy

I've been at this for a long while and I'm completely at a loss. I've been following Lode Vandavenne's excellent raycasting tutorial and am now trying to get floorcasting to work. https://lodev.org/cgtutor/raycasting2.html The only problem is, even after copying the code word for word (adjusting for...
by Aidymouse
Tue Aug 21, 2018 12:09 am
Forum: Support and Development
Topic: Raycaster: fish eye effect past 60 degrees
Replies: 5
Views: 6565

Re: Raycaster: fish eye effect past 60 degrees

Hi, thanks for the quick reply! I think the problem is before that section. The angle increases by a constant increment of 0.12 degrees for every ray, and that can't be right. It should not be constant. You should calculate the angle corresponding to each horizontal screen pixel. The angles for the ...
by Aidymouse
Mon Aug 20, 2018 6:50 am
Forum: Support and Development
Topic: Raycaster: fish eye effect past 60 degrees
Replies: 5
Views: 6565

Raycaster: fish eye effect past 60 degrees

I'm trying to make a dungeon crawler type game and I thought a nice way to do the game screen would be raycasting. I've been following this awesome tutorial: https://permadi.com/1996/05/ray-casting-tutorial-table-of-contents Unfortunately, the raycaster I have built only works at an FOV of 60 degree...