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 - Xeda112358
Pages: 1 ... 194 195 [196] 197 198 ... 317
2926
« on: October 30, 2011, 01:11:45 pm »
[rant] It is usually advised not to post such negative remarks. We are hobbyists here so we code for enjoyment and often for others and it is all for free. We like to experiment with the limits of the calculator and we have pushed the limitations of these much outdated devices because of doing things like this. Could you believe that a calculator could be used to chat via the internet? Or how about having a wifi connection? Or listen to the radio?
Do you understand the consequences of this? What do you think happens when we move on to more up to date devices? We have the experience and drive to get all that we can out of our devices. We don't waste resources here. Can you imagine just how wasteful other programmers are? Have you ever opened up a piece of software and been able to cringe because most people code the easy way, not the most effective way?
So please, before you want to treat somebody like crap, think of the consequences of what they are doing and avoid looking at things on the superficial level.
[/rant]
2927
« on: October 30, 2011, 12:59:52 pm »
1 period = 1 day? So 1 period over 6 is four hours... (don't listen to me!)
2928
« on: October 30, 2011, 12:57:06 pm »
The only issue people might have with that is that the end user will need an ION shell Also, we usually edit our previous post with amendments as opposed to double posting
2929
« on: October 30, 2011, 11:19:03 am »
.dw sets a little-endian word (2 bytes) I don't know if Mimas supports that, if not, do .db 0,0
For example, .dw 5 is 0500 in memory
2930
« on: October 30, 2011, 09:57:35 am »
(note: we talked on IRC ) Here is a version that is a little more optimised. I could do another optimisation, but that would probably just cause some confusion And it only saves 2 bytes, anyway... Loop: bcall(_ClrScrnFull) ;Clears the homescreen ld hl,(Coor) ld (CurRow),hl ld hl,PIE bcall(_PutS) bcall(_getkey) ld hl,(Coor) ;obtains the current cursor coordinates (l=row, h=col) ld d,h \ ld e,l TestRightKey: dec a ;if a was 1, it becomes 0 and sets the z flag jr nz,TestLeftKey inc d TestLeftKey: dec a jr nz,TestUpKey dec d TestUpKey: dec a jr nz,TestDownKey dec e TestDownKey: dec a jr nz,TestClearKey inc e TestClearKey: ;At this point, "a" has been decremented 4 times, so we test kClear-4 cp kClear-4 \ ret z CheckBounds: ld a,e \ and 7 ld l,a ld a,d \ cp 8 jr nc,NotOutOfXBound ld h,d NotOutOfXBound ld (Coor),hl jr Loop PIE: .db "pi_symbol",0 Coor: .dw 0
2931
« on: October 30, 2011, 08:46:08 am »
1. How can you make it that a variable toggles from 0 to 1 and vice versa if you press a special key, but it doesn't keep toggling when you hold it? It shouldn't influence the other getkeys for movement, etc. in the same loop.
What I would do is something like this: 0→D Repeat getKey(15) getKey(9)→C !If C 0→D End If C+D=1 1→D End .... End
I am not sure if this will work, but you should be able to use D to get the Enter key. It should only return 1 when you press it, but if you keep holding it, you should get 0. *I have not tested this and I have almost no experience with Axe, so backup your data before using this code! EDIT: Here is my attempt at further analysing my code Don't try this at home, kids 0→D Repeat getKey(15) getKey(9)→C C*D+C and 1→D .... End
EDIT2:And even more 0→D Repeat getKey(15) getKey(9)→C C and D or C and 1→D .... End
I think is the fastest method and smallest, but I am not sure...
2932
« on: October 29, 2011, 07:43:36 pm »
I use djnz to jump forward very often, actually, and it is a trick I figured out and exploited when I created my first asm library all the way up to BatLib :) I even made a note of it in my opcode chart: DJNZ * decrements B. If B is not 0, it pretends to be a jr. If B is 0, the code continues. This is mostly used for loops because it uses only 2 bytes, so * is usually negative. Because of this, people seem to forget that you can jump forward with this. :P
EDIT: and I use it for things like selecting a sprite method to draw with, rectangle method, pixel plotting method, et cetera.
2933
« on: October 29, 2011, 11:50:00 am »
Ah, good point, so I should store a copy of the randseed, too... THanks much, I hadn't even thought of that!
2934
« on: October 29, 2011, 11:42:43 am »
Wow, that would be awesome Is it okay if I use that replay feature in some of my programs if I ever feel up to it? That would be lovely for walk throughs and help features for games !
2935
« on: October 29, 2011, 11:36:02 am »
and nope that was about perfect. unless you have any specifics on what you would like there story to be like then really all we need is a personality and attributes and we will construct our own plot revolving around those ^_^
Okay, thanks, because I don't have any creative bones left in my body to come up with more ._.
2936
« on: October 29, 2011, 12:03:26 am »
hmm, okay. Is this an onfield sprite? And as for a story, I don't know ._. I see this guy as a part of a brute race that is constantly involved in war. Because of this, it has some pretty good physical strength and can somewhat use tools. This is one of the smarter individuals of its race and may be a leader of some kind. Um, is there some kind of writing guide to this stuff?
2937
« on: October 28, 2011, 11:38:19 pm »
I made this one for geekboy: Is this the kind of thing you are looking for? I offered it as a boss sprite for his, but I really don't mind either way
2938
« on: October 28, 2011, 10:44:33 pm »
mmm, that candy is pretty tasty
2939
« on: October 28, 2011, 09:01:28 am »
Eh? Was ist das? Hmm, I will see what I can do to fix that Are you asking for proper sprite clipping? I know the line, circle, and pixel routines have clipping and the rectangle routine has simple clipping that won't cause a crash...
2940
« on: October 27, 2011, 10:13:14 pm »
How do I give you ? EDIT: Oh
Pages: 1 ... 194 195 [196] 197 198 ... 317
|