Search found 1145 matches

by Davidobot
Fri Apr 14, 2017 7:19 pm
Forum: Libraries and Tools
Topic: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Replies: 67
Views: 32081

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Could you make a portal? A wall, that when hit by a ray is not rendered itself, but instead the ray continues on from another wall? So both walls are connected somehow and when the player walks through the said wall he is warped to the other one? This is certainly a very interesting idea! It would ...
by Davidobot
Tue Apr 11, 2017 11:43 am
Forum: Games and Creations
Topic: LuaGB: A Gameboy Emulator written in Pure Lua
Replies: 11
Views: 4350

Re: LuaGB: A Gameboy Emulator written in Pure Lua

Awesome work! I saw a post about this on /r/Lua and was wondering when and if you'll post it here! Amazing work! It runs pretty well too! Don't mind me, but I'll just dissect your code to find its inner-workings. How did you figure out the emulation process? Are there online docs about it, or did yo...
by Davidobot
Sun Apr 09, 2017 2:15 pm
Forum: Libraries and Tools
Topic: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Replies: 67
Views: 32081

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Edit 2: Well it's a start but I got something working. It's not 100% though. I need to figure out a lot of things about your code. But hopefully I can make it work. Here's what I have so far with your raycasting overlaid on mine: Oh yeah, you definitely need to know a few things about my raycasting...
by Davidobot
Sat Apr 08, 2017 7:35 pm
Forum: Libraries and Tools
Topic: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Replies: 67
Views: 32081

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

I tried it last night. With the way I do it (The dual checks against horizontal and vertical walls separately) it's not going to work the way I thought. I might need to just borrow your method and modify it to work with my code. Did you create yours from scratch or use another source initially? Bec...
by Davidobot
Fri Apr 07, 2017 11:44 am
Forum: Libraries and Tools
Topic: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Replies: 67
Views: 32081

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

If you have a better way of doing the raycasting loop, let me know. Mine is quite similar to yours. I just calculate which way the ray is generally going (left or right; up or down) and then I have "delta" values for both the X and Y directions that get incremented every step, by the respective cos...
by Davidobot
Thu Apr 06, 2017 6:34 pm
Forum: Support and Development
Topic: 3D Backgrounds for Touhou-like Bullet Hell Shmup
Replies: 11
Views: 3374

Re: 3D Backgrounds for Touhou-like Bullet Hell Shmup

Hey there and welcome to the forums! This effect is very doable and there recent libraries that make it even easier than ever before! Firstly, I think PlayMat , a mode 7 library will have everything you're looking for, including a depth effect and sprites. There have also been have been attempts by ...
by Davidobot
Thu Apr 06, 2017 6:03 pm
Forum: Libraries and Tools
Topic: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Replies: 67
Views: 32081

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

For the record, no I don't render sprites column by column like you do. I didn't feel it really necessary and never thought of it. I saw you do it in your code and wonder if there's a reason? Does it have any benefits? I'd think it would just add extra unnecessary slowdown to an already slow proces...
by Davidobot
Thu Apr 06, 2017 8:49 am
Forum: Libraries and Tools
Topic: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Replies: 67
Views: 32081

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Hey, Davidobot, if I could change the subject back to raycasting for a bit, I'd appreciate if you could help me solve a few problems I'm having with my own raycaster. ... Any help would make me so happy. I've tried everything except completely rip your code and put it in my version. I can probably ...
by Davidobot
Sat Apr 01, 2017 2:27 pm
Forum: General
Topic: Topdown shooter bug
Replies: 1
Views: 703

Re: Topdown shooter bug

The problem is that you're using the player.bullet table as a pointer (default in Lua) so when you change values of the player.bullet table, it changes the values of all the inserted tables. To fix this, create a new table, assign the appropriate values to that, and then insert that into bullets. ED...
by Davidobot
Sat Apr 01, 2017 2:22 pm
Forum: Support and Development
Topic: 2D reflection on water
Replies: 4
Views: 1261

Re: 2D reflection on water

Any camera library should work with setScissor. Make sure you're using your world coordinates for the scissor and remember to unset them after you're done.