Commit Graph

267 Commits

Author SHA1 Message Date
Allanis
fb57dde3ed [Fix] No-one knew it, but input for toolkit was buggy. Seperated toolkit input from game input to fix this. 2013-02-27 14:50:16 +00:00
Allanis
ddadb068fe [Change] Compressed the debug messages. 2013-02-27 14:36:56 +00:00
Allanis
e87f160e23 [Add] Hopefully this will prevent dt intervels being too big. 2013-02-27 04:43:16 +00:00
Allanis
78d0346515 [Change] Use atan2 for ANGLE 2013-02-27 04:31:04 +00:00
Allanis
eee3ef3065 [Change] Minor change to physics. 2013-02-27 04:18:37 +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
fce918506d [Fix?] Attempt to fix hyperspace on certain arcitecures. ABS was a bit off. 2013-02-27 02:23:33 +00:00
Allanis
4319f3312e [Add] TODO list. 2013-02-27 01:34:39 +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
1578278f00 [Change] Cleaned up collision a little. 2013-02-27 00:05:52 +00:00
Allanis
68b51e61bc [Fix] Some compiler warnings on 32 bit systems. 2013-02-26 23:54:35 +00:00
Allanis
18bb84eafb [Change] Nerfed the knockback effect. 2013-02-26 23:52:41 +00:00
Allanis
be7a2b7791 [Change] Simplifies spfx_destroy, performs a little better.. 2013-02-26 23:50:00 +00:00
Allanis
ce7480d928 [Add] Updated the keybinding info in README. 2013-02-26 23:48:06 +00:00
Allanis
9175091456 [Fix] Forgot to remove special effects when in hyperspace.` 2013-02-26 23:46:55 +00:00
Allanis
cc1d09c4b5 [Fix] Small issue with spritesheets that don't have sx == sy 2013-02-26 23:44:54 +00:00
Allanis
f603df48cc [Change] Define special effects per outfit. 2013-02-26 23:43:07 +00:00
Allanis
80d78756ad [Add] Primitive special effect system with explosions!! 2013-02-26 23:18:40 +00:00
Allanis
21deb8709d [Change] Optimized getSpriteFromDir somewhat. 2013-02-26 18:47:14 +00:00
Allanis
ffd806bea6 [Change] Spoke too soon. Star deformation length is now defined. 2013-02-26 18:27:06 +00:00
Allanis
45d75779dd [Add] Perfected hyperspace visuals. ^.^ 2013-02-26 18:21:51 +00:00
Allanis
409dbff310 [Change] Improved hyperspace transition. 2013-02-26 17:54:51 +00:00
Allanis
a10931b7b6 [Fix] Clearing out some warning that I allowed to slip in. 2013-02-26 17:48:47 +00:00
Allanis
6cad2ac40e [Add] Included sound in config file. 2013-02-26 16:59:43 +00:00
Allanis
13b78313e8 Change] Prettified the Makefile. 2013-02-26 16:57:44 +00:00
Allanis
4db96b636a [Add] Just a bit more sanity checking for music. 2013-02-26 16:54:25 +00:00
Allanis
804a6d73a0 [Add] seek/tell functions to packfile. Still using "streaming mode" though as it works better with vorbis. 2013-02-26 16:24:29 +00:00
Allanis
301ea07a69 [Change] ai/toolkit compilable under C99. I'll get to the rest of it at some point. 2013-02-26 16:10:35 +00:00
Allanis
d2e952fb88 [Change] Just some C correctiveness. 2013-02-26 15:47:56 +00:00
Allanis
f9c778358c [Fix] Allow for gameplay even if sound isn't working. 2013-02-26 13:54:41 +00:00
Allanis
6a02e903a5 [Add] More complete error checking for audio framework [sound]. 2013-02-24 19:00:15 +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
84558ae2c9 [Fix] Small correction in a memset from packfile 2013-02-24 18:01:15 +00:00
Allanis
5c02e0ecfd [Fix] You didn't know it. But you could target while on the pilot information menu. Not now.. 2013-02-24 18:00:11 +00:00
Allanis
ff217f68d6 [Fix] Ensure the game will pause when opening the pilot information window. 2013-02-24 17:58:48 +00:00
Allanis
efe9970854 [Add] Information and ship spec widows with keybins 'i'
[Change] Cleaned up some MELEMENT sanity checks.
2013-02-24 17:55:59 +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
9fc0c72e71 [Add] If you don't kill the merchant so soon, It will attempt to jump hyperspace when running away. 2013-02-24 15:53:36 +00:00
Allanis
6667fbc4e7 Merge branch 'master' of github.com:Allanis/Lephisto 2013-02-24 15:42:21 +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
d387179111 [Add] OpenAL dll for cygwin. 2013-02-23 23:52:03 +02:00
Allanis
14735a362d [Fix] Hm. Fixing locally the testing on a remote server means push and pull spam. :) 2013-02-23 21:43:26 +00:00
Allanis
c5c0f16915 [Fix] Another one. Sorry. 2013-02-23 21:41:51 +00:00
Allanis
54758a5de9 [Fix] Typo in non POSIX build of packfile. 2013-02-23 21:40:38 +00:00
Allanis
867f3cee8d [Add] When I last updated controls in README, I knew I would miss something. Here it is. 2013-02-23 20:45:37 +00:00
Tamir Atias
166dcc95f7 [Change] Renamed main.* to lephisto.*. 2013-02-23 22:38:03 +02:00
Allanis
82ed9ac551 [Change] Just some cosmetic changes, and removed of bzero and strdup. 2013-02-23 20:30:49 +00:00