A Flash Developer Resource Site

# Search:

Type: Posts; User: rachil0

Page 1 of 19 1

1. ## Thread: Flash Kit 48 Hour Game Challenge #9

by rachil0
Replies
57
Views
14,982

### Poll: Don't forget me please :) I am unable to access...

I am unable to access any of your website :(
2. ## Thread: Flash Kit 48 Hour Game Challenge #9 Theme

by rachil0
Replies
21
Views
2,088

### I'll participate! Sorry for the late response but...

I'll participate! Sorry for the late response but I was unable to log into FK for some reason.
3. ## Thread: Game Challenge #7: Final Entries

by rachil0
Replies
66
Views
13,168

### Thanks for stepping up to the plate, IP :) I...

Thanks for stepping up to the plate, IP :)

I have no commercial plans for any of the crap I write, much less a 48 hour job. But maybe to appeal to flash professionals, maybe you could make it...
4. ## Thread: Game Challenge #7: Final Entries

by rachil0
Replies
66
Views
13,168

### We really ought to do this again - I enjoyed it...

We really ought to do this again - I enjoyed it thoroughly the last time around.

Been a while since I flashed anything (ew) but there's always a way to scrape together 1 weekend. Anyone willing to...
5. ## Thread: area of intersection between rotated rectangles

by rachil0
Replies
4
Views
6,654

### One solution could be to (i) use the sutherland...

One solution could be to (i) use the sutherland hodgman algorithm to clip one rectangle within the other, and then (ii) use greens theorem/the surveyors formula to compute the area. The second step...
6. ## Thread: Tricky trigonometry question

by rachil0
Replies
12
Views
10,262

### That might work, although it will have the same...

That might work, although it will have the same branch cut issue as the parametric solution. Recalling vaguely from geometry, SAS (side-angle-side) SSS and ASA all uniquely specify a triangle, but...
7. ## Thread: Tricky trigonometry question

by rachil0
Replies
12
Views
10,262

### Heh, a pack of math nerds on the prowl ;) Took...

Heh, a pack of math nerds on the prowl ;) Took 'er down like a limpy gazelle.
8. ## Thread: Tricky trigonometry question

by rachil0
Replies
12
Views
10,262

Doesn't seem like the last reply really addressed the issue - don't think the OP really knows the position where the car intersects the circle. (IE doesn't know the values of car._x, car._y).
...

by rachil0
Replies
3
Views
956

### The cross product can tell you which way is the...

The cross product can tell you which way is the shorter way to rotate:

Number decide_direction( Number start, Number finish )
{
return ( cos(start)*sin(finish) - cos(finish)*sin(start) >...
10. ## Thread: How to find points "clockwise" relative to origin?

by rachil0
Replies
7
Views
4,598

### I gave it some more thought, and I think you can...

I gave it some more thought, and I think you can avoid the winding/overflow issues by minimizing the dot product over the pairs which have positive cross product. New pseudocode:

Number...
11. ## Thread: How to find points "clockwise" relative to origin?

by rachil0
Replies
7
Views
4,598

### Edit, actually thats not right. When the best...

Edit, actually thats not right. When the best pair subtends and angle greater than 90 degrees I think it will break down. I will give it more thought.

by rachil0
Replies
6
Views
3,548

### Sorry for the late response, but I got your PM...

Sorry for the late response, but I got your PM about shadow calculation. I'm pooped right now, but I will try to get you a response soon. Just didn't want you to feel ignored! :cap:
13. ## Thread: How to find points "clockwise" relative to origin?

by rachil0
Replies
7
Views
4,598

### I think you can use the 2D cross product. Define...

I think you can use the 2D cross product. Define it for 2 vectors A and B:

cross2D(A,B) := A.x*B.y - B.x*A.y

I'm assuming your coordinates are right handed, you might need to twiddle the...
14. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### Sorry for the delay, work took over there for a...

Sorry for the delay, work took over there for a while.

I can post the octave scripts when I get home tonight. As to why you're having trouble reproducing the effect in your own codes, I am not...
15. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### A few things I forgot - the palette of the...

A few things I forgot - the palette of the original game has redundant entries in it, and some of the pixels of the 32 bit source artwork were colors that did not exist in the palette. Both of these...
16. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### All right, got the blue image whipped up, and...

All right, got the blue image whipped up, and made an example of palette swapping in flash. It's all zipped up below as an attachment.

http://img407.imageshack.us/img407/4236/artblue.png
...
17. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### Looks good, I will take a swipe at it tonight....

Looks good, I will take a swipe at it tonight. It's pretty artwork :)
18. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### If it's small enough you can just add it as an...

If it's small enough you can just add it as an attachment to a post/pm. If not, a 3rd party filehoster is fine w/ me.
19. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### Post or PM it whenever its ready and I'll give it...

Post or PM it whenever its ready and I'll give it a shot - it's really not that much trouble. I have a lot of similar codes already laying around. My matlab license is expired but octave is freeware...
20. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### There's probably other ways to do it, that's just...

There's probably other ways to do it, that's just the one that pops first into my mind. Palettemap is a real technicians tool, have to get your hands a little dirty to make any real use of it. It's...
21. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### Sounds like some wires got crossed. To use...

Sounds like some wires got crossed. To use palettemap the way I described, your image will need to have its palette indices packed onto just one channel (like blue). I'd use matlab to do that kind of...
22. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### If the two palette files (the palette from your...

If the two palette files (the palette from your pngs, and the palette from the original game), are basically permutations of each other, you could write a short program to correct the palette indices...
23. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### For the clouds, one thing you could just try is a...

For the clouds, one thing you could just try is a full screen alpha blend between a cloudbuffer and the screenbuffer. My limited experience with alpha blending suggests it's a bit expensive on a...
24. ## Thread: Creating a 256 colour game in as3

by rachil0
Replies
27
Views
7,348

### Cool game, looks fun :) Reminds me of Raptor Call...

Cool game, looks fun :) Reminds me of Raptor Call of the Shadows.

I think Items 2 and 3 can be done using BitmapData.paletteMap. Like the font coloring for instance, use the same indexed color...

by rachil0
Replies
27
Views
7,348