### 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 - bored_student

Pages: [1] 2 3 4
1
##### Axe / Re: can someone help me with my physics code?
« on: October 18, 2013, 03:57:49 pm »
Be careful with Pixeltests when you are using acceleration.
I think what happens here is the following:

imagine Y=55*256 + 255
your sprite is displayed with a one-pixel gap between the sprite and the ground line because  Y/256=55.996  is truncated to 55 in Axe. The pixeltest returns false.
Now your acceleration is at 257 or more.
In the next loop  Y=55*256 + 255 + 257 = 57*256
your sprite is displayed at Y/256 = 57  this is already on the ground line. The pixeltest which tests the row under your sprite returns false because the ball has already crossed the line. Now there is no way to stop your ball from falling further off the screen.

This can not only happen with the values I pointed out above but always if the acceleration is more than 256. The ball can skip certain pixel lines then and the same can be at the vertical walls.

There are three different solutions I can imagine:
A: Draw multiple lines on the ground (I wouldn't do that because the ball may kind of sink into the bottom lines and stay there
B: Keep the acceleration under 256 (this shouldn't be a problem  )
C: Don't use pixeltest but check if the ball is lower then the last line (somthing like  Y/256>55  be careful then with the negative Y when the ball goes offscreen at the top  then you may use  Y/256>>55)

In my opinion version C is the best because I think it's the most clean and the fastest solution

2
##### ASM / Re: Menu hook
« on: October 18, 2013, 01:47:19 pm »
I first tried to block the entries by returning with the zero flag reset on the first call (A=4) of the hook.
It didn't work well so I asked me if there's another way.

I'm going to try this when I'm coming home next week.

Maybe I will ask another question then, but for now thank you a lot

3
##### ASM / Menu hook
« on: October 16, 2013, 12:05:41 pm »
I have a question.
Can menu hooks be used to block or hide certain menu entries of the TI-OS menus.

4
##### Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: October 15, 2013, 12:40:04 pm »
keep increasing by 1 and not by 31
5671: Your calc needs new batteries 5 times a month

5
##### Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: October 15, 2013, 12:27:56 pm »
5669:  You use hexadecimal numbers in your math class

6
##### Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: October 14, 2013, 08:34:48 am »
6563: Your 3YO can program his or her calcs and is proficient in a variety of languages.
Shouldn't you keep the numbers increasing by one and not by a few hundred

5653 (5654 if you change your number) :
You lost your driving licence (assumed you have one) because of coding while driving the car
5654: Your calculator chrashed because you took it under the shower

7
##### The Axe Parser Project / Re: Axiom Requests
« on: October 14, 2013, 08:26:27 am »
In fact you can do that with the ScanF() function. You pass the lamda which returns the adress of the subroutine as the first parameter and make somthing like Pxl-On({->r1}...  to store the pointer given in HL to r1 and use it further.

By the way I forgot a command in the DelI() function. I will post a update tomorrow (with Get() function to get a pointer to a specified element and Length() to easy access the length of the list.

Edit: Here it is. Hope I didn't make any mistakes yesterday night
I'm going to make an example program soon

8
##### The Axe Parser Project / Re: Axiom Requests
« on: October 13, 2013, 12:59:27 pm »
I see two things that I think are not right :

• MaxLength and the actual length of the array both take 1 byte. That's not enough in most situations. For example, in IkarugaX my bullet engine handles 192 bullets, and each bullet is an 11-bytes entry. 192 * 11 = 2112, which won't fit in 1 byte.
The MaxLength counts the elements in the list, not the bytes. You can therefore store up to 255 bullets in the list. Each bullet data itself has the size of ElementSize which is up to 255 again. A list of 255*255 bytes + 5 bytes for info would barely fit into RAM.

Quote
• I can't see any function to retrieve individual elements from an array ...
Yeah I forgot that one . I will add it soon

Quote
Also, IMO in LScanD you should just stop the scan instead of deleting the current element if HL ≠ 0.
Why ?
This function should help you to display all objects (for example bullets) and delete those that are maybe out of the screen.

9
##### The Axe Parser Project / Re: Axiom Requests
« on: October 13, 2013, 11:52:17 am »
So here is a first readme with an explanation of all the commands.

I plan to make a Length command and a Reset command that clears the list (array).

10
##### The Axe Parser Project / Re: Axiom Requests
« on: October 13, 2013, 10:37:15 am »
I want to introduce my new Axiom.
It's for creating and managing arrays at random memory locations.
When you created a array you can easily add or delete elements.
There's also a routine to go through all elements with a callback function and delete elements by the return value of the callback function.
It's very useful for making games where you have to handle many objects (as bullets or enemies).

I attached the source and the compiled Axiom but sadly I haven't written a readme file yet.
(tokens are in the 'ZOOM' menu)
It's my first assembly project and I would be glad if someone helps me optimizing it

11
##### Miscellaneous / Re: Religion Discussion
« on: October 12, 2013, 02:26:38 pm »
That's exactly what I meant with "refuse God's love"

12
##### Miscellaneous / Re: Religion Discussion
« on: October 12, 2013, 01:46:24 pm »
The majority of people will go to Hell, based on the Bible:

Matthew 7:13-14
13 “Enter through the narrow gate. For wide is the gate and broad is the road that leads to destruction, and many enter through it. 14 But small is the gate and narrow the road that leads to life, and only a few find it.

The Bible also says that God wants to save everyone (2 Peter 3:9)
Why should God let himself nail on the cross, when not to save all humans.

13
##### Axe / Re: help with my Axiom
« on: October 12, 2013, 01:03:45 pm »
Thank you a lot
I will try it. But for now it isn't a problem anymore because I found
a way to write the code without the 16bit load command.

14
##### [DE] Off-Topic / Re: Wer ist ein Deutscher (oder kann deutsch sprechen)?
« on: October 12, 2013, 12:46:57 pm »
Hä ?

Der Satzbau stimmt da nicht ganz.
Klingt deshalb schon nach Google Übersetzter

15
##### Miscellaneous / Re: Religion Discussion
« on: October 09, 2013, 05:57:47 am »
Hell isn't really a popular term in mormon sects. The general term used is Outer Darkness, described as being filled with weeping and wailing and gnashing of teeth (from the other inhabitants of said place). This place is reserved for those who knowingly reject the atonement, e.g. participation is 100% voluntary.
I don't know much about the mormonism but i think this is also the catholic image of hell.
Nobody has to go to hell because god want's to save everyone, but humans are created as free individuals.
So everybody can refuse God's love and can live without him in eternity.
This place without God and love is called the hell.

Pages: [1] 2 3 4