Commit Graph

84 Commits

Author SHA1 Message Date
Guus Sliepen c72fa54344 Replace plasma sound effect with one generated using Csound.
This is the first sound effect which is generated from scratch
using Csound. The advantages of this are:

- Real source code for sound.
- Anyone with a text editor can tweak the sound effects.
- Source code is much more compact that the sound file itself.
- Sound files can be regenerated with arbitrary quality.
2012-02-29 22:13:26 +01:00
Guus Sliepen 7bc36c16b2 Make the very first cutscene a little bit more interesting.
Before, all the ships were moving at exactly the same speed, making them appear
static on screen.  Now, Chris is moving slowly to the right, but the WEAPCO
fighters are changing velocity now and then, both horizontally and vertically,
never quite reaching Chris but increasing their attempts.
2012-02-29 14:49:12 +01:00
Guus Sliepen 3c9f8e2135 Do not allow player to switch destinations in flight.
When travelling between planets, while the progress bar was growing, it was
possible to click on planets, thereby changing the final destination planet.
2012-02-29 14:12:22 +01:00
Guus Sliepen f51dbd0669 Use a better way to create images of ships taking damage.
The old technique was to overlay a semi-transparent red rectangle over an
existing ship image, and then make 50% red pixels transparent. For some reason,
the transparency is not working correctly. Instead, don't overlay anything,
but set the red component of all non-black pixels to the maximum value.
2012-02-28 13:35:39 +01:00
Guus Sliepen 336a0798fa Don't overwrite static data files.
The code always tries to overwrite some data files when not using a .pak
file. This is only useful for upstream development. Put #ifdefs around
this code.
2012-02-27 15:35:56 +01:00
Guus Sliepen 4c5eed148f chdir() to the data directory before loading data.
This is necessary for starfighter to find the data files if it is not
using a .pak file.
2012-02-27 15:33:58 +01:00
Guus Sliepen 78459e9fdb Update copyright notices, bump version to 1.2. 2012-02-26 22:25:57 +01:00
Guus Sliepen 66ce3f2b4e Make sure error messages are shown. 2012-02-26 22:23:34 +01:00
Guus Sliepen 230620a1f1 Do not complain about missing music files in the PAK file. 2012-02-26 22:22:27 +01:00
Guus Sliepen fdd63c14cc Don't play music in first Kline battle when music is disabled. 2011-09-18 00:54:44 +02:00
Guus Sliepen 1d25dd0379 Fix status display of plasma output boosters during game. 2011-09-17 11:24:56 +02:00
Guus Sliepen 96996ce167 Redo the whole plasma system.
- We now have both minPlasma* and maxPlasma* variables.
- *PlasmaRate now goes from 1 to 5 just like Damage and Output.
- Internally, plasma now goes into the primary weapon, there is no
  temporary weapon anymore.
- When upgrading the primary weapon, the new minimum amount of Damage,
  Output and Rate immediately goes into effect when starting the next
  msision.
- Super Charge now works exactly the same again as in the original.
- But shows blinkenlights in the bottom status bar when it is in use.
2011-09-11 21:57:57 +02:00
Guus Sliepen 2c64485272 Toggle fullscreen mode with F11 or Alt+Enter. 2011-09-05 22:13:11 +02:00
Guus Sliepen 7a59631189 Simplify bullet code even more. 2011-09-05 21:55:23 +02:00
Guus Sliepen bde2d5c8cf Update credits.
- Explicitly mention all the authors and licenses used for the new graphics
  and sounds.
- Remove credits for the old music.
- Mention Valgrind and cppcheck under the Quality Assurance section.
- Add myself as additional programmer, Astrid as replacement graphics and sound
  finder.
2011-09-05 13:56:04 +02:00
Guus Sliepen 350aabfa23 Pause the game when the window loses input focus. 2011-09-05 11:41:03 +02:00
Guus Sliepen f8c4a72170 Display "PAUSED" when paused. 2011-09-05 11:40:35 +02:00
Guus Sliepen e7f5c3825b Simplify spread bullet code.
There were three flags, WF_STRAIGHT, WF_THIN_SPREAD and WF_WIDE_SPREAD,
when only one flag, WF_SPREAD suffices. This makes the code simpler and
gets rid of some duplication.
2011-09-04 18:24:54 +02:00
Guus Sliepen 45664437e1 Replace maledeath sound by one from OLPC. 2011-09-04 17:14:32 +02:00
Guus Sliepen 8bbe48b4bd Use bitwise operations for flags. 2011-09-04 14:43:17 +02:00
Guus Sliepen 4d747db620 Respect LDFLAGS and link LIBS after object files. 2011-08-29 22:44:46 +02:00
Guus Sliepen 4779481f30 Smoother appearance of aliens on left hand side of title screen. 2011-08-29 17:28:06 +02:00
Guus Sliepen 4e1316054a Don't display target arrow if engine.targetIndex is invalid. 2011-08-29 13:08:55 +02:00
Astrid S. de Wijn 2ddeb41360 Updated drone and pod graphics. 2011-08-29 11:01:40 +02:00
Guus Sliepen 7607bc4142 Fix write past end of array.
Found by cppcheck.
2011-08-29 10:58:17 +02:00
Guus Sliepen ac71e3d3ec Explicit limits for the maximum amount of rockets.
Put the maximum amount of rockets that can be caried in the description, and
also adjust the amount of rocket pods one has when buying a secondary weapon.
The laser and charge beam will remove all rocket capacity. To soften the blow,
you get at least capacity for 5 rockets when buying homing missile systems,
or 10 when buying normal missile system.
2011-08-29 09:31:16 +02:00
Guus Sliepen 744f1977e1 Reset charge cannon charge and laser heat after each mission.
This prevents these variables from turning into a huge amount of missiles when
buying a missile launcher in the shop.

