Recent Posts

Pages: [1] 2 3 ... 10
1
Libraries / Re: GLOOM, a new raycaster library
« Last post by Rick3137 on May 27, 2017 »
   Looks awesome. Can't wait to try it out.





2
Libraries / Re: GLOOM, a new raycaster library
« Last post by Marcus on May 27, 2017 »
I finally have a simple editor up and running. It took the whole day to write, since I couldn't figure out how make resizing the map image work with IUP. You don't deal with images/textures, just walls and grid cels with values.

3
Libraries / Re: GLOOM, a new raycaster library
« Last post by Marcus on May 26, 2017 »
Good to hear :)  I'll see if I can write a proper map editor tonight.
4
Libraries / Re: GLOOM, a new raycaster library
« Last post by X54321 on May 25, 2017 »
My 64 bit Dell laptop is getting good results as well. I even modified it to try and make the rotating walls crush me into the level boundaries, but I never clipped through them. That's pretty impressive, I suppose.
5
Libraries / Re: GLOOM, a new raycaster library
« Last post by Rick3137 on May 25, 2017 »
  I tried the examples on my HP Pavillion laptop. ( 64 bit )
  No problems yet. Works fine.
6
Libraries / Re: GLOOM, a new raycaster library
« Last post by Marcus on May 25, 2017 »
Here's a new zip with gloom in a separate lib and dll and three example programs. There's also some html documentation that I haven't read through yet. Many more examples will come, and the library will have more functionality added as I discoved the needs. There will be some kind map editor, but it will be pretty simple. In one of the examples included here, I use a polygon created with the Poly Editor to build static and moving wall structures.

I know the forum is kind of dead and that it's my own fault. But if anyone tries the stuff out, feel free to provide some feedback :)

There's basicly no "error checking" in the entire naalaa or C part of the library yet. So if you're not careful the whole thing might just decide to crash :D  But it'll come.


Edit:  I can already see the need for "invisible" walls, if you want to add barrels, tables and stuff in the form of sprites.
7
Code snippets / Re: Amazing New Circle Drawing Algorithms
« Last post by Rick3137 on May 24, 2017 »
 ;D ;D ;D

 To quote an old poet; (Shakespeare) " There's method to his madness "
8
Code snippets / Re: Amazing New Circle Drawing Algorithms
« Last post by Marcus on May 24, 2017 »
Maybe I should just add a "draw circle" to the language to end this madness :D
9
Code snippets / Re: Amazing New Circle Drawing Algorithms
« Last post by Rick3137 on May 23, 2017 »
   Here is my latest Circle Drawing Algorithm:

procedure DrawCircle(x,y,radius)
    p1[72]
    p# = 0.0
  xp = 0 ; yp = 1     
   for cnt = 0 to 35
    p# = float#(cnt)
      p1[xp] = x + int(cos(p * 10.0) * float#(radius))
      p1[yp] = y + int(sin(p * 10.0) * float#(radius))
     xp = xp + 2 ; yp = yp + 2
   next

     set color 0, 0, 250
     draw poly p1, true

endproc
10
Libraries / Re: GLOOM, a new raycaster library
« Last post by Marcus on May 22, 2017 »
Looks pretty neato!
I did not know that you could make NaaLaa libraries in C...

Transparent and moving/rotating walls coming soon, hopefully :)

It's possible to write "extensions" in C, but it's a bit awkward since communicating with the naalaa runtime is messy. You pass all information to/from a C function through a naalaa object. "PARAM_GET_FLOAT("x");" in C fetches a float value set in naalaa like:

  params?.x# = 3.14
  params.dummy = 42
  params.a_string = "hello"
  DLL_CALL myDLL, "functionName", params

And you can get pointers to images, the window and such in the C program.
Pages: [1] 2 3 ... 10