Search found 1148 matches

by Davidobot
Sun Apr 23, 2017 8:01 pm
Forum: General
Topic: Best GUI library?
Replies: 7
Views: 4528

Re: Best GUI library?

After countless times of trying to reinvent the wheel I tried a few libraries, but couldn't settle on anything. Right now I'm using Nuklear , it's an immediate mode GUI so it's a little different, but I like it. +1 for Nuklear. It's the only 3rd-party GUI library I felt comfortable with. It is also...
by Davidobot
Fri Apr 21, 2017 1:06 pm
Forum: General
Topic: An Awesome List Of One-Person-Games
Replies: 14
Views: 5984

Re: An Awesome List Of One-Person-Games

http://borg.uu3.net/~borg/?netwars is a one person project as well. I don't know if borg intends to update it or not though, but the latest supported version is 0.9, and the server code is available, so technically it's still a workable game. Actually, there is a version for 0.10.X! Scroll down and...
by Davidobot
Tue Apr 18, 2017 5:34 am
Forum: Support and Development
Topic: How to make a simple Constructor in lua
Replies: 4
Views: 1169

Re: How to make a simple Constructor in lua

While what the above poster is certainly a solution, a more elegant one can be achieved with metatables , and more specifically, the __index part of metatables. There is what is called a "prototype". They are exactly what you ate looking for - default values for a table. EDIT: Example usage: planet ...
by Davidobot
Fri Apr 14, 2017 7:19 pm
Forum: Libraries and Tools
Topic: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Replies: 67
Views: 35955

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: 4805

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: 35955

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: 35955

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: 35955

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: 3763

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: 35955

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...