This fixes Debian bug #286933.
2011-08-29 09:10:50 +02:00
Astrid S. de Wijn bad5739c62 Add DFSG-compatible replacement sound.
All sound was taken from OpenGameArt.org.
2011-08-28 13:38:27 +02:00
Guus Sliepen 12d4fcaeab Don't use .wav anymore, use .ogg for all sound effects. 2011-08-28 13:32:34 +02:00
Guus Sliepen 81905236cc Fix two spelling errors. 2011-08-28 12:28:05 +02:00
Guus Sliepen 6bfba4064b Make wrap() functions really wrap.
Before, if a value was over one of the limits, it would be set to the
other limit. For most usecases, that was fine, however for the starfield
this would cause stars to become aligned to each other after a while.
2011-08-27 23:30:44 +02:00
Guus Sliepen 1abf5d8c67 Add "optimise" target which optimises PNG and JPEG files. 2011-08-27 22:37:26 +02:00
Astrid S. de Wijn e292e98c88 Updated graphics sources document. 2011-08-27 22:33:38 +02:00
Astrid S. de Wijn 61fb3d2035 Update Executive Transport and Pluto boss graphics. 2011-08-27 22:13:55 +02:00
Guus Sliepen bf39080d6f Make cargo pods appear again.
Cargo items were always set inactive after the conversion of variables
from signed char to bool.
2011-08-27 22:08:08 +02:00
Guus Sliepen 6c6fa1ec2e Make makefile more similar to the one of Blobwars. 2011-08-27 21:52:46 +02:00
Guus Sliepen 7768b4cc6d Add Makefile option to select whether or not to use a .pak file. 2011-08-27 21:29:08 +02:00
Guus Sliepen 44fa119ab7 Fix two spelling errors. 2011-08-27 21:21:43 +02:00
Astrid S. de Wijn f0eff0b0b8 Updated graphics sources document. 2011-08-27 17:33:43 +02:00
Guus Sliepen acf5c5d1f4 Move sources document out of the gfx directory. 2011-08-27 17:31:08 +02:00
Astrid S. de Wijn af07946e24 Remove unused graphics. 2011-08-27 17:29:35 +02:00
Astrid S. de Wijn 75a6b07823 Updated explosion graphics. 2011-08-27 17:28:58 +02:00
Guus Sliepen 4d78603139 Converted one signed char to bool too many.
This prevented new aliens from being generated throughout the mission,
making certain missions impossible to complete.
2011-08-27 17:17:54 +02:00
Astrid S. de Wijn d80d1af89c Add DFSG-compatible replacement graphics.
Some images are made from scratch, others are taken from various sources
with CC0, CC-BY, CC-BY-SA and GPL licenses, mostly from OpenGameArt.org
and NASA.
2011-08-27 16:20:42 +02:00
Guus Sliepen d6c17d176f Don't use .bmp and .gif anymore, use .png for all lossless graphics. 2011-08-27 16:18:29 +02:00
Guus Sliepen 3dcea6c81f Fix a spelling error. 2011-08-27 12:24:37 +02:00
Guus Sliepen b8ba61c75e Minor spelling and punctuation fixes. 2011-08-27 10:53:31 +02:00
Guus Sliepen c13267d63d Use whole screen for credits, and allow arrow keys to be used. 2011-08-27 00:29:23 +02:00
Guus Sliepen 5629a2ad73 Move isOnScreen() to explosions.cpp.
It is only used there, and can then be turned into a static function.
2011-08-27 00:29:01 +02:00
Guus Sliepen d7d6dc37bc Flatten Graphics object.
All functions and variables are now defined in graphics.cpp.
Before, the functions would be compiled again and again for every source
file, now it is compiled only once, halving the size of the stripped
starfighter binary.
2011-08-26 23:53:46 +02:00