Commit f9d9b8e2 authored by Alexey Hohlov's avatar Alexey Hohlov
Browse files

Конфигурация для снарядов

parent 9243a16c
<?xml version='1.0' encoding="utf-8" standalone="yes"?>
<class name="CProjectileBullet">
<texture file="projectiles/bullet.tga">
<frames x="1" y="1" default="0"/>
<origin x="0" y="0"/>
</texture>
<solid>True</solid>
<flat>False</flat>
<size width="16" height="16"/>
<bounds>
<point x="-4" y="-8"/>
<point x="-4" y="8"/>
<point x="4" y="8"/>
<point x="4" y="-8"/>
</bounds>
<zpos>5</zpos>
</class>
......@@ -6,19 +6,13 @@
CProjectileBullet::CProjectileBullet(CVector p)
{
std::string str;
TextureManager& TexManager = TextureManager::GetInstance();
LoadConfig(getClassName());
_type = "CProjectile";
p.z = 5;
pos(p);
p.z = 5;
_speed = 15;
str = "projectiles/bullet.tga";
sprite = TexManager.load(str, point(0,0));
_size = {16, 16};
arm_dmg = 20;
expl_dmg = 5;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment