Line Occupied

by Crazy Star


Posted on December 27, 2006 at 10:57 PM



Ever wanted to get those cells a line touches when places upon a grid? Well that is what this does.

Use for whatever you can think of all you want ;)


leemcd56 commented December 27, 2006 at 11:21 PM
Oh, cool =D!
poultry commented December 27, 2006 at 11:26 PM
SLOW!
Kenon commented December 27, 2006 at 11:32 PM
I see serious potential in this. No gltches as I could see. This ran without any lag on my computer as well. This is one of the first examples of this that I have seen as well. You did this very well.
DFortun81 commented December 27, 2006 at 11:35 PM
The code could have been better organized, but it works perfect. 10/10

@ChIkEn: Wth? It's not slow at all for me. I get 60/60 all of the time.
Crazy Star commented December 27, 2006 at 11:41 PM
leemcd56:
Thank you =)

ChIkEn:
Could you give some more information? Like how fast is your computer and how long was the line before you experienced frame drops?

Kenon:
I also see some potential but so far I've only needed this for one project. One of the first? Does this mean that you have seen it before? Thx.
Crazy Star commented December 27, 2006 at 11:47 PM
DFortun81:
Thanks for the 10. But how would you propose I organize the code? And do you mean the actual script or the smaller scripts? I have a project where I use all the smaller scipts for lots of other things and I sort off made this example off that so.. it's requred to be done for this in order to make it work in my other project and I can imagine if it looks odd if you're not aware of that.

If you meant the script that does the Line Occupied thing I would much appreciate if you could send it to me in a more organized version. Only if you have the time of course...
Siert commented December 28, 2006 at 12:22 AM
It works great, no lag. I just don't see how you could use this...

10/10
JID commented December 28, 2006 at 12:24 AM
Um..I dont get it 6/10
marbs commented December 28, 2006 at 12:32 AM
If you don't understand what it does, then why rate it?
Crazy Star commented December 28, 2006 at 12:35 AM
Siert:
Well... it could be used for graphical effects where a polygon is placed upon a grid and the grid cells are highligted. Ok bad example... or you could use if to see if a bullet hits a wall. And probably other things but what to use it for really isn't important -what's important is that it is an example and not all exmaples will be useful to everyone.. If that made sence heh...

JID:
Then why did you rate it?
blueBX commented December 28, 2006 at 12:35 AM
^^If you dont get it don't rate it.Just delete his comment.

Anyways it went pretty quick on my computer 60/60 but then it went down really low to 59/60 jk. I also agree with Siert. This deserves a 9/10. Good job.
Crazy Star commented December 28, 2006 at 12:36 AM
marbs:
Exactly lol.
blueBX commented December 28, 2006 at 12:36 AM
I meant to say delete JID's comment.
Crazy Star commented December 28, 2006 at 12:38 AM
blueboy:
ok thx. and lol at really low fps on 59 :)
poultry commented December 28, 2006 at 2:33 AM
I had it at the default, and it lagged horribly.
RhysAndrews commented December 28, 2006 at 5:33 AM
ChIkEn:
Could you give some more information? Like how fast is your computer and how long was the line before you experienced frame drops?
Quote
I will speak on ChIkEn's behalf, because he's not entirely capable of holding a proper conversation. His computer is, basically, crap - that and he finds flaws in everything he can find ;)

-Rhys
Kaz commented December 28, 2006 at 5:42 AM
He can get every single console but can't get a decent computer? WTF

Ran at 60fps constantly.
RhysAndrews commented December 28, 2006 at 6:25 AM
He can get every single console but can't get a decent computer? WTF
Quote
Who ever said he was telling the truth? Heck, his last name is Copley - not Banyai.

-Rhys
sirxemic commented December 28, 2006 at 10:59 AM
Your effort and this example deserve a 10/10... But you used way too much code that made things unclear to me, and probably also to others.
PS: it ran smooth on my computer.
poultry commented December 28, 2006 at 4:30 PM

I will speak on ChIkEn's behalf, because he's not entirely capable of holding a proper conversation. His computer is, basically, crap - that and he finds flaws in everything he can find ;)

-Rhys
Quote

Yeah, you need to shut the fuck up
poultry commented December 28, 2006 at 4:34 PM
@Comment #18 - Yeah, Rhys is right, you all fell for that blog.
ArKano commented December 28, 2006 at 6:29 PM
Cool! this is some sort of simple raytracing....could be used for liero-like laser sights, for example.
Juju commented December 28, 2006 at 7:10 PM
Very nicely done. I can see me using this for AI in a TDS some day. 10/10
biggoron commented December 28, 2006 at 9:58 PM
@ #22
http://en.wikipedia.org/wiki/Raytracing
Alert Games commented December 29, 2006 at 2:18 AM
awesome example! 10/10
Crazy Star commented December 29, 2006 at 3:37 PM
Thanks for your comments. @biggoron: That article had some cool images.
Robot Freak commented December 30, 2006 at 10:23 AM
Usefull!
8/10
Cesar commented December 30, 2006 at 1:45 PM
@ #21
he still believes SJF is Chiken's father >_>
ArKano commented January 07, 2007 at 10:23 PM
#24: Indeed, this is raytracing:
http://www.harveycartel.org/metanet/tutorials/tutorialB.html but in a very primitive form. i do know what raytrace is since i work everyday with it.