summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 27b297c)
raw | patch | inline | side by side (parent: 27b297c)
author | Jabberwock-RU <jab1@yandex.ru> | |
Sun, 5 Mar 2017 13:12:01 +0000 (16:12 +0300) | ||
committer | binarymaster <x86corez@gmail.com> | |
Sun, 5 Mar 2017 23:32:12 +0000 (02:32 +0300) |
src/game/g_game.pas | patch | blob | history | |
src/game/g_weapons.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 938e07175a779844898f0196219a362ea03e5151..1be9d116e102b095ddd2fdd896884f93a6e956b5 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
g_Menu_Init();
g_Scripts_Init();
- g_Scripts_Load('game.conprint("ass")');
+ g_Scripts_Load('game.conprint("Scripts Init")');
gMusic := TMusic.Create();
gMusic.SetByName('MUSIC_MENU');
diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas
index bcbf4c16352e7c35a3f173e0fddf781f51760538..43a02a25ead779c9c08bdbac902b6683811abaa5 100644 (file)
--- a/src/game/g_weapons.pas
+++ b/src/game/g_weapons.pas
end;
const
- SHOT_ROCKETLAUNCHER_WIDTH = 27;
- SHOT_ROCKETLAUNCHER_HEIGHT = 12;
+ SHOT_ROCKETLAUNCHER_WIDTH = 14;
+ SHOT_ROCKETLAUNCHER_HEIGHT = 14;
- SHOT_SKELFIRE_WIDTH = 32;
- SHOT_SKELFIRE_HEIGHT = 16;
+ SHOT_SKELFIRE_WIDTH = 14;
+ SHOT_SKELFIRE_HEIGHT = 14;
SHOT_PLASMA_WIDTH = 16;
SHOT_PLASMA_HEIGHT = 16;
Obj.Rect.Width := SHOT_ROCKETLAUNCHER_WIDTH;
Obj.Rect.Height := SHOT_ROCKETLAUNCHER_HEIGHT;
- dx := IfThen(xd>x, -Obj.Rect.Width, 0);
+ dx := -(Obj.Rect.Width div 2);
dy := -(Obj.Rect.Height div 2);
throw(find_id, x+dx, y+dy, xd+dx, yd+dy, 12);
Obj.Rect.Width := SHOT_SKELFIRE_WIDTH;
Obj.Rect.Height := SHOT_SKELFIRE_HEIGHT;
- dx := IfThen(xd>x, -Obj.Rect.Width, 0);
+ dx := -(Obj.Rect.Width div 2);
dy := -(Obj.Rect.Height div 2);
throw(find_id, x+dx, y+dy, xd+dx, yd+dy, 12);
begin
Anim := TAnimation.Create(_id, False, 3);
Anim.Alpha := 150;
- g_GFX_OnceAnim(Obj.X-8+Random(9),
+ g_GFX_OnceAnim(Obj.X-14+Random(9),
Obj.Y+(Obj.Rect.Height div 2)-20+Random(9),
Anim, ONCEANIM_SMOKE);
Anim.Free();
begin
Anim := TAnimation.Create(TextureID, False, 8);
Anim.Blending := False;
- g_GFX_OnceAnim((Obj.X+32)-32, (Obj.Y+8)-32, Anim);
+ g_GFX_OnceAnim((Obj.X+32)-58, (Obj.Y+8)-36, Anim);
Anim.Free();
end;
end