The Mossmouth Forums

Games => Source => Topic started by: Kegluneq on October 15, 2011, 02:12:14 PM



Title: Line of Sight Mod!
Post by: Kegluneq on October 15, 2011, 02:12:14 PM
What's this? A new mod? That's craaaazy!

Anyway, I've wanted to make this for quite some time, only I didn't actually start trying for real until yesterday.

Here's a few screenshots so you know what to expect:
(http://www.mediafire.com/imgbnc.php/8e8976dedf4a4580d32dde10d90e1f3922972b70476239ca7ede3f33ff2abd3b6g.jpg)
(http://www.mediafire.com/imgbnc.php/84f49de480fe13a2ee3cfa1142e1df22cdd979c55113e76e8cd5c9e7368c0c1d6g.jpg)
(http://www.mediafire.com/imgbnc.php/d609b979e8572b33545a4a7667c71b116f7dc50c490585013ef52f45d8fc410e6g.jpg)
(http://www.mediafire.com/imgbnc.php/9dbad82cc3d7db09c1f1a64b4c4e961da5673895a64a17bb3ad0e062001227ed6g.jpg)

Get it here! (http://www.box.net/shared/jmfdizz0uuzu1kiuvb6t) Or get it ghostless! (https://www.box.com/s/e178fdc5e5fedb41807e)

Changelog:
v1.2 (http://www.box.net/shared/jmfdizz0uuzu1kiuvb6t): Fixed the bugs introduced in v1.1 and fixed the boss room.
v1.1 (http://www.box.net/shared/n6s04mz4gzv3j8zj67g5): Changed ice blocks to not block line of sight. As a result, ice levels are now easier, and you can see what the prize at the craps house is.
v1.0 (http://www.box.net/shared/y675m10pdf2q0oacffr2): Game over fixed, pause screen fixed, item get effects fixed, dark levels fixed.
v0.3 (http://www.box.net/shared/55bhixyqlz7kqltyn59b): Line of sight algorithm improved, shadows look much cleaner now.
v0.2 (http://www.box.net/shared/5gpgqhq3vsjtvvfjyc3v): First release.


Title: Re: Line of Sight Mod!
Post by: marsgreekgod on October 15, 2011, 05:40:54 PM
This is like a mod I wanted to make, only you can still see behind you.

you should make a verson where you can't


Title: Re: Line of Sight Mod!
Post by: Sparkle on October 15, 2011, 05:47:45 PM
Agreed with Mars, and yay! this looks like it will be lots of fun, given my playing style. c:


Title: Re: Line of Sight Mod!
Post by: Bae on October 15, 2011, 06:15:22 PM
So Spelunker has eyes in the back of his head I see

also you should try to make it less ugly, I mean all that sudden black everywhere is really.... eh

its probably a bit complicated to program, but maybe you could try adding a dithery fade to the shadows, like the ice levels have (see attachment (http://i.imgur.com/LQsi7.png)) and shading the far sides of the blocks or something

pickiness aside this looks pretty cool, i swear someone else has made something similar though


Title: Re: Line of Sight Mod!
Post by: marsgreekgod on October 15, 2011, 07:12:39 PM
So Spelunker has eyes in the back of his head I see

also you should try to make it less ugly, I mean all that sudden black everywhere is really.... eh

its probably a bit complicated to program, but maybe you could try adding a dithery fade to the shadows, like the ice levels have (see attachment (http://i.imgur.com/LQsi7.png)) and shading the far sides of the blocks or something

pickiness aside this looks pretty cool, i swear someone else has made something similar though
yeah I can help with that if you want


Title: Re: Line of Sight Mod!
Post by: Kegluneq on October 15, 2011, 07:18:28 PM
I thought about doing something like that, but didn't figure out exactly how, at least not with the method I used to implement the LoS. EDIT: Check that, I think I figured something out.

I thought about making it so that you could only see in front too, but I realized that I would just keep hitting left and right and it just seemed kinda unnecessary.


Title: Re: Line of Sight Mod!
Post by: Bae on October 15, 2011, 07:34:00 PM
you know what the best approach would be for this LoS thing?

make spelunky into a first person adventure game yep simple


Title: Re: Line of Sight Mod!
Post by: Wonkyth on October 15, 2011, 07:54:38 PM
Dude, this is awesome!
Damn, I wish I had time to play it!  :(


Title: Re: Line of Sight Mod!
Post by: halibabica on October 15, 2011, 07:56:31 PM
Haha, very clever!  I hope you can work out all those bugs.


Title: Re: Line of Sight Mod!
Post by: Wonkyth on October 15, 2011, 07:59:42 PM
Also, what method are you using?
Triangle fans?


Title: Re: Line of Sight Mod!
Post by: Kegluneq on October 15, 2011, 08:38:51 PM
Triangle fans yes, drawn with primitives. There are method for using textures to draw the primitives, I'm trying to figure out how they work right now.

EDIT: Oh so that's how it works. Then I have no idea how to get a fade effect.
Specifically, the method I'm using is draw_primitive

EDIT 2: Version 1.0 is out! Game over fixed, pause screen fixed, line of sight improved, misc. item get effects fixed, dark levels should be fixed. Awaiting testing results.


Title: Re: Line of Sight Mod!
Post by: Moloch on October 16, 2011, 07:01:17 AM
Cool stuff! I just played a couple levels so far.


Title: Re: Line of Sight Mod!
Post by: Kegluneq on October 16, 2011, 12:19:22 PM
Updated to v1.1 (http://www.box.net/shared/n6s04mz4gzv3j8zj67g5)!
Changed ice blocks to not block line of sight. As a result, ice levels are now easier, and you can see what the prize at the craps house is.

Bug: Thanks to my ice block change, UFO lasers will pass right through them. I kinda like it though, so I probably won't change it unless you all think it really needs to be done. It adds back a liiiiitle more of the difficulty I took away by making ice see through to begin with.


Title: Re: Line of Sight Mod!
Post by: halibabica on October 17, 2011, 07:15:07 AM
"ERROR in
action number 1
of Begin Step Event
for object oScreen:

In script LoS:
In script draw_shade:
Error in code at line 20:
   switch (shape) {
           ^
at position 10: Unknown variable shape"

Got this entering the final boss room.  Also, ice can no longer be blown up with bombs, and you can see the trap doors of the spike ceiling trap in the temple.  Cool mod, though!


Title: Re: Line of Sight Mod!
Post by: Kegluneq on October 17, 2011, 08:18:17 PM
I'm aware of the boss room bug, it's really confusing me. Those other ones should be easily fixable though, I'll get on it tonight!

EDIT: Fixed! The boss room too!


Title: Re: Line of Sight Mod!
Post by: Urza on October 17, 2011, 09:35:16 PM
Very impressive. I do have one suggestion though. This seems to disable the Ujdat Eye's gem finding ability (and presumably also the spectacles). Why not give them new abilities that integrate with the LoS mechanic? For instance the Ujdat Eye might let you see through one layer of blocks while touching them. Or the spectacles could show items within a a certain range visible, even if out of LoS.


Title: Re: Line of Sight Mod!
Post by: Kegluneq on October 29, 2011, 05:05:21 PM
I thought about changing a few item abilities, especially those, to suit the mod better. It's definitely a possibility.

EDIT: Got any ideas anyone? Here are the items that need changing most: Eye of Udjat, Spectacles, and Teleporter (it's much harder to teleport when you have no idea where you're going).
Urza's ideas are pretty good, but I wanna see what everyone else may have in mind.


Title: Re: Line of Sight Mod!
Post by: halibabica on October 30, 2011, 04:52:05 AM
I have some ideas!

Spectacles: On top of revealing objects hidden underground, these could show the placement of all solids in the cave.  Any blocks out of your view could glow white, showing you the layout of the cave.  However, you still wouldn't be able to see enemies, spikes, etc.

Udjat Eye: Being more common to obtain than the Specs, this should have a similar effect, but nerfed.  I'm thinking it could make treasures glow when out of view, including those buried in blocks.

Teleporter: I suggest this at the risk of making it too useful, but you could give it a fail safe so it won't teleport you inside a solid.  Like, if the selected destination would crush the player, it could play the unused sound effect 'bombready' instead of teleporting them.  That's the best I can think of without revealing all possible teleport destinations ahead.


Title: Re: Line of Sight Mod!
Post by: DialFforFunky on October 30, 2011, 11:42:35 AM
Pretty nifty mod, I like it. I absolutely love the new ice.

A bug I haven't seen mentioned but I assume you where already aware of, is that movable blocks do not work anymore.

It would be cool to add some sort of memory to it, allowing you see parts of the level you have been.

As for the teleporter: of course you could also alter it's function completely. For instance, you could make it a radar, allowing you to see enemies as red dots if out of line of sight.


F


Title: Re: Line of Sight Mod!
Post by: Kegluneq on October 30, 2011, 06:06:58 PM
I thought about some kind of sonar feature, although I was thinking more along the lines of mapping the caves out, but that my be a little OP. I like your enemy idea, that would be really useful.

The "fog of war" idea is pretty good too, but that would be difficult to make, so I'm going to have to pass on that.


Title: Re: Line of Sight Mod!
Post by: Urza on November 02, 2011, 01:05:47 AM
On Teleporter, if you went with the idea of blocking unsafe teleports, perhaps you could add a delay between uses. That might be enough to discourage spamming it randomly.


Title: Re: Line of Sight Mod!
Post by: Patrick on November 03, 2011, 05:19:39 AM
Maybe an item that lets you "remember" the areas you've seen... like, an outline or something...


Title: Re: Line of Sight Mod!
Post by: Wonkyth on November 04, 2011, 02:22:48 AM
Actually, that's a good point. The sprite for the teleporter is generic-looking enough that it could serve a multitude of possible purposes.


Title: Re: Line of Sight Mod!
Post by: Icecream on July 21, 2012, 07:48:08 AM
I know this is a dead topic but I love this mod, it's certainly my favorite.

A couple of bugs I noticed, I can't see gems even with the ujadt eye or glasses, can't push blocks. If you ever decide to keep working on it know that I support and encourage you greatly.

also, created this account just to say this.


Title: Re: Line of Sight Mod!
Post by: Kegluneq on July 28, 2012, 09:21:21 PM
Thanks!
I thought I fixed the moving block problem, but I was aware of the gem thing. I never really felt like updating before, but now that I see many more people have downloaded it perhaps it is time for an update!