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 - Emerov
Pages: [1]
1
« on: June 06, 2012, 04:53:44 pm »
@Hayleia and MGOS: First off, I wasn't using the mod operator, but the superscript tags didn't seem to work within code tags. Also, the order of operations thing did mess up my code, but I had to scrap this line because of potential overflow. @Squidgetx: To prevent overflow, I went ahead and used trig to find the magnitude of the vector (I do need the magnitude, because normalizing the vector to scale it should be a bit more precise than using a ratio to estimate the new component values individually). So now the problem with the magnitude changing when the ball bounces is fixed, but the ball still moves in directions seemingly unrelated to the assigned angle of motion. I think it has to do with the lines where I scale the components (M-F*W//M->W), because when I comment them out, the code works perfectly except, of course, the ball doesn't stop. I just cannot figure out what I'm doing wrong. Any more suggestions?
2
« on: June 04, 2012, 09:40:29 pm »
OK, so I have a golf-ish game where there is a ball that moves around the screen with separate x and y velocities which vary based on an angle chosen before the ball is hit. This all works perfectly fine, the ball bounces off the walls, etc. But when I try to apply friction to the ball's movement, I encounter some issues. The process I am using to scale down my velocity vector while maintaining the same angle of motion is as follows: 1. Find the magnitude of the vector 2. Normalize the vector 3. Decrease the value of the magnitude by a friction constant 4. Multiply x and y velocity components by the new magnitude My code looks like this: .PUTTPUTT P*16**cos(θ)->V //P represents power, used to determine how fast the ball will move P*16**sin(θ)->W //V is the X-velocity; W is the Y-velocity Repeat getKey(15) Pt-On(X+V->X/256, Y+W->Y/256, Pic0) //X and Y are the position components 127*W//sin(tan-1(V,W))->M //M is the magnitude of the velocity vector M-F*W//M->W //F is the friction constant. I multiply the new magnitude by each component before dividing by the current magnitude M-F*V//M->V //because W//M would give a value of 0 If X/256>90 -V->V End If Y/256>59 -W->W End DispGraphClrDraw End Depending on P and θ, the code may or may not work, and I can't figure out why; the ball does seemingly random stuff, often not even going in the right direction. Also, I don't know if this is relevant, but when I debugged the magnitude, it changed whenever the ball bounced off the left or right of the screen, which I don't think should be happening. Can anybody help me fix this?
3
« on: April 21, 2012, 08:30:37 pm »
Oh, I just added E41 and it worked fine. Is the 'A' thing better to use or does it just convert it during parsing?
4
« on: April 21, 2012, 06:41:59 pm »
Awesome, it works and makes sense now!
5
« on: April 21, 2012, 05:38:52 pm »
*Bump* Can somebody help me out with this?
6
« on: April 20, 2012, 03:07:40 am »
I'm attempting to access arbitrary OS vars from the calculator, and subsequently delete them. The code works with programs, groups, appvars, and letters, but whenever I try to access the vars represented by tokens, it does not work properly. Basically, I copy the randomly selected var name over into another string so that I can delete it, but the string doesn't seem to recognize the tokens following the first one. Here is my code (simplified):
.DELSUB2 Fix 5 "var "->Str3 "ABCDEFGHIJKLMNOPQRSTUVWXYZØ"->Str5 "L1L2L3L4L5L6"->Str6 " "->Str8 sub(LSD) Return
Lbl LSD //This will only ever delete L1. If the randomly selected number is not 0, then nothing will happen Copy(rand^6*2+Str6,Str8,2) DelVar Str8 Return
Lbl ABC //This works Copy(rand^27+Str5,Str3+1,1) DelVar Str3 Is there a way to get around this lack of string support for tokens? Like, can these variables be accessed via hex code or something? Thank you!
7
« on: March 21, 2012, 02:06:41 am »
noelthebest, due to some disorganization on my part, I just realized that I sent in the wrong version of my snake game for judging. The version is a much earlier one, so its rather buggy and not at all playable. Also, I don't think it's completely stable, so if and when you decide to judge it, you might want to back up the other games... Just thought I'd warn you. * Emerov impersonates certain masochistic emoticons
8
« on: March 21, 2012, 01:20:23 am »
When your teacher gets mad and threatens to take your calc because you always give everybody in the class games, so you say they're all educational and math-oriented, and ask if she wants them for her calc. She accepts, and you speedily use the very unstable Axe 1.0.1 to make a nasty virus with a math-ish name, and crash her calc and she gets really mad... True story
9
« on: March 10, 2012, 07:15:52 pm »
I just signed up! Hopefully I can find some time to make something decent.
@noelthebest: Do the project ideas have to be completely new for Part 3 of the competition?
Basically, I thought about making a game in Axe a little while back, and got all the sprites and map data figured out, but never got much farther than that. If I were work on this project, would it be a legitimate submission?
10
« on: February 27, 2012, 07:46:42 pm »
I linked my TI84 Plus and a TI84 Plus SE together and it works perfectly. The synchronization was almost instantaneous and the game played just fine. It was quite enjoyable. If I could figure out how to take multiple calc screenshots, I'd post them... But great job on the game!
11
« on: February 21, 2012, 01:48:56 am »
No, I don't think they ran out. I just got an email today from their new sales rep in AZ saying that he can show me how to get a free PRIZM calculator by going through the training program on their site. I wanted to introduce myself as the new Casio sales rep for Arizona. Casio has recently released the new PRIZM graphing calculator that has features not found on the competition. These include Casio’s Color Link technology with 82,000 pixels, the Modify feature, Picture Plot and Dyna Graph. I would love to have the opportunity to show you the PRIZM. Just let me know and I will stop by. I can also show you to get a FREE PRIZM color graphing calculator by completing the online course at casioeducation.com. I look forward to hearing from you.
Tim Trapp Marketing Development Manager Western Region Casio Education 602-418-0397 mailto:[email protected] So they probably still have them. Good news for all of us who are a little behind! (I sent in my 3rd assessment today)
12
« on: February 04, 2012, 11:30:23 pm »
Wow! Thanks so much. I am "buying" them right now.
Pages: [1]
|