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
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
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...
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...
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...
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...
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...
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...
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?
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
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...
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...
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...
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...
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.
<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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.