Commit Graph

135 Commits

Author SHA1 Message Date
Allanis
0d6ac1e5b1 [Add] Afterburners are in! After buying the outfit, double tap 'w'. 2013-03-19 22:34:20 +00:00
Allanis
c2d44ebb74 [Fix] FFS. Wasn't incrementing number of outfits while trying to add it. 2013-03-17 20:13:43 +00:00
Allanis
a037112f72 [Fix] Eheh. Typo affecting merchant ships going to hyperspace.. 2013-03-17 19:55:40 +00:00
Allanis
b66c6f7ecf [Add] Attempted to get modifications actually working. Everything is
brokened. Don't even attempt to play..
2013-03-17 19:28:45 +00:00
Allanis
2f59ae1b84 [Add] Energy is actively in use now. ^.^ 2013-03-17 16:36:59 +00:00
Allanis
91e68ee828 [Add] Buy/Sell cargo. 2013-03-17 01:01:47 +00:00
Allanis
88fed6f40c [Add] ai now controls ship's credits/loot. Some more API calls and cargo stuff. 2013-03-16 22:14:53 +00:00
Allanis
eb98a0deaf [Change] Some cosmetic changes to Hyperspace. 2013-03-16 16:47:49 +00:00
Allanis
4b07e86acd [Add] Militia faction. Changed Test pilot to Militia and added ai_create 2013-03-12 23:45:29 +00:00
Allanis
2a572b713a [Fix] Enforce outfit selling/buying with limits. 2013-03-10 16:07:38 +00:00
Allanis
1d6b0268b5 [Change] Cleaned up codebase to not exceed 80 characters. 2013-03-10 14:18:07 +00:00
Allanis
eeb09fdf05 [Add] Make $$ from selling outfits. 2013-03-08 13:54:30 +00:00
Allanis
a33bb0624a [Add] Selling of outfits, also improved purchasing of outfits. 2013-03-08 00:10:45 +00:00
Allanis
36a8847248 [Add] You may buy new outfits now. :D 2013-03-07 18:44:01 +00:00
Allanis
8881dc5265 [Add] Keybord events work with lists. I think I optimized pilots to use temp sprite values here too. Forgot to diff. 2013-03-06 20:17:14 +00:00
Allanis
9d966458d7 [Add] Mule ship, and applied turrets to them. 2013-02-28 21:22:06 +00:00
Allanis
8f6b02cfc1 [Add] Turrets!! 2013-02-28 17:38:44 +00:00
Allanis
1b77a4276b [Add] Smart seeker missiles. Not aquirable yet :P.
[Fix] Potential fix of a floating point exceoption.
2013-02-28 01:23:52 +00:00
Allanis
f181a7bec6 [Change] Just some standardization 2013-02-27 23:03:48 +00:00
Allanis
495a9ccb74 [Add] Enemy pilots die with a big ass explosion. :D 2013-02-27 22:16:09 +00:00
Allanis
a6c758aa66 [Fix?] Hyperspace bug. Messed up velocity issues.
Ok. What we are doing here is messy.

What we are doing is modulating the velocity. There is also a dt
in there to try to make it not frame dependant..

The way things are done right now, we  are cascading the limit_speed with the physics model,
We can simplify it to a euler integration (It's actuallyu runge-kutta)..

What we are doung is:

v1 = v0 + adt

Basically this means that the current velocity is the last vel plus the acceleration, times the
time passed from the last instance. This is then chained to the limit speed which does:

v = (v1 - vmax)(1-3dt)

So we can right the composite form as:

v = (v0 + adt - vmax) 1-3dt) = v0 + adt - vmax - 3dtv0 - 3adt2 + 3dtvmax

