Skip to content

Commit

Permalink
Merge branch 'programming'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpages2020 committed Jun 15, 2020
2 parents 667e8cc + 4c4a37f commit 5985589
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions FalloutStrategy/FalloutEngine/FoWManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ void FoWManager::OnCommand(std::vector<std::string> command_parts)
//Increase all resources
if (command_beginning == "fog_of_war") {
App->render->fog_of_war = !App->render->fog_of_war;
if (App->render->fog_of_war) LOG("Fog Of War Activated");
else LOG("Fog Of War Deactivated");
if (App->render->fog_of_war) LOG("Fog Of War enabled");
else LOG("Fog Of War disabled");
}
}
2 changes: 1 addition & 1 deletion FalloutStrategy/FalloutEngine/j1App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void j1App::FinishUpdate()
uint32 frames_on_last_update = prev_last_sec_frame_count;
static char title[256];

sprintf_s(title, 256, " Fallout Strategy 0.9.5 - Kalima Entertainment | FPS: %d",
sprintf_s(title, 256, " Fallout Strategy v1.0 - Kalima Entertainment | FPS: %d",
prev_last_sec_frame_count, dt, App->render->camera.x, App->render->camera.y);
App->win->SetTitle(title);

Expand Down
3 changes: 2 additions & 1 deletion FalloutStrategy/FalloutEngine/j1Render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ j1Render::j1Render() : j1Module()
background.g = 0;
background.b = 0;
background.a = 0;
debug = true;

debug = false;
fog_of_war = true;

viewport.x = 0;
Expand Down
2 changes: 2 additions & 0 deletions FalloutStrategy/FalloutEngine/j1Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ bool j1Scene::Start()

App->minimap->Enable();

/*
//top_left
App->entities->CreateEntity(VAULT, MELEE, 20, 20, App->player);
App->entities->CreateEntity(VAULT, MELEE, 21, 20, App->player);
Expand All @@ -163,6 +164,7 @@ bool j1Scene::Start()
App->entities->CreateEntity(VAULT, MELEE, 131, 110, App->player);
App->entities->CreateEntity(VAULT, RANGED, 130, 111, App->player);
App->entities->CreateEntity(VAULT, RANGED, 131, 111, App->player);
*/

//Set camera to player's base position
App->render->camera.x -= (int)(App->player->base->position.x - App->render->camera.w * 0.5f);
Expand Down
Binary file removed FalloutStrategy/FalloutStrategy/video/lose.ogv
Binary file not shown.
Binary file removed FalloutStrategy/FalloutStrategy/video/win.ogv
Binary file not shown.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
This is a real-time strategy game produced by 2nd year students from CITM/UPC University in Terrassa, Barcelona.

## Goal
* Make your faction survive among the others in this exciting RTS! Be careful with the deathclaws at the end of the game.
* Make your faction survive among the others in this exciting RTS! Be careful with the deathclaws at the end of the game, they are really fast and will try to destroy your base as fast as possible!

### Win / Lose conditions
Destroy all other factions' buildings to win the game before you run out of time, if all of yours are destroyed you will lose.
Destroy all other factions' buildings to win the game before you run out of time, if all of yours are destroyed you will lose. If the Deathclaws have appeared you will also have to kill them in order to win the game.

## Controls
* Left click on the unit and left click on the position you want to make it go to.
* Left click on the unit and right click on the position you want it go.
* º - Turn console ON/OFF
* Y - Block/Unblock border scroll
* C - Center camera on selected entity
Expand All @@ -23,17 +23,17 @@ Destroy all other factions' buildings to win the game before you run out of time

## Boost
Upgrade your buildings to give differents boosts to your faction. Every building will gain a different boost depending of the level of the upgrade.
* Base - Increase resource limit and Gatherer resource limit
* Barrack - Damage and Speed to all the units
* Laboratory - Add health to units and decrease creation time
* Base - Increase resource limit and Gatherer resource limit.
* Barrack - Damage and Speed to all the units. If you upgrade one barrack, the both of them will.
* Laboratory - Add health to units and decrease creation time.

## Special ability/unit
Obtain an extra help in the laboratory of your faction that would make your journey easier.
*Radar- Reveal the location of your enemies
*Mr. Handy- Great robot with a big amount of life and damage, that will lend you a hand in the fight.
* Radar- Reveal the location of your enemies
* Mr. Handy- Great robot with a big amount of life and damage, that will lend you a hand in the fight.

## Quests
Complete the quests at the beginning of the game to receive a Mr. Handy totally free.
Complete the quests at the beginning of the game to receive a Mr. Handy totally for free.

### Debug
In debug mode you will be able to see the path the player follows and how it does so.
Expand All @@ -51,7 +51,7 @@ In debug mode you will be able to see the path the player follows and how it doe
* spawn gatherer/melee/ranged/army - spawns 1 unit of the selected type or an army of 10 melee and 10 ranged
* win - automatically win the game
* lose - automatically lose the game
* fog of war - active/desactive the fog of war
* fog_of_war - enable/disable the fog of war

## Team

Expand Down

0 comments on commit 5985589

Please sign in to comment.