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

Pages: 1 ... 6 7 [8]
106
TI-BASIC / Decimal Binary conversion
« on: November 10, 2010, 05:50:45 pm »
Does anyone know of an efficient way to convert decimal numbers and store each digit of the output to a separate place?

I'm aware of Weregoose's

Code: [Select]
int(round(BfPart(NB^seq(I,I,‾int(ln(N)/ln(B))-1,‾1

However, typing it into the homescreen returns an Err:Argument.

107
Miscellaneous / What is your code like?
« on: November 07, 2010, 10:04:04 pm »
My code is like a rusted old boat:

It'll use outdated parts, have half a dozen leaks you won't find for three months, and make you cringe every time you look at it. But, it'll function and if you work with it, it will outlast those newfangled speed boats.

108
Other Calc-Related Projects and Ideas / Battlefield
« on: November 07, 2010, 02:51:56 pm »
Since the Team competition is fully underway, Yunhua and I have decided to announce our project:

Battle will be a turn based Strategy game where the player will compete against an AI for control of a virtual galaxy. The battles will be fought across many different planets and in many different environments. Be prepared to fight on the battlefields of tomorrow.

109
Other / Uses for a computer
« on: October 17, 2010, 09:01:10 pm »
I recently came into possession of an old computer that I'll be using to run a system I'm building as a project for a class. But, I could code thing on my calculator and computer has almost ten times the speed (never mind the memory). I need something that's simultaneously useless and fascinating to waste CPU time with. I'd prefer something simple and powerful like WFRNG. It's too bad my professor wouldn't fully comprehend WFRNG. Any [other] suggestions would be helpful.

110
ASM / SPASM
« on: October 15, 2010, 04:09:38 pm »
I was trying to get SPASM to run on my computer yesterday and I couldn't figure out how to get .8xp files from it. All I can get are .bin files. Do you have to use the command prompt to run SPASM in Windows?

111
Casio PRIZM / Casio-BASIC
« on: October 12, 2010, 10:42:24 pm »
Here's the first part of my tutorial on Casio-BASIC for TI programmers. It deals with the text and I/O commands.

112
Art / TI-Explorer
« on: October 07, 2010, 09:30:26 pm »
Let me know what you would want to see :)

EDIT: It might not have been clear above, but I have a lot of blank space on the main menu and I can't decide how to fill it.

113
Axe / RAM addresses
« on: October 04, 2010, 03:47:21 pm »
Hey, does anyone know how to display Hex RAM addresses in Axe? I tried

:{8000}-->A
:Text E°A

But it gave me a random character, not 8000h as I need.

114
TI Z80 / Builder
« on: October 02, 2010, 12:51:56 am »
Here's the beta release of Builder! I know everyone has been extraordinarily eager to get advance copies even though I haven't really announced that it even exists before now ;) Run it with the Asm( tag from the home screen.

Note: I'm just looking for feedback. Builder was not designed to be a full fledged game, hence the bad graphics and and gameplay. It's a test bed for routines I'm planning on using in a couple of other projects that ARE being designed for interesting gameplay. So, any optimizations anyone would recommend for the overly commented source would be much appreciated. At one point I actually had the game under 2kb, but the scoring system put it to where it is now.

EDIT: How do you insert screenshots into posts?

115
Axe / Tilemapping
« on: September 26, 2010, 04:47:43 pm »
I'm trying to start a new project and I was looking through Eeems' tutorial on program flow*. I understand the RLE part, but running the code verbatim in my calc doesn't appear to work. Here's the code I have programmed:

Quote
ClrDraw
DiagnosticsOff
[0515]->GDB1
[FFFFFFFFFFFFFFFF0000000000000000]->Pic1

0->N
0->I

While I>=96
{GBD+N}->A
N+1->N
A^16->B
A/16->A

For(F,0,B)
A->{L1+I}
I+1->I
End

End

For(X,0,11)
For(Y,0,7)
{Y*12+X+L1}->A
Pt-On(X*8,Y*8,A*8+Pic1)
End
End
Dispgraph
While getkey?9
End

If I understand the routine correctly, it should display a series of sprite columns. As it is, the whole screen is covered in the black sprites without any gaps for the blank sprites. Does anyone have an idea of what might be wrong with it?


*http://ourl.ca/4317

116
Axe / hexadecimal conversion
« on: August 17, 2010, 11:47:11 pm »
I'm currently working on rewriting Quigibo's HEXPIC sprite editor to work in Axe. The whole thing simplifies a lot due to the added graphics features of Axe over TI-BASIC. However, as far as I can tell, Axe has next to no string support.

The program should work as follows:

  • The user first draws a picture on an 8x8 grid using what are essentially magnified pixels.
  • After the picture is drawn, the program goes through each of the grid cells and determines whether they are on(1) or off(0).
  • This series of binary strings is then converted into a series of hexadecimal numbers, using the first and second four number string of each row. For example, given the first row 0 0 0 1 1 1 1 1, the program should output the hex string 1F
  • This list is then stored to the Ans variable for later recall by the user

The problem is that I can't figure out how to store anything to the strings. In BASIC, all you would do is
Code: [Select]
"0"->Str1
For(A,0,7
1->X
Y+offset->Y
For(B,0,7
X+offset->X
If pxl-Test(X,Y:Then
"1"+Str1->Str1
Else
"0"+Str1->Str1
End
End
End
sub(Str1,2,length(Str1->Str1

Then you simply convert Str1 to Hex, which is also easy in BASIC.

But would anyone know how you might implement something similar in Axe?

117
The Axe Parser Project / Axe Compiler troubles
« on: August 15, 2010, 03:42:45 am »
I'm extremely new to Axe, so this is probably just User error, but for me, Axe doesn't appear to want to compile programs. I copied an extremely simple sprite control from the documentation PDF to get a feel for how the language worked without accidentally destroying my RAM. When I tried to compile it in Axe 0.4.3, it gave me a File name error. Looking at the list of errors, supposedly I designated the compiled program as the source. However, I was never given the opportunity to designate any program names for the compiled code.

And just for reference, here's the code:

Code: [Select]
:.Steel A Parser
:[3C7EDBFFBDDB663C]→Pic1
:For(A,0,19)
:rand^88→{A+L1}
:rand^54→{A+L2}
:End
:For(A,0,19)
:Pt-On({A+L1},{A+L2},Pic1)
:End
:DispGraph

In all likelihood, any help will be a "duh" moment. But thanks.

Ps: I did search the forum for similar topics, but I didn't see any.

Pages: 1 ... 6 7 [8]