-- Yes. This is hacky. I will try to play with some equasions later.
2013-02-27 03:45:25 +00:00
Allanis
f6de9e8186 [Add] limit_speed in physics 2013-02-27 03:26:58 +00:00
Allanis
0de847b5a4 [Fix] Quick indent fix to stop us from being confused as hell while bug hunting. 2013-02-27 02:46:25 +00:00
Allanis
1d89d4e7c6 [Fix] Huge fix of outfits, missiles now work, compiles in C99, no seg fault on exit. 2013-02-27 01:17:46 +00:00
Allanis
18bb84eafb [Change] Nerfed the knockback effect. 2013-02-26 23:52:41 +00:00
Allanis
439fce48c8 [Add] Combat rating based on mass of pilots killed. -- [Add] Player name. 2013-02-24 18:18:52 +00:00
Allanis
7d04d86146 [Change] Target hostile no longet picks up disabled ships when targetting nearest hostile. 2013-02-24 16:09:06 +00:00
Allanis
b55259321e [Add] Pushback effect for weapons. 2013-02-24 16:06:19 +00:00
Allanis
34a6be43df [Add] Merchant vessels are now able to go to hyperspace.
[Change] Overpowered merchant ship a little for testing purposes.
2013-02-24 15:40:34 +00:00
Tamir Atias
166dcc95f7 [Change] Renamed main.* to lephisto.*. 2013-02-23 22:38:03 +02:00
Allanis
fccd9dcc22 [Fix] Mkay. Sound seems to be working without any problems now. 2013-02-22 22:07:42 +00:00
Allanis
dcc0fc247b [Add] Sound base support. 2013-02-22 05:34:24 +00:00
Allanis
529ca21644 [Add] Audio engine is now working, it It's fully tuned enough yet however.
[Change] Refactored ship.c to comply with xml.* standards.
2013-02-22 04:06:47 +00:00
Allanis
7e3bca1e51 [Change] Remove hard forcing of player speed and instead use incremental slowdown.
[Fix] Pause would give instant travel. Not now!!
2013-02-20 20:20:48 +00:00
Allanis
b2a887ba45 [Change] Improved transition into hyperspace a little. 2013-02-20 20:10:36 +00:00
Allanis
44c6ea6ed6 [Add] Rudementory Hyperspace travel. Still a work in progress. ;) 2013-02-20 19:34:30 +00:00
Allanis
1ecf7c1e54 [Fix] Primary weapons where borked on checking for ammunition. 2013-02-19 23:02:42 +00:00
Allanis
bfc3582d1e [Change] pilot and star stack won't lower memory allocation now. 2013-02-19 22:17:31 +00:00
Allanis
bf9d422150 [Add] Support for images of planets within toolkit.
[Change] blit functions use doubles instead of vectors.
[Change] Took some time out to clean up space.c bringing it up to xml.h standards.
2013-02-19 00:10:57 +00:00
Allanis
268b5dcaa0 [Fix]? Attempted to fix seg fault on AI trying to switch to secondary weapons when there is none available. 2013-02-17 23:30:40 +00:00
Allanis
e3c2ca72ac [Add] Planet targeting/landing framework.
[Change] Seperated update/render as it should be.
2013-02-15 18:15:06 +00:00
Allanis
36f1936667 [Add] Secondary weapons.
[Add] Preliminary seeker missile.
2013-02-15 07:31:59 +00:00
Allanis
dc9f089abe [Fix] *Now* it's fixed.. Forgot to correct lua and xml files. 2013-02-15 02:34:40 +00:00
Allanis
2b3852c25b [Fix] Guess who found out the correct spelling of armour!
-- find . -iname \*.c -exec sed -i -e "s/armor/armour/g" {} \;
2013-02-15 02:18:09 +00:00
Allanis
7dbe3d2598 [Add] It is now possible to disable ships - No death yet.
[Add] Player start location. ship etc can now be defined in data file.
2013-02-14 17:55:31 +00:00
Allanis
9fae81c389 [Fix] AI's landing, it's still not as good as I wish however.
[Add] A few more xml macros and cleaned up a little code to use them.
2013-02-14 14:25:32 +00:00
Allanis
c4e7a8a9ee [Change] Thrown XML crap into a single header.
-- player.c currently uses this.
2013-02-13 15:48:36 +00:00
Allanis
053d7b75b6 [Change] Target color changes based on target. 2013-02-13 14:30:17 +00:00
Allanis
e1b23f928b [Change] GUI's are now saved in XML and thrown into data pack file.
-- This allows for multiple gui's.
  -- Each ship can also have it's own gui if it so chooses.
2013-02-12 19:34:47 +00:00
Allanis
a89395a54f [Add] We can now have multiple enemies.
[Add] You are able to get other ship's health from AI now.
2013-02-10 05:21:09 +00:00
Allanis
f6f1677614 [Add] keybinding 'r' to grab nearest enemy target -- Tamir's request. 2013-02-10 04:12:05 +00:00
Allanis
d1c02773bf [Add] Enemies are now propperly parsed.
[Add] Chance for pirate to come and rampage.
[Fix] Actually got that buffer overflow in ai.
2013-02-09 22:06:02 +00:00
Allanis
eac16dacdd [Fix] control_rate is now applied properly.
[Fix] Targetted now renders over the pilot's below.
2013-02-09 16:11:53 +00:00
Allanis
58e7c9b3d7 [Add] Ai profile support. 2013-02-09 00:53:37 +00:00
Allanis
08f9cb3781 [Add] Ai now responds on being attacked. 2013-02-08 20:26:39 +00:00
Allanis
acf4150079 [Add] Per pixel collision.
[Fix] Fleets now start at random location.
    -- Still needs improvement.
