Author Topic: [Lua] RayCaster  (Read 43281 times)

0 Members and 1 Guest are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Lua] RayCaster
« Reply #30 on: July 13, 2011, 10:09:09 am »
would it be possible to add windows into the walls?
Unfortunately, I only can draw plain walls, like Toxic_Kitten said.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: [Lua] RayCaster
« Reply #31 on: July 13, 2011, 10:10:57 am »
sorry, haven't seen this.
*insert supercool signature*

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Lua] RayCaster
« Reply #32 on: July 13, 2011, 10:36:38 am »
For the sort of game, I wish I could do a FPS... I will try to optimize it.
But I think I will only can do a maze game.

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: [Lua] RayCaster
« Reply #33 on: July 13, 2011, 10:38:20 am »
what means FPS?
I only know FPA (FancyPantsAdventure)
*insert supercool signature*

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: [Lua] RayCaster
« Reply #34 on: July 13, 2011, 10:44:23 am »
FPS is a First Person Shooter
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: [Lua] RayCaster
« Reply #35 on: July 13, 2011, 10:49:02 am »
Wouldn't be a PortalToTheFlash be possible, too?
I think it would be great in a 3D-map.
*insert supercool signature*

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Lua] RayCaster
« Reply #36 on: July 13, 2011, 11:26:06 am »
The little map is done ! you can activate/deactivate it by pressing "m".

Er... What is PortalToTheFlash ?

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: [Lua] RayCaster
« Reply #37 on: July 13, 2011, 11:28:23 am »
http://armorgames.com/play/107/portal-the-flash-version
Where to download the newest version?
*insert supercool signature*

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Lua] RayCaster
« Reply #38 on: July 13, 2011, 11:34:50 am »
Oh, you want the version with the map ? It's not so much fun :p
For Portal, the matter is that I can't use the third dimension. It's only a projection of a 2D world. So I don't have any gravity.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Lua] RayCaster
« Reply #39 on: July 13, 2011, 11:35:13 am »
Builderboy started a PortalX but it is not for Nspires and it is in 2D, like the Flash version
@Chockosta, you mean that you can't jump and all, only walk ?
« Last Edit: July 13, 2011, 11:36:48 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [Lua] RayCaster
« Reply #40 on: July 13, 2011, 11:38:29 am »
Yeah. Sad, isn't it ?
« Last Edit: July 13, 2011, 11:38:48 am by Chockosta »

Offline p2

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 849
  • Rating: +51/-11
  • I'm back :)
    • View Profile
Re: [Lua] RayCaster
« Reply #41 on: July 13, 2011, 11:49:36 am »
I ment, that you'll have to go to a special point on the map, without walking, just portals.
*insert supercool signature*

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: [Lua] RayCaster
« Reply #42 on: July 13, 2011, 02:10:18 pm »
It is possible to change the camera height without sacrificing performance, but only to the point that the camera is level with the tops or the bottoms of the walls. It just involves changing the calculations for figuring out which pixel is the top and bottom of the wall for each column. After that, further raycasting is needed to show walls further out in the distance.
« Last Edit: July 13, 2011, 02:10:51 pm by t0xic_kitt3n »

Offline Deron

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +5/-64
    • View Profile
Re: [Lua] RayCaster
« Reply #43 on: July 13, 2011, 06:38:49 pm »
You could at least have given credit to Lode Vandevenne before copying the code from his tutorial nearly word by word, or you should've at least changed the variable names to give us the illusion that the "Par Loic Pujet" actually was true. Sorry for being harsh, but I don't feel much sympathy for people who pretend to have made something themselves, and don't even have the guts to thank or in the slightest way mention the original creator. I'm looking forward to hearing your silly excuses.
« Last Edit: July 13, 2011, 06:59:28 pm by Deron »

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: [Lua] RayCaster
« Reply #44 on: July 13, 2011, 11:25:18 pm »
You don't actually know if Chockosta used his code or not, so I wouldn't go and accuse him, a PM asking him about this would be more appropriate. However, if this is true, then Chockosta, you should give him credit.