barryg613 / uqm-hd

Automatically exported from code.google.com/p/uqm-hd
0 stars 0 forks source link

Sa-Matra door shield lets ships go through it #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
See capture.
You are supposed to kill the shield generators around the Sa-Matra first so 
that the shield over the door is removed and your flagship can get there.

But during the fight, I accidentally had a Kohr-Ah ship with me and it went 
right through the door. It eventually got killed while INSIDE the sa-matra.

From memory, during the fight, object should "bounce" over the door shield.

Original issue reported on code.google.com by Awakened...@gmail.com on 28 Dec 2012 at 11:30

Attachments:

GoogleCodeExporter commented 8 years ago
To test Sa-Matra fight, use the attached save game.

Original comment by Awakened...@gmail.com on 28 Dec 2012 at 11:31

Attachments:

GoogleCodeExporter commented 8 years ago
This is graphics related. If you take a look at content/base/ships/samatra, you 
will notice that samatra-big-000 has a mask area all around the ship - there is 
no hole in where the gate is. If there is a hole in the graphics, the player's 
ship goes right through it.

Solution: Draw a thin barrier in place of the empty hole in 
samatra-big-000.png. The gate graphic will obscure then this barrier and 
everything is cool. However, the barrier must not be so thick that the player 
can't touch the gate. Otherwise the game will be unwinnable since touching the 
gate with flagship triggers the endgame sequence.

Original comment by Jaakko.M...@gmail.com on 29 Dec 2012 at 7:22

GoogleCodeExporter commented 8 years ago
I also need the new coordinates for the generators' placement in pixels. The 
320x240 version has these coords:
POINT offs[] =
        {
            {-127-9,  -53+18},
            { -38-9,  -88+18},
            {  44-9,  -85+18},
            { 127-9,  -60+18},
            { 124-9,   28+18},
            {  73-9,   61+18},
            { -87-9,   58+18},
            {-136-9,   29+18},
        };

(8 generators, one per line,  x coord first, y coord second. Don't worry about 
those "73-9". It's just a funny way to write "64".)

Obviously the 1280x960 version has different proportions for the sa-matra, so 
scaling those numbers with RESOLUTION_FACTOR doesn't work. I could try and work 
out the numbers with trial-and-error, but I think it's a lot easier for you as 
the graphician to see the correct coords in e.g. photoshop.

Original comment by Jaakko.M...@gmail.com on 29 Dec 2012 at 7:29

GoogleCodeExporter commented 8 years ago
I can test these myself....but I don't know the filename.
Here's what I've got.
Starting from left bottom, and going counter-clockwise.  I'm counting how many 
pixels from the samatra-big-000.png to the upperleft of the generator balls.

160,512
27,383
76,155
376,12
643,12
873,151
905,357
796,488

Original comment by dczanik@gmail.com on 29 Dec 2012 at 8:01

GoogleCodeExporter commented 8 years ago
Hmm... I should've been clearer with my instructions about the numbers :-p'

They should be "How many pixels from the center of the samatra-000 image (to 
the center of the generator balls)". The center of sa-matra is 0,0, so the 
first one could be something like -300, -225.

Original comment by Jaakko.M...@gmail.com on 29 Dec 2012 at 8:57

GoogleCodeExporter commented 8 years ago
Ok, the force field works now! Still need those coords. After them I'll declare 
this fixed.

Original comment by Jaakko.M...@gmail.com on 29 Dec 2012 at 9:35

GoogleCodeExporter commented 8 years ago
Ball 1: -305,-239
Ball 2: -439,-110
Ball 3: -390, 118
Ball 4: -91, 262
Ball 5: 178,262
Ball 6: 410,213
Ball 7: 441,-87
Ball 8: 329,-214

Original comment by dczanik@gmail.com on 30 Dec 2012 at 1:20

GoogleCodeExporter commented 8 years ago
Great!

The ball placements need a little fixing, but I can do that. Fixed.

Original comment by Jaakko.M...@gmail.com on 30 Dec 2012 at 10:36

GoogleCodeExporter commented 8 years ago
Verified.

Original comment by Jaakko.M...@gmail.com on 1 Apr 2013 at 8:28