2013-02-08 18:29:07 +00:00
Allanis
fd3f3a78b6 [Fix] Small graphics bug. 2013-02-08 16:10:31 +00:00
Allanis
d46f509ee5 [Add] Faction system almost done.
[Add] Fleets almost complete, just need to randomize start location.
2013-02-08 16:04:24 +00:00
Allanis
943cbecf70 [Add] Fleets. Not actually making use of them yet though.
[Add] More error checking for XML files
2013-02-08 14:26:53 +00:00
Allanis
09f6aea97e [Add] Targetting!!! 2013-02-06 22:21:00 +00:00
Allanis
7d4f94acc7 [Fix] Fixed armor/shield regeneration. 2013-02-06 19:41:10 +00:00
Allanis
8943c9322b [Fix] Shield/Armor bars work correctly now. 2013-02-05 23:44:08 +00:00
Allanis
4d7c01f078 [Add] Basic Gui.
-- Minimap.
  -- Health bars.
2013-02-05 23:10:46 +00:00
Allanis
f220145d7d [Add] Radial collision detection.
[Add] Pilots now take damage.
2013-02-05 20:12:09 +00:00
Allanis
ccdeb8d13b [Add] Add Lua calls to pew pew lazers. Now you can have a fake battle with the AI. :D 2013-02-05 19:26:59 +00:00
Allanis
141790fe0a [Fix] Oops. Removed render instead of update from that last commit. D: 2013-02-05 18:11:43 +00:00
Allanis
838e2f184c [Fix] Thanks @KonoM, Buh want to update out of that if statment. :) 2013-02-05 18:06:11 +00:00
Tamir Atias
33f61736c4 [Fix] Segfault in pilot.c 2013-02-05 20:01:49 +02:00
Allanis
cf86e5b0c7 [Fix] One seg fault! No idea how many more to go. 2013-02-05 17:55:01 +00:00
Allanis
998a1bf68b [Add] Rudimentary shooting. This needs some work.
[Add] Layers should be working properly.
2013-02-05 16:50:56 +00:00
Allanis
b13ecc66bb [Add] Outfit loading.. Not fully done yet. 2013-02-04 17:44:53 +00:00
Allanis
6a2f07b5b7 [Change] Optimized ai API some.
[Fix] Few mem leaks.
2013-02-04 11:00:32 +00:00
Allanis
376eedc616 [Add] Star systems.
[Add] Planets.
2013-02-04 09:09:04 +00:00
Allanis
5b4d184ffc [Fix?] Changed rotation speed, everyone was bothering me about it, all they needed to do was change it in xml file.. 2013-02-03 18:47:13 +00:00
Allanis
b3c21a5c4e [Add] Lua function calls. 2013-02-03 14:00:19 +00:00
Allanis
57dc51fb91 [Add] Initial AI support with Lua 2013-02-03 00:37:42 +00:00
Allanis
a7546372cc [Add] Vec2 now uses polor coords. 2013-02-02 22:52:58 +00:00
Allanis
066d4871cc [Fix] Just a few optimization. 2013-02-02 21:50:13 +00:00
Allanis
b5a7ba8919 [Fix] Changing from floating point to doubles. 2013-02-02 14:21:05 +00:00
Allanis
d39e7925ea [Fix] Small handling fixes, nothing special. 2013-02-02 00:48:44 +00:00
Allanis
838bbcd2ab [Add] Initial Lua infrastructure. 2013-02-02 00:39:48 +00:00
Allanis
223a6185fb [Add] Command line option.
[Add] Finished(tm) joypad support.
[Change] Input comes from player.
2013-02-01 02:32:29 +00:00
Allanis
20bf55f117 [Add] Leave me a lone a short while, still working with this. 2013-01-31 23:22:32 +00:00
Allanis
85bec426ba [Add] libxml for ship data etc.
[Fix] Memory leaks.
[Fix] fixed #1 For dear old KonoM.
2013-01-31 01:30:51 +00:00
Allanis
cc47d41137 [Add] Initial commit of Lephisto. 2013-01-30 22:22:30 +00:00