Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Marcus

Pages: [1] 2 3 ... 29
1
Libraries / Re: GLOOM, a new raycaster library
« on: August 03, 2017 »
Aye, just set the last parameter for GLOOM_SetFog to 0 :)  Just trying to make it look retro:er with that fog effect.

2
Libraries / Re: GLOOM, a new raycaster library
« on: July 29, 2017 »
Ah, good :)  Usually strafing left and right, by holding down Z, makes distant enemies easier to hit. But I'll add some options for tweaking the controls later. I wanna make 12 levels before I'm done with this game :)

3
Libraries / Re: GLOOM, a new raycaster library
« on: July 28, 2017 »
Here's the first area (four levels) of the game. I've added some music and sound effects, and you can now also use the arrow keys to move (the title screen explains the controls). There's even a boss at the last level, but you still can't die, so ... :)

I forgot to mention on the title screen, that you can HOLD the TAB key to show a map.

4
Yeah, someone reported negative time() values. I guess that could happen if your computer had been turned on for very long. Naalaa only supports signed integers, and as C's timegettime returns a DWORD (an unsigned int) some weird stuff could occur. I've fixed it and it'll be in the next update, that will be released within two weeks (finishing up the GLOOM library).

5
Showcase / Re: Music Keyboard
« on: July 24, 2017 »
I'm going to the No-Internet land for a week, but hopefully I'll be able to download it through my phone, looks interesting!

6
Oh god, I've missed some threads :D

The function time() works just like timeGetTime in Windows (C++) and returns the time elapsed since Windows started :)

In the next update I'll change it to return the time that's passed since the program started instead, makes more sense (atleast for me).





7
Yeah, I've seen it quite often, just haven't had the time to fix it. Usually happens when you have just two files open and close the leftmost tab. An update is coming and I promise to fix the issue :)

8
Sorry, there's no built in way to deal with that :( Usually I only use text for displaying score and information with pretty well known length that I can split up in forhand. But here's a simple procedure you can try:

Code: [Select]
create font 0, "courier new", 28

text$ = "Hello there, this is a really long and interesting text that "
text = text + "will hopefully span over multiple rows. My uncle used "
text = text + "to write really long texts, but they weren't that funny."

_PrintLong text
wait keydown


procedure PrintLong(txt$)
do
if fwidth(0, txt) >= width(primary)
index = 0
while fwidth(0, left(txt, index)) < width(primary)
index = index + 1
wend
wln left(txt, index - 1)
txt = right(txt, index - 1)
else
wln txt
break
endif
loop
endproc

If you need a more generic way to word-wrap text at a certain x position and with a certain width I could probably write some more advanced function.

9
Libraries / Re: GLOOM, a new raycaster library
« on: July 03, 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.

Yeah, the first zombie type should be easier. I'll remove the run-at-ya part from it and save it for the second type. Bigger guns will come too. I can add the option to use Wolfenstein 3D controls (no mouse, just arrow keys for movement).

10
Libraries / Re: GLOOM, a new raycaster library
« 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

11
Libraries / Re: GLOOM, a new raycaster library
« 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.

12
Libraries / Re: GLOOM, a new raycaster library
« 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 :)


13
Code snippets / Re: Write wave files
« on: June 23, 2017 »
Very nice!

I know so little about sound, but it makes one wanna experiment with creating a realistic piano sound :)

14
Libraries / Re: GLOOM, a new raycaster library
« 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.

15
Libraries / Re: GLOOM, a new raycaster library
« 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.

Pages: [1] 2 3 ... 29