Author Topic: GLOOM, a new raycaster library  (Read 1170 times)

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #15 on: June 05, 2017 »
I've now added the sky-cylinder thing that I wrote a while ago, shown in this video by tinblue: https://www.youtube.com/watch?v=ofUxqSIuZ5Q  I'll upload some more examples soon, showing that and some more things. You won't really be able to build (much) more advanced things than those present in the Amiga game GLOOM, I'm afraid. So no fancy houses with sloping rooftops. Maybe I'll try and go Doom- or Quake-like when I've finished this library (if I can just stop spending so much time with my Nintendo Switch ...).
« Last Edit: June 05, 2017 by Marcus »
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #16 on: June 07, 2017 »
Added examples for sky textures, switches and bullets.

The one big thing left to show (add functions for) is probably how to manage sprites with eight directions (wolfenstein/doom style). I just have to draw or render some sprites first :)

« Last Edit: June 07, 2017 by Marcus »
.\\\opz

Mr Nutz

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #17 on: June 09, 2017 »
 :D :D Awesome ! (especially with fov = 85)

Just a small problem : it's much slower in fullscreen :(  I suppose it's because in Naalaa 6 the screen mode is not changed.

Rick3137

  • Sr. Member
  • ****
  • Posts: 346
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: GLOOM, a new raycaster library
« Reply #18 on: June 09, 2017 »
 Looking good.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #19 on: June 10, 2017 »
Yeah, the backbuffer is stretched over the entire display these days. Maybe I can add something to poll possible resolutions and a way to switch in the library, but it feels like it should be part of naalaa rather than GLOOM. I may update naalaa when I've finished this library though, we'll see.

I tried making some human looking model that I could render into an 8 directional animated sprite for the examples. But, I'm terrible at 3D modelling, so I went Minecraft style instead:

http://naalaa.com/shorties/gloom_dude.mp4

I'm rendering it through naalaa 5:s software 3d renderer, so it will be quite easy to write a program for rendering all the frames into a single image. Easy to change textures for the different body parts too :)

Edit: Resulting image of walk animation, with angle on the x-axis and animation frame on the y-axis




« Last Edit: June 10, 2017 by Marcus »
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #20 on: June 10, 2017 »
These kind of dudes fit ok in a world of large pixels:

http://naalaa.com/shorties/dudes.mp4

But they scare me a little.
.\\\opz

Mr Nutz

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #21 on: June 11, 2017 »
Maybe these Gloom deluxe assets could hep you for the demo...

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #22 on: June 14, 2017 »
Maybe these Gloom deluxe assets could hep you for the demo...

Aye, I found those assets a while a go, but I dare not use copyrighted stuff :)

Haha, I just remembered having some talks with the guy behind Gloom 3 on IRC back in the days. But that version of the game wasn't very good.
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #23 on: June 14, 2017 »
Here's the example with the walking dudes. A bit hard to explain what's going on, but I just calculate the sprite angle (image cel) from the view's (player's) position and the dude's looking/walking direction. It is simple, but awkward.
« Last Edit: June 15, 2017 by Marcus »
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 346
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: GLOOM, a new raycaster library
« Reply #24 on: June 14, 2017 »
 Cool.  8)

 Nicely done.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #25 on: June 24, 2017 »
The library feels pretty complete (atleast for my needs) now, but the editor may need some more work. I've fixed some bugs and started working on a "game", Zombie Tumult, which is included in the zip. The game uses mouse and AWSD control. You can shoot some zombies, but they won't harm you yet :)

.\\\opz

Mr Nutz

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #26 on: June 26, 2017 »
Nice !  :)
Is it possible to detect the type of keyboard with Naalaa?
I ask this because WASD controls works fine with a QWERTY keyboard but not AZERTY ;)

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #27 on: June 28, 2017 »
Nice !  :)
Is it possible to detect the type of keyboard with Naalaa?
I ask this because WASD controls works fine with a QWERTY keyboard but not AZERTY ;)

I totally didn't know there were other types of keyboard layouts :D  For WASD control, you can just let W and Z, and A and Q, do the same thing. I'll fix that for this game. There's no way to detect what type of keyboard the user has in naalaa, and I couldn't find a simple solution to it from some quick google searches.
.\\\opz

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 545
    • View Profile
Re: GLOOM, a new raycaster library
« Reply #28 on: July 02, 2017 »
Just another level for Zombie Tumult, nothing's changed in the library. Won't post more until I have a fun game :)

http://naalaa.com/Marcus/gloom.zip
.\\\opz

Rick3137

  • Sr. Member
  • ****
  • Posts: 346
  • May the Force be with You
    • View Profile
    • Rick's Programs
Re: GLOOM, a new raycaster library
« Reply #29 on: July 02, 2017 »
 Looking good . Those zombies are a little hard to stop. I don't know if its me or this key board.
 I tend to get overrun. Maybe it needs an easy level . (or bigger guns). An option to use the arrow keys would be nice.