-updated README.md

-fixed shaders for GL2
-added Entity selection tool
-throw out tools from "Demo" window to "Tools" window
-change ComboBox to Tabs for Tools
-Added more verbose tips
-Improved and fixed BrickBreaker collisions
-fixed simple DUB issue
This commit is contained in:
Mergul 2021-03-01 12:16:02 +01:00
parent 1acd0df0ef
commit 56f870bac6
21 changed files with 332 additions and 133 deletions

View file

@ -58,7 +58,8 @@ enum SnakePart : ubyte
struct Snake
{
__gshared const (char)* tips = "Use \"WASD\" keys to move.";
__gshared const (char)* tips = "Use \"WASD\" keys to move. If you loose you can always spawn new snake... or several snakes.
This demo is an example that in ECS you can make very \"non-ECS\" game";
EntityTemplate* apple_tmpl;
EntityTemplate* snake_tmpl;
@ -286,7 +287,7 @@ struct ParticleSystem
{
foreach(i;0..data.length)
{
data.particle[i].life -= launcher.delta_time;
data.particle[i].life -= launcher.deltaTime;
if(data.particle[i].life < 0)launcher.manager.removeEntity(data.entities[i].id);
}
}
@ -328,7 +329,7 @@ struct AnimationSystem
{
foreach(i;0..data.length)
{
data.animation[i].time += launcher.delta_time * 0.01;
data.animation[i].time += launcher.deltaTime * 0.01;
while(data.animation[i].time >= data.animation[i].frames.length)data.animation[i].time -= cast(float)data.animation[i].frames.length;
}
}
@ -971,7 +972,7 @@ bool snakeLoop()
launcher.manager.begin();
float delta_time = launcher.delta_time;
float delta_time = launcher.deltaTime;
if(delta_time > 2000)delta_time = 2000;
__gshared float time = 0;