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.


Topics - Michael_Lee

Pages: 1 2 [3] 4
31
Site Feedback and Questions / Where did IRC go?
« on: December 03, 2010, 12:23:19 am »
I'm browsing on a laptop right now, and IRC/chat appears to have disappeared.  Is it just for me, or is weirdness going on?

32
Axe / Importing picture variables?
« on: November 29, 2010, 08:00:02 pm »
Hello - from an Axe program, how would I be able to pick an arbitrary picture variable (which is editable by the average user via either the pen command or through manipulating the graphscreen), then copy the contents of the picture to the buffer (or back-buffer, or other such place)?  Also, how would I be able to do the reverse (i.e. to copy the contents of an arbitrary buffer to a picture variable)?

I would also like to know the method for importing a picture variable once at compilation (for elaborate title screens and such).

Also, what is the most commonly used and accepted acronym or abbreviation for 'picture variable'?

33
TI Z80 / Conway's Game of Life
« on: November 27, 2010, 02:32:33 pm »
A version of Conway's game of life for the calc.

Controls:
[Y=] for edit mode - you can toggle squares here.
[2ND] toggles squares.
Hold [ALPHA] when moving the cursor to slow it down (this allows for precision placement)

[TRACE] to enter 'Step' Mode - here, click [2ND] to proceed to the next generation.
[GRAPH] starts 'Auto' Mode - here, the screen refreshes as soon as it can.

At all times, you can HOLD [ + ] or [ - ] to zoom in or out.
Press [CLEAR] to return to the menu, then to quit.

In Step or Auto mode, it's a good idea to try holding all buttons, they're kind of slow to react.

General notes:
The larger the area your squares are taking up, the slower it'll run.
Also, if a square is toggled next to the edge, weird things could happen, so don't do that.
This hasn't been thoroughly bug-tested, and the controls aren't working smoothly yet, but I'll be working on it.

34
Site Feedback and Questions / 'Forum' button at bottom of posts
« on: November 24, 2010, 10:12:51 am »
At the top of each post is sort of a breadcrumb trail that links back to Omnimaga, the forums, and any subforums.
It would be nice if this breadcrumb trail could be placed at the bottom of every page of posts.
That way, when I finish reading a post, I could jump immediately back to the forum without having to either scroll up and click, or click back then refresh.
'Cause clicking the back button doesn't refresh the page for me (well, I don't think it's supposed to, but still...)

35
Axe / Questions: DiagnosticOff and Goto
« on: November 24, 2010, 12:17:16 am »
In Axe, what precisely does DiagnosticOff and DiagnosticOn do?  The documentation states that it turns off the run indicator, plus prevents 'Done' from displaying, but the run indicator is never on normally (I think).  The User's Guide states that it leaves your code cleaner: in what way?

In Axe, are there any penalties for using Goto?  If I did this:

Code: (Example One) [Select]
For(X,0,9)
    Lbl EX1
End
Goto EX1
What would that do?

What about this?
Code: (Example Two) [Select]
Lbl EX2
Repeat...
    While...
        If...
            Goto EX2
        End
    End
End

And this?
Code: (Example 3) [Select]
Goto EX3
Repeat...
    While...
        If...
            Lbl EX3
        End
    End
End

36
Computer Programming / Quick guide to Java?
« on: November 21, 2010, 12:24:28 am »
Salutations!

I recently joined a robotics club at school, and joined the programming team.  However, as it turns out, the robot will NOT be programmed with either Axe or TI-Basic (blasphemy!) and will be programmed in Java instead.

So my questions to anybody who knows Java is:
0] Can anybody suggest a good guide/resource?
1] What are some common 'gotchas' that might trip me up, especially given that I'm used to coding calculators?
2] What exactly is a class?  And what does private/public/static/etc... mean?

37
General Calculator Help / Things I just did to my calculator.
« on: November 15, 2010, 08:48:59 pm »
Mkay, I decided that I wanted to upgrade the functionality of my calc, so I added a bunch of apps.
Because some of these apps mess with the calculator, I want to make sure that I'm not accidentally about to kill my calc or conflict with each other.
I have a TI-84+SE with OS 2.53
and the apps I'm worried about are

Calcsys
CtlgHelp
DoorsCS7 (the latest one)
Graph3
Krolypto
MirageOS
Omnicalc
Symbolic
Unit Ops
zStart

Erm... these aren't going to kill my calc, are they, or ruin compatibility?  That would suck pretty badly.

That being said, any other interesting apps/programs I should have on my calc?

38
Axe / Working with Large Numbers?
« on: November 15, 2010, 12:27:37 am »
Hello: I'm working on a project that involves manipulating numbers larger then 65535, and Axe obviously doesn't have built-in support for that.
However, I do know that programs like Cabamap can push around absurdly large numbers - how can I manually do that in Axe?
For example, how could I write a routine that could handle something like 365940/367153?
Is it possible to set up some free ram in such a way that I could use (for example) four bytes to get numbers up to 256^4-1 (4294967295)?

39
Axe / Music using Freq(
« on: November 01, 2010, 11:05:07 pm »
Hello: Which frequencies using the Freq( command correspond to which notes?
Like which frequency would give a middle C, or what would give an A sharp, etc...

Also, for time, how much equals a second, and how much equals half a second, etc...

Also, is it possible to play chords and hold notes longer then what I get when I input 65535 for time?


40
TI Z80 / Minigames
« on: October 29, 2010, 06:39:53 pm »
I was extremely bored in chemistry class + I was procrastinating on my other projects + I wanted practice coding =
A random game!

You are the little ship thing, and you have to dodge the blocks.
Press [2ND] to temporarily turn invisible.  Turning invisible drains the bar at the top, so conservation is emphasized.
I added difficulty, so it starts off a bit slow, but eventually grows hectic (and you encounter more obstacles, like bouncing smiley faces).
Press [MODE] to pause and unpause.

Interesting fact: this was originally intended to be a tunnel clone, but it didn't look good and I went a little overboard on the projectiles, so I mutated the game just a little more.

I think I'll try to make a new minigame every week or so, because I think I should really try to practice coding more.

41
General Calculator Help / Non-validating OS - why?
« on: October 28, 2010, 01:54:37 pm »
Today, at school, I wanted to see what would happen if I tried to transfer an OS from one calculator to another, so I tried sending OS 2.53MP to my friend's calculator (he had the standard OS 2.43).
I managed to send the entire OS over, but it wouldn't validate and I ended deleting my friend's OS altogether. 
I tried again two more times unsuccessfully, and resorted to sending OS 2.43 from a third person's calculator (which worked first try, and interestingly, everything in archive was intact!).

So my question is, why didn't my OS validate/work?
Is it possible that my monkeying around with Axe (especially when I make mistakes and write data to oddball places) might have somehow corrupted my OS?  Or is 2.53MP just non-cooperative in general?

42
Axe / How to tilemap?
« on: October 19, 2010, 06:44:56 pm »
Mkay, I apologize in advance, because this question has been probably asked so many times already, but how exactly do you make a tilemap in Axe?  
What different methods are there, and what types of compression are commonly employed?

I'm pretty sure there's lots of threads with similar questions floating around, so links are fine.

43
TI Z80 / Light
« on: October 17, 2010, 10:40:42 pm »
So I was thinking of making a new game, based around a single gameplay mechanic: light and shadows.
I was planning on making a rogue-like game (where you descend endlessly down a randomly generated dungeon, finding treasures, killing monsters, and avoiding traps and whatnot).
I decided that it would be cool to add light and shadow to the game, so that it's like you're in a DARK dungeon, emanating light (and it's scary - what could be lurking around the next corner?)

Sadly, it's extremely slow - this is an Axe assembly program going at full speed on an TI-84+SE, and moving the circle feels like pulling teeth.

Any optimization suggestions, please?
(I'm using a variant of Bresenham's line algorithm, for those interested)

Also: how fast does pxl-Test work?  And the line( command?

Code: [Select]
.LIGHT
Full
DiagnosticOff
Fix 5
Fix 9
Fix 0
ClrDraw
ClrDraw[radians]

[FFFFFFFFFFFFFFFF]->PIC1
[3844828282443800]->PIC2
45->A->B
0->C
sub(MAP)
Pt-On(A-3,B-3,PIC2)
DispGraph
::While 1
If getKey(15)
Goto END
End
getKey(1)-getKey(4)->E
getKey(3)-getKey(2)->D

If D or E
ClrDraw
A+D->A
B+E->B
sub(MAP)
For(C,0,64)
sub(LIN,A,B,96,C)
sub(LIN,A,B,0,C)
End
For(C,1,95)
sub(LIN,A,B,C,64)
sub(LIN,A,B,C,0)
End
Pt-On(A-3,B-3,PIC2)
0->C
DispGraph
:End

::End

Label MAP
For(F,0,7)
For(G,0,1)
Pt-On(G*16,F*8,PIC1)
Pt-On(G*16+72,F*8,PIC1)
End
Pt-On(F*8+16,0,PIC1)
Pt-On(F*8+16,56,PIC1)
End
Pt-Change(16,24,PIC1)
Pt-Change(72,32,PIC1)
For(F,0,1)
For(G,0,1)
Pt-On(F*24+32,G*24+16,PIC1
End
End
Return



Label LIN
If abs(R4-R2)>abs(R3-R1)->U
expr([degrees]R1,[degrees]R2,2)
expr([degrees]R3,[degrees]R4,2)
End
R1>R3->K
abs(R3-R1)->S/2->V
abs(R4-R2)->T
R2<R4*2-1->W
R2->Y
For(Z,R1,abs(R3-R1)+R1)
If K
2*R1-Z->X
Else
Z->X
End
getKey(15)*9+W->W
ReturnIf getKey(15)
If U
If pxl-Test(Y,X)
Line(Y,X,R4,R3)
Return
End
Else
If pxl-Test(X,Y)
Line(X,Y,R3,R4)
Return
End
End

V-T->V
If V>99
Y+W->Y
V+S->V
End
End
Return

Label END
Fix 4

44
Axe / Drawing lines
« on: October 12, 2010, 01:48:31 pm »
Hi - quickly, could somebody explain how Axe draws lines (as in, how it chooses which pixels to turn on)?

Is there a formula of some kind, and how would the routine-thingy handle turning on multiple dots in the same column or row?

45
Site Feedback and Questions / Question marking a post?
« on: October 05, 2010, 06:11:50 pm »
I just had a random idea - you know how posts have a thumbs up or a thumbs down?
What if there was a button that lets you 'question mark' a post?  That way, people can see which posts are confusing or need clarification.
Maybe it would be almost like the thumbs down button, except less extreme?

Just a random thought.

Pages: 1 2 [3] 4