[Fix?] Changed rotation speed, everyone was bothering me about it, all they needed to do was change it in xml file..
This commit is contained in:
parent
7910dac9c3
commit
5b4d184ffc
@ -25,13 +25,13 @@
|
|||||||
<outfits>
|
<outfits>
|
||||||
<outfit quantity='2'>laser</outfit>
|
<outfit quantity='2'>laser</outfit>
|
||||||
</outfits>
|
</outfits>
|
||||||
</ship>
|
</ship>
|
||||||
<ship name="Miss. Test">
|
<ship name="Miss. Test">
|
||||||
<GFX>enemyship.png</GFX>
|
<GFX>enemyship.png</GFX>
|
||||||
<class>1</class>
|
<class>1</class>
|
||||||
<movement>
|
<movement>
|
||||||
<thrust>180</thrust>
|
<thrust>180</thrust>
|
||||||
<turn>100</turn>
|
<turn>360</turn>
|
||||||
<speed>260</speed>
|
<speed>260</speed>
|
||||||
</movement>
|
</movement>
|
||||||
<health>
|
<health>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 145 KiB |
BIN
gfx/ship.png
BIN
gfx/ship.png
Binary file not shown.
Before Width: | Height: | Size: 91 KiB |
2
src/ai.c
2
src/ai.c
@ -255,7 +255,7 @@ static int ai_face(lua_State* L) {
|
|||||||
if(lua_isnumber(L,1)) v = &get_pilot((unsigned int)lua_tonumber(L,1))->solid->pos;
|
if(lua_isnumber(L,1)) v = &get_pilot((unsigned int)lua_tonumber(L,1))->solid->pos;
|
||||||
else if(lua_islightuserdata(L,1)) v = (Vec2*)lua_topointer(L,1);
|
else if(lua_islightuserdata(L,1)) v = (Vec2*)lua_topointer(L,1);
|
||||||
|
|
||||||
double mod;
|
double mod = 10;
|
||||||
if(lua_gettop(L) > 1 && lua_isnumber(L,2))
|
if(lua_gettop(L) > 1 && lua_isnumber(L,2))
|
||||||
switch((int)lua_tonumber(L,2)) {
|
switch((int)lua_tonumber(L,2)) {
|
||||||
case 1: mod *= -1; break;
|
case 1: mod *= -1; break;
|
||||||
|
@ -73,7 +73,7 @@ void pilot_init(Pilot* pilot, Ship* ship, char* name, const Vec2* vel, const Vec
|
|||||||
pilot->id = ++pilot_id; // New unique pilot id based on pilot_id, Can't be 0.
|
pilot->id = ++pilot_id; // New unique pilot id based on pilot_id, Can't be 0.
|
||||||
|
|
||||||
pilot->ship = ship;
|
pilot->ship = ship;
|
||||||
pilot->name = strdup((name == NULL) ? ship->name:name);
|
pilot->name = strdup((name == NULL) ? ship->name : name);
|
||||||
|
|
||||||
pilot->solid = solid_create(ship->mass, vel, pos);
|
pilot->solid = solid_create(ship->mass, vel, pos);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user