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 - Broseph Radson

Pages: [1] 2 3 ... 21
1
TI-BASIC / Re: Optimizing lists and matrices for save files.
« on: December 12, 2011, 09:29:10 am »
More generally, you can save up to 7 values between 0 and 99 in one element (one real number) in the form 0.AABBCCDDEEFFGG, where each pair of letters is a value to save. To get the xth value in variable Y, use iPart(E2fPart(YE[2x].

So i finally got around to testing this, and i cannot for the life of me figure out how im supposed to type this into my calc. If i write it like this, it gives me a syntax error. If i write it like in that screen, it always returns 0. ???

2
TI-BASIC / Re: Optimizing lists and matrices for save files.
« on: December 07, 2011, 07:36:10 pm »
Now that is cool :o

3
TI-BASIC / Optimizing lists and matrices for save files.
« on: December 07, 2011, 10:42:38 am »
Im not sure if this has been posted before, so here goes.
Using iPart() and fPart(), you can save lists or matrices with 2 entries per cell. {1.1} rather than  {1,1}. Every 2 entries saves 9 bytes with this method.
Loading is as simple as iPart(L1(A)) for the first entry in a cell, and 10fPart(L1(A)) for the second (the 10 is there because fPart returns the decimal as a decimal.)

4
Portal X / Re: Portal X
« on: October 19, 2011, 01:51:25 pm »
The link doesn't work

see

It's released in a section of this forum that is restricted based on post count, as that's the way Builderboy wanted it done.

5
Miscellaneous / Re: how to improve my crysis 2 speeds?
« on: October 13, 2011, 03:36:45 pm »
Ive a GTX 560 TI Overclocked and it runs like butter.
I also have 8GB ram and a phenom II x6 but im thinking your gpu is the problem.

6
TI-BASIC / Re: Homescreen Invaders Bug!!! Matrix rendering system broken
« on: October 06, 2011, 04:51:41 pm »
Code: [Select]
Dim([I]
Returns the dimensions of matrix I in ans in list format so the length and width can be recalled as ans(#

7
TI-BASIC / Re: Homescreen Invaders Bug!!! Matrix rendering system broken
« on: October 03, 2011, 04:27:17 pm »
Woo I'm late to this thread. That code works like this:
the outer for increments once each time the inner for finishes, so it reads the matrix row by row. The conditionals use the values in the for loops to correspond to coordinates in the matrix, and the outputs use those coordinates to place the characters where they belong on screen in relation to the current y,x of the loops.

8
Computer Projects and Ideas / Re: My browser based game building platform
« on: October 03, 2011, 09:23:58 am »
Wow thats cool :O

9
Miscellaneous / Re: Audiosurf!
« on: September 22, 2011, 08:39:54 am »
Beautiful and fun game. Doesn't work well with dubstep, though

10
Computer Programming / Re: What am i doing wrong here?
« on: September 19, 2011, 03:38:50 pm »
Got it working!

I was using icons when i shouldve been using awt.Graphics and awt.Graphics2D

 :w00t:

11
Computer Programming / Re: What am i doing wrong here?
« on: September 16, 2011, 07:24:44 pm »
Another issue: The second one says "cannot find symbol" on setBounds, add, and setVisible. All are within a method.

12
Computer Programming / Re: What am i doing wrong here?
« on: September 16, 2011, 07:21:39 pm »
Ah, ive seen arrays defined both ways before. I guess i was reading in the wrong places  :D

I think my computer at school is just messed up as this computer doesnt give me any of those errors...
I had like 57 errors on a tiny program, on this computer it only gave me 4...

Thanks, though!


13
Computer Programming / Re: What am i doing wrong here?
« on: September 16, 2011, 07:12:09 pm »
Code: (moar java) [Select]
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

class herp extends JFrame {

JButton button1 = new JButton("Derp");
JButton button2 = new JButton("Lolwut");
button1.setBounds(5, 5, 100, 60);
button2.setBounds(5, 60, 100, 60);

public herp() {
super("Window");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
add(button1);
add(button2);
pack();
}
}

class window {
public static void main(String[] args) {
herp hai = new herp();
hai.setVisible(true);
}
}

And the arrays are in here:
Code: (arrayzz) [Select]
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

class map extends JPanel {
int mapMatrix[][] = new int[15][10];


String tiles[] = new String[2];


map() {
this.setBounds(0, 25, 960, 640);
for(int x = 0; x < 15; x++) {
for(int y = 0; y < 10; y++) {
ImageIcon tile = new ImageIcon(tiles[mapMatrix[x][y]]);
tile.setBounds(((x + 1) * 64), ((y + 1) * 64), 64, 64);
this.add(tile);
tile.setVisible(true);
this.setVisible(true);
}
}
}
}

There may be other errors but im concerned with why javac is telling me to put extra closing brackets and stuff.

EDIT: i just compiled that second one on this computer and its giving me different errors. using the same version of jdk...

Maybe im just dreaming...nothing is making any kind of sense.

14
Computer Programming / What am i doing wrong here?
« on: September 16, 2011, 06:27:05 pm »
Ive tried compiling a program on 2 different computers using this code:
Code: (java) [Select]
button1.setBounds(5, 5, 100, 60);
button2.setBounds(5, 60, 100, 60);

on one computer it says "symbol not found" on setBounds (ofc i have awt.* and swing.* included)

on the other it says "illegal start of type" on the the first arg, and "<identifier> expected" after setBounds

???

Also, when i try to define an array, it keeps telling me that i need 2 closing brackets and that i need a semicolon inside the brackets...
???

15
TI Z80 / Re: zStart - an app that runs on ram clears
« on: September 13, 2011, 08:38:36 am »
Oic wat you mean lol
It should be possible from the editor

Pages: [1] 2 3 ... 21