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

Pages: 1 ... 3 4 [5] 6 7 ... 82
61
Computer Projects and Ideas / Re: Juggernaut
« on: March 01, 2011, 07:39:58 pm »
juggernaut is pretty much finished. i was going to submit it for the contest but my computer science teacher thought the deadline was a month away and didn't mail the entry form (you needed a teacher to enter the contest to ensure that you wrote all the code of the entry). after that i lost motivation on the project, though it's relatively playable it has a few physics bugs, a couple problems loading levels and menu issues, which would need a complete overhaul because the code really isn't written very well. i've learned a lot about JFrame's and how they work and how to use them, so i'm making another 2D platformer similar to juggernaut but with more advanced game features, like several types of enemies, bullets, moving platforms, swinging axes, fireballs etc.

unfortunately, i'm not pursuing calc stuff much. i still make little utilities for my math class but i'm not coding any games right now.

62
Humour and Jokes / Re: Google Translate Easter Egg
« on: February 26, 2011, 07:37:36 pm »
wtf...
i know รค = e in german. i don't get how 15 e's does this though..

63
Math and Science / Re: Math mind read
« on: February 26, 2011, 07:33:49 pm »
holy shit, i'm a little scared now.

64
Axe / Re: RLE compression
« on: February 26, 2011, 03:36:59 pm »
.ROUTINE
mapdata->GDB1

"0123456789ABCDEF"->Str1
"Str1"->Str2
0->C->D
For(G,0,23)    .23 is the size of the map minus one.
If {GDB1+G}->A={GDB1+G+1} and (C!=14)  . "!=" is the does not equal sign
C+1->C
Else
{Str1+C+1}->{L1+D}
{Str1+A}->{L1+D+1}
D+2->D
0->C
End
End
GetCalc(Str2,C)->M
Copy(L1,M,C)
Return

But when there's more than 16 of any character it screws up. I think this could be solved, for instance, if there were 20 zeros just make it F040 or something.

that's because this compresses into a tilemap where the first nibble is the length of the run, and the second nibble is the tile number. it shouldn't mess up for a run of length 16+. it should mess up if you have more than 16 tiles, yes.
here's a modified routine [untested] which will RLE compress map data when you have < 256 tiles and the length of the runs are < 256.
Code: [Select]
.COMPRESSION
mapdata->GDB1
"0123456789ABCDEF"->Str1
0->C->D
For(I,0,XX) .XX is the size of the uncompressed map minus 1.
If {GDB1+I}->A={GDB1+I+1} and I != XX
C+1->C
Else
Copy(C>Hex,L1+D,2)
Copy(A>Hex,L1+2+D,2)
D+4->D
0->C
End
End
GetCalc("Str1",D)->A
Copy(L1,A,D)

excuse me if it's inefficient, i haven't coded in axe in awhile.

65
Computer Programming / Re: Java Swing Doubt
« on: February 26, 2011, 01:55:50 pm »
in this situation the code would be
Code: [Select]
loadingBarFrame.getContentPane().add(progressBar);

however, because the java swing designers realized having to call getContentPane() everytime you want to add a component to a frame, they made it so loadingBarFrame.add(progressBar); will automatically add progressBar to the content pane. learning to use a layout like SpringLayout is the best solution.

66
Miscellaneous / Re: Computer Specs
« on: February 16, 2011, 06:59:10 am »
inferior:

Windows XP Home - 32 bit
Intel core at 1.86Ghz
504MB RAM
Graphics: Radeon 5570
40GB HDD but 10TB external.


67
Axe / Re: RLE compression
« on: February 15, 2011, 12:12:37 am »
Okay, I modified Nemo's compression routine so it works fine except for one thing - it glitches whenever there are more than 16 of any hexadecimal value in a row, at which point it reads off the hex string into char randomness.
How to fix?

the routine compresses data into two nibbles. the first is frequency, the second is the tile number. though that shouldn't be happening because my routine does check to see if you're trying to put more than 14 (why 14? i can't say, i wrote that a long time ago.) into frequency. if you can give me uncompressed and compressed data, i could better identify the bug.

68
Miscellaneous / Re: Valentine's Day
« on: February 15, 2011, 12:02:23 am »
i got a cupcake... and i gave my female friend a couple heart-shaped cookies, and asked her to be my valentine since we're both single. no sense in wallowing in it, just pick a friend and celebrate the holiday.

69
Math and Science / Re: Math Community Quiz
« on: February 12, 2011, 12:12:12 am »
regular math.

70
Math and Science / Re: Math Community Quiz
« on: February 11, 2011, 11:43:20 pm »
here's something that's been troubling me for a program i'm writing:

given two variables x and y, find an equation that will produce z. a table is given below.

Code: [Select]
  2|3|4    x
1|4 6 8
2|3 3 2
3|2 1 .
4|1 . .

y

so in your equation, when you put 3 in for x and 2 in for y, you get 3. when 2 is put in for x and 4 in for y, you get 1. etc.
do not worry about the periods in the table.

i don't know the answer, so good luck.

71
Miscellaneous / Re: Happybojr's Ban - The After Ban
« on: February 09, 2011, 09:07:54 pm »
happybobjr was banned? I mean, it looks like he posted about 25-30 times inappropriately. it's obvious he was hacked, so ban him for a day, send him an email letting him know when it took place so he knows how he got hacked. everyone who's known happybobjr for more than a few months knows he wouldn't spam on purpose. in short, the permban was an overreaction. However, i have to ask, did DJ get punished at all for saying "STOP GODDAMNIT!!" at least 50+ times consecutively? In my opinion, happybobjr should've been banned for a day and emailed about the situation. DJ should have been at least given a warning from an admin. rule 7 was broken for spam and rule 8 because a cuss word was spammed.

72
Math and Science / Re: Math Question Help!
« on: February 05, 2011, 07:05:05 pm »
correct me if i'm wrong, but i think that's all you do. the domain of f(.5x) is all reals where -1.5 <= x <= 1.5.

73
Axe / Re: RLE compression
« on: February 04, 2011, 06:11:20 pm »
actually, just kidding. my routine already keeps track of the size. variable D should contain the size.

74
Axe / Re: RLE compression
« on: February 04, 2011, 06:06:37 pm »
This one http://www.omnimaga.org/index.php?PHPSESSID=42e30a9bce8fdd375ed37eb181ff9432&topic=1532.msg50859#msg50859

you could fill a safe ram area with 0's and then rather than export to an appvar, export to the safe ram and then use length([saferam]). or you just could keep a byte counter, everytime you write to the appvar, increment the counter accordingly.

75
TI Z80 / Re: 'DE
« on: February 01, 2011, 11:37:37 pm »
hello world for me :

Code: [Select]
pub class Hello{
   pub stat void main(){
      sys.print("hello world")
   }
}
sys is a class consisting of static methods to interface with the screen. e.g. it would have methods print, paint, pxlon, pton, graph etc. there'd be a math class similarly, except maybe that could be broken up. like math.trig, math.geom, math.matr, math.gen(eral), math.stats

Pages: 1 ... 3 4 [5] 6 7 ... 82