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

Pages: 1 2 [3] 4 5 ... 10
31
Computer Projects and Ideas / Designing Happy - OOP
« on: July 16, 2011, 05:25:10 am »
Ok, I'm trying to add OOP to Happy.
I only have a small problem:

Where do I place te objects, and how big?

It is simple with objects like this:

Code: [Select]
type point[2] {
    ubyte x;
    ubyte y;
}

// And in the program or global declarations:

point lol;


I can place this with the other vars after the code, and I know I need 2 bytes of space

But even this approach gives problems:
For example, how do I give it initial values? 

Amd when using the stack, How do I know the amount of space left?

And this gives even more problems:

Code: [Select]
type string[] { // Yup, no native support
    ubyte[] value;
    
    empty create(ubyte[] in) { // empty is a subroutine type
        // Loop and copy the string
    }
}

This one doesn't make sense, because we have the same data twice in RAM.

Code: [Select]
type enemy[10] {
    ubyte x;
    ubyte y;
    ubyte[8] sprite; // The monochtome sprite data

    empty move(sbyte dx, sbyte dy) {
        x = x + dx;
        y = y + dy; // update the pos
    }
}

To make it short:
1. Happy doesn't always know how big it is
2. How can initial values be set?
3. How do I stop the program from corrupting things in RAM, with a ever-growing stack?

32
The Axe Parser Project / Re: Axe Parser
« on: July 15, 2011, 02:03:17 pm »
Woooooooow I love it!! I love it!! Why work on Happy if we have THIS, it's AWESOME!
Sleep well!!

I think I love the new function calls the most!!

33
Humour and Jokes / Re: Racist e-mail (Canadians be warned, eh)
« on: June 30, 2011, 04:23:07 pm »
@Eeems Lol, I met some Canadians, they were really nice people!!!

34
Miscellaneous / Re: What is your signature?
« on: June 30, 2011, 03:09:16 pm »
My sig is meant to be a bag full of info and garbage, using spoilers.

35
TI Z80 / Re: DionJump: a DoodleJump clone for the calcs
« on: June 30, 2011, 03:06:29 pm »
Poof, new update, I have been busy on my axe libraries, school, a notes program, Happy, minecraft (sadly), and some other things, but here it is:

* Fixed some annoying bugs, like falling through blocks.
* Blocks aren't (completely) hidden in walls anymore.
* As always, I did more but I forgot ... (0x5)

now version 0.6.7

As always, NEWJUMP is the program, SNEWJUMP the source.

Please report any bugs!!

36
The times I vanished I had really important school test weeks, and had to learn for that.
And most of the time, if I have nothing to say, I don't say anything... Maybe that is a bad habit?

@Qwerty, LOOK AGAIN!!! Your rickroll is waiting!

37
Humour and Jokes / Re: Racist e-mail (Canadians be warned, eh)
« on: June 30, 2011, 02:41:49 pm »
LOOOL DT!!!!!!!!
Lasers there are pretty cool too, have a 30mW one here
* yrinfish starts playing with it


the cooking page: two dolphins doing ... uh ... yeah

38
Humour and Jokes / Re: Another TI fail!
« on: June 29, 2011, 12:38:20 pm »
That's pretty dumb

39
sorry for the off-topic:
Try again, you have missed something.

Does Happy/Random count as a calc project? (If not, I have DionJump (I should upload my new version))

40
Is it still open? I would like to join!!

@Qwerty.55, here it is: linky

41
TI Z80 / Re: The Happy Parser
« on: June 22, 2011, 03:17:27 pm »
Ok, I am working on a new version. which will be designed top-down (that means, first get the parsing large things right, then the smaller ones).
Currently this is valid:

Code: [Select]
{
    if() {
        ;
        ;
    } else {
        ;
        ;
    }
}
yup, that's right, nothing yet...  To see what it actually does, type dev in the options box.
But if I would merge it with the old parser, I would have an almost working one!
However, I don't want to  ;D, because I'm going to add support for data types and so on...

some questions:
default signed or unsigned? (or 16bit signed and 8bit unsigned)
C or am I allowed to make it more calc-specific and consistent?

I'll keep you updated via the first post and my sig.

42
TI Z80 / Re: My explosive contest entry
« on: June 21, 2011, 04:07:28 pm »
You have a vote O.O WOW I WANT THAT

What about 'grenades', so you can change the direction something is flying to.

43
TI Z80 / Re: TCPS embedded/independent scripting language
« on: June 21, 2011, 08:56:53 am »
Wow, you're bored and think: Let's create a new language! LOL
How did you make it on-calc?

44
Site Feedback and Questions / Re: Apology
« on: June 21, 2011, 02:18:29 am »
Wow, nice you did that!!

@DJ_O, bashing languages is wrong, but debatting too?

45
Miscellaneous / Re: Seeing into the future?
« on: June 21, 2011, 02:14:05 am »
@DT, wowlol

I think a deja vu is a mistake by our brains, but because we don't know everything about them, it could be something different.

^Baaaaad grammar, I know

Pages: 1 2 [3] 4 5 ... 10