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

Pages: 1 ... 41 42 [43] 44 45 ... 70
631
TI Z80 / Re: [Project] Ahead
« on: December 22, 2010, 05:14:06 pm »
@Yunhua98: Yeah, I forgot about that, although in the current setup, it doesn't actually matter much because the floor is just completely flat.  But you would need that for any uneven floors.

632
TI Z80 / Re: [Project] Ahead
« on: December 22, 2010, 05:07:37 pm »
Ah, wait.  For the code I posted, I forgot to add a 'ClrDraw'.
Immediately after the 'DispGraph', add a 'ClrDraw', and it should work better.
I've edited the code I posted to match. (I also changed the collision detection part slightly to match yunhua98's advice)

633
TI Z80 / Re: [Project] Ahead
« on: December 22, 2010, 02:18:42 pm »
Yeah, collision detection can be a major PITA at times.

In the project I'm working on right now, I'm trying a method where each time I make an object move (they're sort of like bullets), I see if their x and y coordinates are within a certain range of my character.  I'm not too sure if that might work for tiles, though.

634
TI Z80 / Re: Axe game : Avoid
« on: December 22, 2010, 02:13:33 pm »
I moved this thread.  Being a mod is fun! :)

I like the game, especially (as everybody is saying) the integrated menu.
You even added multiplayer!
I also liked the way you ramped up the difficulty over time by moving the ball to the right side.  In theory, could a player survive so that their ball is completely to the right?  If so, what happens?

635
News / Re: DJ Omnimaga resigns from Omnimaga manager
« on: December 22, 2010, 01:55:04 pm »
Aw, I'm sorry that you got stressed out, DJ.
I think you definitely deserve a vacation.

636
TI Z80 / Re: [Project] Ahead
« on: December 22, 2010, 01:53:52 pm »
Also, because I needed a break from what I was doing, I simplified parts of your code:
Code: [Select]
.PLATFORM
Fix 5

[3810385410282828]->Pic0
[FFFFFFFFFFFFFFFF]->Pic1
0->X
40->Y

ClrDraw

.Main game loop
While 1

  .Moving right
  If getKey(3)
    X+2->X
  End

  .Jumping
  If Y>0 and getKey(4)
    Y-5->Y
  End

  .Create floor
  For(A,0,12)
    Pt-On(A*8,48,Pic1)
  End

  .Collision test (ground) and Gravity
  !If pxl-Test(X,Y+8)
    !If pxl-Test(X+7,Y+8)
      Y+1->Y
    End
  End

  .Display sprite
  Pt-On(X,Y,Pic0)

  .Display the screen
  DispGraph
  ClrDraw

  .Close Game
  If getKey(15)
    Fix 4
    Return
  End

End

Not sure why you were using StorePic and RecallPic, but I think those were the cause of your problems.

637
TI Z80 / Re: [Project] Ahead
« on: December 22, 2010, 01:17:16 pm »
First, I highly recommend that you add ending parenthesis.
Doing
Code: (Bad Example) [Select]
For(A,0,100
  If A=(rand^100
    Pt-On(10,10,Pic1
  End
End
is no different (and is equally optimized) compared to
Code: (Good Example) [Select]
For(A,0,100)
  If A=(rand^100)
    Pt-On(10,10,Pic1)
  End
End
Also, not adding parenthesis can do very odd things to your code, and because they don't give you a speed increase like it does in Basic, you should probably just add them.

638
The Axe Parser Project / Re: Axe Parser
« on: December 21, 2010, 03:24:25 pm »
Sweet, thanks!

639
Axe / Re: How to program in Axe?
« on: December 21, 2010, 03:17:40 pm »
Basically, if you're going to code Axe on your calc, backup and archive EVERYTHING, then try not to write data to random parts of RAM.  If you do that, you should be mostly fine.  The occasional (or in some cases, frequent) RAM crashes will then be mostly harmless.
It depends. I heard people got crashes during backing up or corrupted backup files before, and even crashes causing them to lose archived stuff, too. The most reliable way to prevent data loss is to keep a copy in the archive AND the computer. Then your hard drive may fail right at the same time your calc crashes. In this case, it's also good to have the game backed up on a file hosting somewhere too and a jumpdrive. Then someone may steal your jumpdrive and the server datacenter in Los Angeles may be hit by an earthquake while your comp crashes at the same time as well as your calc. In other words there are no 100% reliable ways to backup but the later is more reliable/safe. :P

Well, yeah.  You can never be 100% secure.  But...
I made this incredibly scientific chart!  (Disclaimer: data based on numbers I just made up *cough cough*)


I have a feeling that RAM clears will cause the most amount of damage to an unprotected calculator.

640
The Axe Parser Project / Re: Axe Parser
« on: December 21, 2010, 03:02:34 pm »
Quick question: Which is faster:
Code: (Example 1) [Select]
For(C,0,10)
  Code...
  If A
    If B
      Do something...
    End
  End
End

versus

Code: (Example 2) [Select]
For(C,0,10)
  Code...
  If A and B
    Do something...
  End
End

(If it helps, in both examples, the chances of A or B being true are about 1 in 6, but the chances of both of them being true at the same time are about 1 in 36 (well, approximately - probability isn't my strongest point))

641
Axe / Re: How to program in Axe?
« on: December 20, 2010, 02:33:09 pm »
Basically, if you're going to code Axe on your calc, backup and archive EVERYTHING, then try not to write data to random parts of RAM.  If you do that, you should be mostly fine.  The occasional (or in some cases, frequent) RAM crashes will then be mostly harmless.

642
Axe / Re: Routines
« on: December 20, 2010, 12:59:22 am »
A rhetorical response to a rhetorial question... I would like to announce 'FTW', but I can't come up with a way to word it...
Hmm...

It would be even cooler if you could mix and match the sizes, especially for addition and subtraction, allowing me to do things like add a 3 byte number to a 5 byte number...  And for completeness, something that could take an X byte number and truncate/pad it to a Y byte size number...

I'm not really sure how decimals would work with all that, though.

643
Axe / Re: r'ed stuff
« on: December 20, 2010, 12:49:49 am »
Well, since this August, I've been running TONS of asm stuff (both downloaded and stuff I made with Axe), and the only RAM clears I got were just due to bugs in my programs.  I was testing some stuff earlier, so the first crash (well, not really a crash - both times it froze and I had to yank a battery) could be just me, but I got a second crash after the RAM clear after doing the same thing...

Another possible explanation: I had zStart, Omnicalc, and DoorsCS hooks/stuff running in the background - possibly that might have mucked up my calc a little.

644
Miscellaneous / Re: So who's gonna be around during holidays?
« on: December 20, 2010, 12:41:01 am »
Secret project?

<_<
>_>

*Whistles*

645
Axe / Re: r'ed stuff
« on: December 20, 2010, 12:35:52 am »
It appears so. Some people seem to have fallen in love with some of the new math functions and some even worship 2.53 MP despite all the problems and slowness it comes with.

*Sigh...*
This used to be me...  I adored the mathprint features because they were (are? verb confusion :() incredibly helpful, but after I got TWO CRASHES in math class this Friday after doing a bunch of simple logarithms, I'm starting to reconsider downgrading...

Pages: 1 ... 41 42 [43] 44 45 ... 70