Search results

  1. C

    Divx Low Volume Problem? Pls Help

    I got some Sony MDR NC6 Noise Cancelling headphones which were like $35 and work really well. I also often have to reencode the audio tracks on my movies to boost the volume. C
  2. C

    What Country Are You From?

    As the Sting song goes, I'm an Englishman in New York. And yes I am a legal alien.
  3. C

    Pocketsnes Sound Problem

    Yeah I've started a two tier save, I like to use only one save; it stops backtracking time wasting, fun sapping battle optimization but now I have save 1 as the most recent save and save 2 as the start of section save. That way I have less chance to overwrite both saves. C
  4. C

    Pocketsnes Sound Problem

    If is happens again I will try that, sadly in a feat in incredible malcoodination I managed to save rather than load that particular slot when I first loaded the rom yesterday afternoon. So I'm starting again and I'm not going to touch the sound settings and just overclock if I need to (I was...
  5. C

    Pocketsnes Sound Problem

    I was playing Chrono Trigger and I got the the stage where it goes all mode7 for the robot race so I thought I'd turn the sound off (along with disabling transparency and overclocking to 250). When I finished the race (I won) I tried to turn the sound back on (along with transparency and...
  6. C

    Could Somebody Reccomend Me A Book?

    If you already know a programming language then I suggest you throw yourself in at the deep end and try to create something. Use a reference and an online tutorial and get going. Get to know you chosen development environment. I commend your ability to read code (I could do that more) but you...
  7. C

    Could Somebody Reccomend Me A Book?

    Agreed, it's a reference not a tutorial. You could get it in addition to a tutorial but I usually use an online reference e.g. with a tutorial book. This one is supposed to be good but I haven't read it so I can't really recommend it as such. atomicthumbs: what's you general programming level...
  8. C

    Sprite Movement Angle Or Move To Specific Pixel

    leaving out the +90000 and swapping sin with cos gives: CODE 270° 180° + 0° 90° Yep you're quite right, it's a direction change (from the sine/cos swap) and a rotation of 90° from north (+ 90000). There is a standard: the compass: 0° is north and clockwise from there 90° is east...
  9. C

    Sprite Movement Angle Or Move To Specific Pixel

    They add the distance to x and y for the specified angle... Is this overly complicated? Any way to optimize these functions? Using the 90000 constant (which I assume really means 90 degrees) you have swapped the meaning of sin and cos so you can get rid of the 900000s and just swap them back. I...
  10. C

    Sprite Movement Angle Or Move To Specific Pixel

    Agreed, it's ok to use for playing with/prototyping but for serious stuff you need to use pre-computed tables of sin and/or cos values otherwise it just won't be fast enough on the gp2x. Why?
  11. C

    Sprite Movement Angle Or Move To Specific Pixel

    This is why you should keep a floating/fixed point representation of the coordinates internally and round before plotting the sprite. You could re-calculate the vector every iteration but that would be more expensive (I would think) charlieb
  12. C

    Sprite Movement Angle Or Move To Specific Pixel

    Oh ok well that is really just basic trig: CODE x = speed * cos(angle); y = speed * sin(angle); Right guys?
  13. C

    Sprite Movement Angle Or Move To Specific Pixel

    So you mean somehting like this? CODE velocity = calc_velocity(); sprite.x += velocity.x; sprite.y += velocity.y; draw(sprite);
  14. C

    Sprite Movement Angle Or Move To Specific Pixel

    Ok so what you're talking about is actually polar vs cartesian. A polar coordinate is a speed (scalar) and an angle (direction) and a cartesian is a vector with X and Y magnitudes that points at the target. To actually plot the sprite on a cartesian grid you will need to use a cartesian vector...
  15. C

    Wire3d Datafile Documentation

    I've created some basic documentation for creating sprites, levels and campaigns. If anyone would like to create sprites or levels or even a campaign or two they would be very well recieved. If you have any feedback about the documentation or need help /msg me and I will be only to happy to...
  16. C

    Problem With Sdl_gfx

    Here's the Makefile I use to compile my SDL_gfx programs. Pay special attention to the GPLDFLAGS variable and how it uses -static and also `$(GP2XDEV)/bin/sdl-config --static-libs`. This Makefile has served me very well. If you don't know make then the line to compile a single file as a result...
  17. C

    GP2X Sdl_gfx Performance Testing

    Ok so I got some time to test these ideas. The graph below speaks for itself, sw_db_out is a double buffered software surface, sw_nodb_out is a single buffered software surface and hw_no_db is a single buffered hardware surface and hw_db_out is the original double buffered hardware surface. The...
  18. C

    Question On Malloc And Free.

    Valgrind is also an excellent memory checker tool that doesn't require and re-compilation. It runs on Linux on the PC but a memory leak is the same on any platform.
  19. C

    Question On Malloc And Free.

    <hair split>Actually implementations are required to not crash when freeing a NULL, (free(0x0) not to be confused with a pointer to nowhere) but they are allowed to report the error and terminate (which actually might as well be a crash).</hair split> Sorry, I was reading the C standard for...
Back
Top