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 - Darl181

Pages: 1 ... 125 126 [127] 128 129 ... 253
1891
Other Calculators / Re: Music from a Flash Drive
« on: July 08, 2011, 08:52:48 pm »
When you go to send a program to the flash drive, it has a window that pops up and you scroll through the vars to the program/appvar/whetever.  Most of the time the stuff is scrambled around.

1892
Other Calculators / Re: Music from a Flash Drive
« on: July 08, 2011, 08:50:22 pm »
Hmm...while you're at it..

How hard would it be to make it so it lists the programs in a way other than just reading through the vat?  Sometimes it's so hard just to find a single program...esp. because the appvars are usually before the programs :P

1893
Axe / Re: Physics Lessons
« on: July 08, 2011, 08:38:27 pm »
So, he put the *W in the wrong place?

Anyway, what I'm trying to do with this (and am not too sure how to implement) is detect an object that moves by 1,2,4, or 8 pixels every frame.  Would I have to make multiple sprites or something?

1894
Miscellaneous / Re: What is your avatar?
« on: July 08, 2011, 08:04:57 pm »
Moved the non-transparent mix-with-post-color avatars out of the script.  Kept seeing juju's posts and thinking they were mine :P
All old ones still there, tho.

1895
Axe / Re: Physics Lessons
« on: July 08, 2011, 07:58:31 pm »
Ok, so what this does is it computes what square the (x,y) is inside of, then compares it to a sprite to see if that one bit is true? 
...in one line? O.O wow

1896
Axe / Re: Physics Lessons
« on: July 08, 2011, 07:54:20 pm »
But the matrix part is what's confusing me.  What purpose does it serve?

1897
The Axe Parser Project / Re: Axe Parser
« on: July 08, 2011, 07:33:22 pm »
Well, as someone who uses them all the time in programming, I can say they are very useful in many situations.  They can help reduce the number of methods needed to evaluate a certain value.  DeepThought gives a decent example with different features per level, such as if you had two different levels of gravity:

Code: [Select]
@gravity = lambda {|cur_level|(cur_level%5==0)?(1):(2)} / air_density
So that every five levels the lambda would return 2 instead of 1.  In that example you could take out the lambda and still be fine, but there are even bigger needs for it when you need to directly pass values as parameters into complex equations with highly varying outputs or when you go to attach them to variables directly so that a variable's state is defined by input parameters.  Which brings me to ask, quigibo: are you thinking of adding full support for lambdas/procs with variable attachments and inlining functions, or just inlining?

EDIT: hmm, so the case here isn't just that many don't know how to use them, but that they also don't know what they are :P understandable.  In a nutshell:

Lambdas are functions that stand in for single values (though in some cases they can return multiple values, but don't worry about that most languages don't even support it).  They can take passed arguments and can contain code that'll evaluate expressions and return values accordingly.  Very, very useful.  For a decent background, here's the wikipedia link Qwerty pointed me to a long time ago that I found very helpful: http://en.wikipedia.org/wiki/Lambda_calculus

Ok, so a lambda is basically a subroutine taking a place of a number.  Sounds cool ;)
So I'm guessing something like...
sub(GC)→P
[...]
Lbl GC
GetCalc(Str0L)
Return

...would work?

1898
Axe / Re: Physics Lessons
« on: July 08, 2011, 07:21:39 pm »
Quote from: http://ourl.ca/4279/169823 (masked sprites thing)
Code:
Lbl MSK
{r2^8+{r2/8*W+(r1/8)+L1}+Str1}e r1
Return


Where r1 is your X position, r2 is your Y position, W is the width of your tilemap (in tiles), L1 is the location of your matrix data buffer, and Str1 is the start of your Mask Sprite table.

I get what this does, but what exactly is the matrix data buffer?  Does it determine which sprite to read or something?


EDIT:
How do you use tile masking with 5 by 5 tiles rather than 8 by 8 tiles?
Quote from: line I don't understand completely but most of it I do :P
Where r1 is your X position, r2 is your Y position, W is the width of your tilemap (in tiles), L1 is the location of your matrix data buffer, and Str1 is the start of your Mask Sprite table.
Just change W, afaict ;)

1899
TI Z80 / Re: The World's Hardest Game
« on: July 08, 2011, 06:53:51 pm »
Heh, this looks interesting...
I noticed mine wasn't mentioned at all in that thread but w/e.

Actually the one I made was kind of horrible, completely unoptimized, pixel testing, that kind of stuff.
I might reboot it after the contest...and it'll probably be something like >9000 times better than the previous one :P

1900
Miscellaneous / Re: What is your signature?
« on: July 07, 2011, 10:29:47 pm »
Itsay away anguagelay, ontay away amegay :P
Ateverwhay.

1901
TI Z80 / Re: Dimension Shift: Contest Entry 2011
« on: July 07, 2011, 08:49:08 am »
Under-the-hood fixes, random bugs regarding bitwise reading, fun stuff :P

Anyway, I'm just about done with the options.  Fsr the game doesn't detect when they're activated even though the exact same thing seems to work in small test programs...a la inData(). >:(
Not a hard transfer to bytes but still...why does this keep happening... :/

1902
Miscellaneous / Re: Random YouTube Videos
« on: July 07, 2011, 08:35:13 am »
* Darl181 notices this thread died
Is it just me, or is youtube not working lately?  Embedding works but the actual site doesn't (for me at least)

Anyway, my programming teacher was showing us these random top gear videos (car tech show I guess) and this one's kind of...odd. :P

1903
The Axe Parser Project / Re: Axe Parser
« on: July 07, 2011, 08:10:34 am »
More seriously, Ashbad's referring to inline functions, I presume, which probably aren't going to happen.

Quigibo just said they were gonna happen, so I assume they are :P
Ok, let me rephrase that.

Can someone describe in simple(r) english what lambdas are and how they are used?

1904
Miscellaneous / Re: Does this work
« on: July 07, 2011, 08:06:27 am »
I just searched "two color pong" (no results when hyphen was included) on ticalc and it came up with this random "pong kombat".

I tried the game you were talking about in wabbit...idk whether it's trustworthy or not :/

EDIT: odd, what shows in the screenie is completely different from what it was showing...it was just a solid black screen when I was testing it.

1905
News / Re: Omnimaga 2011 Programming Contest, Part #1: Axe Parser
« on: July 07, 2011, 07:57:20 am »
Gaah, time to start x.x
indeed.

8 days left...so close

Pages: 1 ... 125 126 [127] 128 129 ... 253