Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F131276
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
44 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/1.png b/1.png
new file mode 100644
index 0000000..7f36f65
Binary files /dev/null and b/1.png differ
diff --git a/Bullet.cpp b/Bullet.cpp
new file mode 100644
index 0000000..16c392a
--- /dev/null
+++ b/Bullet.cpp
@@ -0,0 +1,37 @@
+#include "Bullet.h"
+
+Bullet::Bullet(int X, int Y,int S, bool friendly)
+{
+ x_pos = X;
+ y_pos = Y;
+ status = 0;
+ speed = S;
+ isFriendly = friendly;
+}
+
+Bullet::Bullet(){}
+
+Bullet::~Bullet(){}
+
+void Bullet::UpdateBulletPos(Spaceship &s)
+{
+ x_pos = s.x_pos;
+ y_pos = s.y_pos;
+}
+
+void Bullet::Updatebulletpos(Enemy &e)
+{
+ x_pos = e.x_pos;
+ y_pos = e.y_pos;
+}
+
+void Bullet::Increment()
+{
+ if (isFriendly)
+ y_pos -= speed;
+ else
+ y_pos += speed;
+
+ if (y_pos<10 || y_pos >height-10) //if bullet reaches top or bottom
+ status = 0;
+}
\ No newline at end of file
diff --git a/Bullet.h b/Bullet.h
new file mode 100644
index 0000000..465614a
--- /dev/null
+++ b/Bullet.h
@@ -0,0 +1,21 @@
+#pragma once
+#include "Spaceship.h"
+#include "Global.h"
+#include "Enemy.h"
+
+class Bullet {
+
+public:
+ int x_pos;
+ int y_pos;
+ int radius;
+ int status;
+ int speed;
+ bool isFriendly;
+ Bullet(int , int , int , bool );
+ Bullet();
+ ~Bullet();
+ void Increment();
+ void UpdateBulletPos(Spaceship&);
+ void Updatebulletpos(Enemy&);
+};
\ No newline at end of file
diff --git a/Bullet.png b/Bullet.png
new file mode 100644
index 0000000..0414e8b
Binary files /dev/null and b/Bullet.png differ
diff --git a/Enemy.cpp b/Enemy.cpp
new file mode 100644
index 0000000..25e9d39
--- /dev/null
+++ b/Enemy.cpp
@@ -0,0 +1,47 @@
+#include "Enemy.h"
+
+Enemy::Enemy()
+{
+}
+
+Enemy::~Enemy()
+{
+}
+
+Enemy::Enemy(int x, int y, int rb, int lb, int yb)
+{
+ x_pos = x;
+ y_pos = y;
+ rightbound = rb;
+ leftbound = lb;
+ ybound = yb;
+ active = true;
+ speed = 3;
+ boxright = 60;
+ boxleft= 10;
+ boxheight = 15;
+}
+
+void Enemy::set(int x, int y, int rb, int lb, int yb)
+{
+ x_pos = x;
+ y_pos = y;
+ rightbound = rb;
+ leftbound = lb;
+ ybound = yb;
+ active = true;
+ speed = 3;
+ boxright = 60;
+ boxleft = 10;
+ boxheight = 15;
+}
+
+void Enemy::Move()
+{
+ x_pos += speed;
+
+ if (x_pos >= rightbound)
+ speed *= -1;
+ if (x_pos < leftbound)
+ speed *= -1;
+}
\ No newline at end of file
diff --git a/Enemy.h b/Enemy.h
new file mode 100644
index 0000000..c080401
--- /dev/null
+++ b/Enemy.h
@@ -0,0 +1,30 @@
+#pragma once
+
+using namespace std;
+#include "Global.h"
+
+class Enemy
+{
+public:
+ Enemy();
+ ~Enemy();
+ Enemy(int, int, int, int, int);
+ void set(int, int, int, int, int);
+ void Move();
+
+ int x_pos;
+ int y_pos;
+ bool active;
+ int speed;
+
+ //movement bounds
+ int rightbound;
+ int leftbound;
+ int ybound;
+
+ //collision detection variables
+ int boxright;
+ int boxleft;
+ int boxheight;
+};
+
diff --git a/Global.h b/Global.h
new file mode 100644
index 0000000..c8e878a
--- /dev/null
+++ b/Global.h
@@ -0,0 +1,14 @@
+#pragma once
+
+const int width = 1024;
+const int height = 768;
+const int sp = 120; //spacing between sprites
+const int NUM_ENEMY = 5;
+
+
+class Global
+{
+public:
+
+};
+
diff --git a/Lazer.png b/Lazer.png
new file mode 100644
index 0000000..be8a79a
Binary files /dev/null and b/Lazer.png differ
diff --git a/SpaceInvadersTest.VC.opendb b/SpaceInvadersTest.VC.opendb
new file mode 100644
index 0000000..a238c9e
Binary files /dev/null and b/SpaceInvadersTest.VC.opendb differ
diff --git a/SpaceInvadersTest.sdf b/SpaceInvadersTest.sdf
new file mode 100644
index 0000000..a19d12e
Binary files /dev/null and b/SpaceInvadersTest.sdf differ
diff --git a/SpaceInvadersTest.sln b/SpaceInvadersTest.sln
new file mode 100644
index 0000000..6ff09bd
--- /dev/null
+++ b/SpaceInvadersTest.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SpaceInvadersTest", "SpaceInvadersTest.vcxproj", "{70C476C5-EF01-453C-9E01-6FACFE08D371}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {70C476C5-EF01-453C-9E01-6FACFE08D371}.Debug|Win32.ActiveCfg = Debug|Win32
+ {70C476C5-EF01-453C-9E01-6FACFE08D371}.Debug|Win32.Build.0 = Debug|Win32
+ {70C476C5-EF01-453C-9E01-6FACFE08D371}.Release|Win32.ActiveCfg = Release|Win32
+ {70C476C5-EF01-453C-9E01-6FACFE08D371}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/SpaceInvadersTest.v11.suo b/SpaceInvadersTest.v11.suo
new file mode 100644
index 0000000..5610245
Binary files /dev/null and b/SpaceInvadersTest.v11.suo differ
diff --git a/SpaceInvadersTest.vcxproj b/SpaceInvadersTest.vcxproj
new file mode 100644
index 0000000..29b5467
--- /dev/null
+++ b/SpaceInvadersTest.vcxproj
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{70C476C5-EF01-453C-9E01-6FACFE08D371}</ProjectGuid>
+ <RootNamespace>SpaceInvadersTest</RootNamespace>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v140</PlatformToolset>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v140</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>MultiByte</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Allegro_AddonImage>true</Allegro_AddonImage>
+ <Allegro_AddonTTF>true</Allegro_AddonTTF>
+ <Allegro_AddonPrimitives>true</Allegro_AddonPrimitives>
+ <Allegro_AddonDialog>true</Allegro_AddonDialog>
+ <Allegro_AddonFont>true</Allegro_AddonFont>
+ <Allegro_AddonColor>true</Allegro_AddonColor>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>allegro-5.0.10-monolith-md-debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="Spaceship.cpp" />
+ <ClCompile Include="Bullet.cpp" />
+ <ClCompile Include="Enemy.cpp" />
+ <ClCompile Include="Test.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="Spaceship.h" />
+ <ClInclude Include="Bullet.h" />
+ <ClInclude Include="Enemy.h" />
+ <ClInclude Include="Global.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ <Import Project="packages\AllegroDeps.1.4.0.0\build\native\AllegroDeps.targets" Condition="Exists('packages\AllegroDeps.1.4.0.0\build\native\AllegroDeps.targets')" />
+ <Import Project="packages\Allegro.5.2.0.0\build\native\Allegro.targets" Condition="Exists('packages\Allegro.5.2.0.0\build\native\Allegro.targets')" />
+ </ImportGroup>
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+ <PropertyGroup>
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
+ </PropertyGroup>
+ <Error Condition="!Exists('packages\AllegroDeps.1.4.0.0\build\native\AllegroDeps.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\AllegroDeps.1.4.0.0\build\native\AllegroDeps.targets'))" />
+ <Error Condition="!Exists('packages\Allegro.5.2.0.0\build\native\Allegro.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Allegro.5.2.0.0\build\native\Allegro.targets'))" />
+ </Target>
+</Project>
\ No newline at end of file
diff --git a/SpaceInvadersTest.vcxproj.filters b/SpaceInvadersTest.vcxproj.filters
new file mode 100644
index 0000000..e5be763
--- /dev/null
+++ b/SpaceInvadersTest.vcxproj.filters
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+ </Filter>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+ <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
+ </Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="Test.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="Enemy.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="Bullet.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="Spaceship.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="Enemy.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="Bullet.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="Global.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="Spaceship.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/Spaceship.cpp b/Spaceship.cpp
new file mode 100644
index 0000000..a0849c0
--- /dev/null
+++ b/Spaceship.cpp
@@ -0,0 +1,38 @@
+#include "Spaceship.h"
+
+
+Spaceship::Spaceship(int x, int y)
+{
+ x_pos = x;
+ y_pos = y;
+ boxright = 60;
+ boxleft = 60;
+ boxheight = 15;
+ health = 100;
+}
+
+Spaceship::Spaceship() {}
+
+void Spaceship::MoveSpaceshipUp() //won't need
+{
+ if (y_pos >= 10)
+ y_pos = y_pos - 7;
+}
+
+void Spaceship::MoveSpaceshipDown() //won't need
+{
+ if (y_pos<height - 200)
+ y_pos = y_pos + 7;
+}
+
+void Spaceship::MoveSpaceshipLeft()//left bound
+{
+ if (x_pos >= 50)
+ x_pos = x_pos - 7;
+}
+
+void Spaceship::MoveSpaceshipRight() //right bound
+{
+ if (x_pos<width - 50)
+ x_pos = x_pos + 7;
+}
\ No newline at end of file
diff --git a/Spaceship.h b/Spaceship.h
new file mode 100644
index 0000000..4f237fb
--- /dev/null
+++ b/Spaceship.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include<allegro5\allegro.h>
+#include<allegro5\allegro_primitives.h>
+#include "Global.h"
+
+class Spaceship
+{
+public:
+ int x_pos;
+ int y_pos;
+ int boxright;
+ int boxleft;
+ int boxheight;
+ int health;
+
+ Spaceship(int, int);
+ Spaceship();
+ void MoveSpaceshipUp();
+ void MoveSpaceshipLeft();
+ void MoveSpaceshipDown();
+ void MoveSpaceshipRight();
+};
\ No newline at end of file
diff --git a/Test.cpp b/Test.cpp
new file mode 100644
index 0000000..7dacbe7
--- /dev/null
+++ b/Test.cpp
@@ -0,0 +1,260 @@
+#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") //no console window behind game window
+
+#include<allegro5\allegro.h>
+#include<allegro5\allegro_native_dialog.h>
+#include<allegro5\allegro_primitives.h>
+#include<allegro5\allegro_image.h>
+
+#include <string>
+
+#include "Enemy.h"
+#include "Spaceship.h"
+#include "Bullet.h"
+#include "Global.h"
+
+using namespace std;
+
+//GLOBALS
+enum KEYS {UP, DOWN, LEFT, RIGHT, SPACE};
+bool keys[5] = {false,false,false,false,false};
+
+//Initialise
+Spaceship a(width/2, height*4/5);
+Bullet b(a.x_pos, a.y_pos,20,true);
+Bullet c(0,0,10,false);
+Enemy arrEnem[NUM_ENEMY]; //array of objects
+
+
+int main(void)
+{
+ //5 random enemies for testing
+ arrEnem[0].set(width/2 - sp, 65, width-300 - sp ,250 - sp ,15); //left
+ arrEnem[1].set(width/2, 65, width - 300 ,250 ,15); //middle
+ arrEnem[2].set(width/2 + sp, 65, width-300 + sp ,250 + sp ,15); //right
+ arrEnem[3].set(width/2 - 2*sp, 65, width-300 - 2*sp,250 - 2*sp ,15);
+ arrEnem[4].set(width/2 + 2*sp, 65, width-300 + 2*sp,250 + 2*sp ,15);
+
+ c.isFriendly = false;
+ srand((unsigned)time(NULL));
+
+ //primitive variables
+ const int FPS = 60;
+ bool done = false;
+ bool redraw = true;
+
+ if(!al_init())
+ {
+ al_show_native_message_box(NULL,NULL,NULL,"Could not initialize allegro",NULL,NULL);
+ return -1;
+ }
+
+ //Allegro variables
+ ALLEGRO_DISPLAY *DISPLAY = NULL;
+ ALLEGRO_BITMAP *picShip = NULL;
+ ALLEGRO_BITMAP *picBullet = NULL;
+ ALLEGRO_BITMAP *picEnemy = NULL;
+ ALLEGRO_EVENT_QUEUE *TestQueue = NULL;
+ ALLEGRO_TIMER *timer = NULL;
+
+ //Allegro Module Init
+ al_init_image_addon();
+ al_set_new_window_position(400, 100); //set pos of game window
+ DISPLAY = al_create_display(width, height);
+ al_init_primitives_addon();
+ al_install_keyboard();
+
+ if (!DISPLAY)
+ {
+ al_show_native_message_box(NULL, NULL, NULL, "Could not initialize display", NULL, NULL);
+ return -1;
+ }
+
+ picBullet=al_load_bitmap("Lazer.png");
+ picShip =al_load_bitmap("player1.png");
+ picEnemy = al_load_bitmap("enemy.png");
+
+
+
+ al_convert_mask_to_alpha(picShip,al_map_rgb(0,0,0));
+ al_convert_mask_to_alpha(picEnemy, al_map_rgb(0, 0, 0));
+ al_convert_mask_to_alpha(picBullet, al_map_rgb(0, 0, 0));
+
+ timer=al_create_timer(1.0/FPS);
+
+ TestQueue= al_create_event_queue();
+ al_register_event_source(TestQueue,al_get_keyboard_event_source());
+ al_register_event_source(TestQueue,al_get_display_event_source(DISPLAY));
+ al_register_event_source(TestQueue,al_get_timer_event_source(timer));
+
+ al_start_timer(timer);
+
+ while (!done)
+ {
+
+ ALLEGRO_EVENT GETKEY;
+ al_wait_for_event(TestQueue, &GETKEY);
+
+ if (GETKEY.type == ALLEGRO_EVENT_DISPLAY_CLOSE) //will allow red X to close program
+ {
+ done = true;
+ }
+ else if (GETKEY.type == ALLEGRO_EVENT_TIMER)
+ {
+ redraw = true;
+ if (keys[UP])
+ a.MoveSpaceshipUp();
+ if (keys[DOWN])
+ a.MoveSpaceshipDown();
+ if (keys[LEFT])
+ a.MoveSpaceshipLeft();
+ if (keys[RIGHT])
+ a.MoveSpaceshipRight();
+ if (keys[SPACE]) //Spacebar will fire
+ b.status = 1;
+
+ for (int i = 0; i < NUM_ENEMY; i++) //collission detection ahead. Proceed with caution
+ {
+ if (b.status && arrEnem[i].active && b.isFriendly) //checks if enemy and bullet active
+ {
+ if (b.y_pos - 25 < arrEnem[i].y_pos + arrEnem[i].boxheight //checks if within box of enemy
+ && b.y_pos > arrEnem[i].y_pos - arrEnem[i].boxheight
+ && b.x_pos < arrEnem[i].x_pos + arrEnem[i].boxright
+ && b.x_pos > arrEnem[i].x_pos - arrEnem[i].boxleft)
+ {
+
+ b.status = 0; //bullet set to not active
+ arrEnem[i].active = false; //enemy set to not active
+ }
+ }
+ }
+
+ if (b.status == 0) //while bullet not active sets pos of ship as initial bullet pos
+ b.UpdateBulletPos(a);
+
+ //Enemy shooting back
+ int randomEnemy;
+
+ for (int i = 0; i < NUM_ENEMY; i++)
+ {
+ if (arrEnem[i].active && !c.status)
+ {
+ randomEnemy = rand() % NUM_ENEMY + 1;
+ if (randomEnemy == i)
+ {
+ c.Updatebulletpos(arrEnem[i]);
+ c.status = 1;
+ //break;
+ }
+
+ }
+ }
+ for (int i = 0; i < NUM_ENEMY; i++) //collission detection ahead. Proceed with caution
+ {
+ if (c.status && !c.isFriendly) //checks if enemy and bullet active
+ {
+ if (c.y_pos < a.y_pos + a.boxheight //checks if within box of enemy
+ && c.y_pos > a.y_pos - a.boxheight
+ && c.x_pos < a.x_pos + a.boxright
+ && c.x_pos > a.x_pos - a.boxleft)
+ {
+
+ c.status = 0; //bullet set to not active
+ a.health -= 10;
+ }
+ }
+ }
+ }
+
+
+ else if (GETKEY.type==ALLEGRO_EVENT_KEY_DOWN)
+ {
+ switch(GETKEY.keyboard.keycode)
+ {
+ case ALLEGRO_KEY_ESCAPE: //esc to end the game
+ done = true;
+ break;
+ case ALLEGRO_KEY_UP:
+ keys[UP] = true;
+ break;
+ case ALLEGRO_KEY_DOWN:
+ keys[DOWN] = true;
+ break;
+ case ALLEGRO_KEY_RIGHT:
+ keys[RIGHT] = true;
+ break;
+ case ALLEGRO_KEY_LEFT:
+ keys[LEFT] = true;
+ break;
+ case ALLEGRO_KEY_SPACE:
+ keys[SPACE]=true;
+ break;
+ }
+ }
+
+ else if (GETKEY.type == ALLEGRO_EVENT_KEY_UP)
+ {
+ switch (GETKEY.keyboard.keycode)
+ {
+ case ALLEGRO_KEY_UP:
+ keys[UP] = false;
+ break;
+ case ALLEGRO_KEY_DOWN:
+ keys[DOWN] = false;
+ break;
+ case ALLEGRO_KEY_RIGHT:
+ keys[RIGHT] = false;
+ break;
+ case ALLEGRO_KEY_LEFT:
+ keys[LEFT] = false;
+ break;
+ case ALLEGRO_KEY_SPACE:
+ keys[SPACE] = false;
+ break;
+ }
+ }
+
+ if (redraw && al_is_event_queue_empty(TestQueue)) //rendering
+ {
+ redraw = false;
+
+ if (b.status == 1) //if bullet still active
+ {
+ b.Increment(); //bullet will move pos
+ al_draw_bitmap(picBullet, b.x_pos, b.y_pos, 0); //redraw at new pos
+ }
+
+ if (c.status == 1)
+ {
+ c.Increment(); //bullet will move pos
+ al_draw_bitmap(picBullet, c.x_pos, c.y_pos, 0);
+ }
+ if (a.health > 0)
+ {
+ al_draw_bitmap(picShip, a.x_pos - 45, a.y_pos, 0);
+ }
+
+ for (int i = 0; i < NUM_ENEMY;i++)
+ {
+ if (arrEnem[i].active) //if enemy is active
+ {
+ arrEnem[i].Move(); //enemy pos will change
+ al_draw_bitmap(picEnemy, arrEnem[i].x_pos, arrEnem[i].y_pos, 0); //redraw at new pos
+ }
+ }
+
+
+ al_flip_display(); //flip display to show all drawn objects
+ al_clear_to_color(al_map_rgb(0, 0, 0)); //background colour
+ }
+ }
+
+ //Destroy allegro variables
+ al_destroy_event_queue(TestQueue);
+ al_destroy_timer(timer);
+ al_destroy_display(DISPLAY);
+ al_destroy_bitmap(picEnemy);
+ al_destroy_bitmap(picShip);
+ al_destroy_bitmap(picBullet);
+
+ return 0;
+}
\ No newline at end of file
diff --git a/allegro.log b/allegro.log
new file mode 100644
index 0000000..bb10550
--- /dev/null
+++ b/allegro.log
@@ -0,0 +1,189 @@
+system D wsystem.c:583 maybe_parent_dir [ 0.00094] Also searching C:\Users\Akshay\Documents\Visual Studio 2012\Projects\SpaceInvadersTest\
+system D wsystem.c:633 _al_win_safe_load_library [ 0.00177] PathFindOnPath found: C:\Windows\system32\d3d9.dll
+system D wsystem.c:544 load_library_at_path [ 0.00185] Calling LoadLibrary C:\Windows\system32\d3d9.dll
+system I wsystem.c:547 load_library_at_path [ 0.02890] Loaded C:\Windows\system32\d3d9.dll
+d3d I d3d_disp.cpp:696 _al_d3d_init_display [ 0.05709] Render-to-texture: 1
+system I system.c:252 al_install_system [ 0.05714] Allegro version: 5.0.10
+d3d I d3d_disp.cpp:1737 d3d_create_display_locked [ 0.05867] faux_fullscreen=0
+d3d D d3d_disp.cpp:1738 d3d_create_display_locked [ 0.05871] al_display=00733F38
+d3d D d3d_disp.cpp:1739 d3d_create_display_locked [ 0.05873] al_display->vt=00733E70
+d3d I d3d_display_formats.cpp:144 _al_d3d_generate_display_format_list [ 0.05960] found 64 format combinations
+display D display_settings.c:191 debug_display_settings [ 0.05963] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05965] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05966] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05967] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05968] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05970] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05971] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05972] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05973] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05974] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05975] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05976] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05977] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05978] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05979] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05980] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05981] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05982] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05983] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05984] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05985] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05986] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05987] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05991] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05992] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05993] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05994] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05995] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05996] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05997] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.05998] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.05999] Score is : 897
+display D display_settings.c:191 debug_display_settings [ 0.06000] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06001] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06003] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06004] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06005] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06006] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06007] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06008] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06010] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06011] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06012] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06013] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06014] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06015] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06016] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06017] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06018] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06019] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06020] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06022] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06022] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06024] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06025] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06026] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06027] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06028] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06029] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06030] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06031] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06032] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06033] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06034] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06035] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06036] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06037] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06038] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06039] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06041] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06041] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06043] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06044] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06045] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06046] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06047] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06048] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06049] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06050] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06051] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06052] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06053] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06054] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06055] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06056] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06058] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06059] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06060] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06061] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06062] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06063] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06064] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06065] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06066] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06067] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:506 _al_score_display_settings [ 0.06068] Score is : 769
+display D display_settings.c:191 debug_display_settings [ 0.06069] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06070] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06071] color: 32 (rgba 8880), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06072] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06073] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06074] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06075] color: 32 (rgba 8880), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06076] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06077] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06078] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06079] color: 32 (rgba 8880), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06081] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06082] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06083] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06084] color: 32 (rgba 8880), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06085] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06086] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06087] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06088] color: 16 (rgba 5650), depth: 0, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06089] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06092] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06093] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06094] color: 16 (rgba 5650), depth: 24, stencil: 8, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06095] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06096] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06097] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06098] color: 16 (rgba 5650), depth: 24, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06099] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06100] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06101] Single Buffer requirement not met.
+display D display_settings.c:191 debug_display_settings [ 0.06102] color: 16 (rgba 5650), depth: 16, stencil: 0, acc: 0000, samples: 0/0
+display D display_settings.c:377 _al_score_display_settings [ 0.06103] Single Buffer requirement not met.
+d3d D d3d_disp.cpp:1645 d3d_create_display_internals [ 0.06105] Trying format 0.
+d3d I d3d_disp.cpp:1326 d3d_display_thread_proc [ 0.06135] Chose a display format: 23
+d3d I d3d_disp.cpp:1395 d3d_display_thread_proc [ 0.06141] Normal window.
+d3d I d3d_disp.cpp:801 d3d_create_device [ 0.06954] Using no depth stencil buffer
+d3d D d3d_disp.cpp:866 d3d_create_device [ 0.08205] BeginScene succeeded in create_device
+d3d D d3d_disp.cpp:874 d3d_create_device [ 0.08210] Success
+d3d D d3d_disp.cpp:1668 d3d_create_display_internals [ 0.08212] Resumed after wait.
+d3d I d3d_disp.cpp:1701 d3d_create_display_internals [ 0.08216] Format 0 succeeded.
+d3d D d3d_disp.cpp:1724 d3d_create_display_internals [ 0.08218] Returning d3d_display: 00733F38
+d3d D d3d_disp.cpp:1749 d3d_create_display_locked [ 0.08219] al_display=00733F38
+d3d D d3d_disp.cpp:1750 d3d_create_display_locked [ 0.08220] al_display->vt=00733E70
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08565] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08568] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08569] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08570] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08571] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08572] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08573] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08573] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08574] Fake format
+d3d D d3d_disp.cpp:1174 real_choose_bitmap_format [ 0.08575] Alpha doesn't match
+d3d D d3d_disp.cpp:1181 real_choose_bitmap_format [ 0.08576] Adapter format is 23
+d3d D d3d_disp.cpp:1184 real_choose_bitmap_format [ 0.08577] Found a format
+d3d I d3d_disp.cpp:2283 _al_d3d_create_bitmap [ 0.08578] Chose bitmap format 9
+dtor D dtor.c:184 _al_register_destructor [ 0.08588] added dtor for object 0076E950, func 6A582595
+d3d D d3d_bmp.cpp:467 _al_d3d_sync_bitmap [ 0.08621] _al_d3d_sync_bitmap (system) ref count == 1
+d3d D d3d_bmp.cpp:473 _al_d3d_sync_bitmap [ 0.08625] _al_d3d_sync_bitmap (video) ref count == 1
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08843] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08846] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08848] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08850] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08851] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08853] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08854] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08856] Fake format
+d3d D d3d_disp.cpp:1166 real_choose_bitmap_format [ 0.08857] Fake format
+d3d D d3d_disp.cpp:1174 real_choose_bitmap_format [ 0.08859] Alpha doesn't match
+d3d D d3d_disp.cpp:1181 real_choose_bitmap_format [ 0.08860] Adapter format is 23
+d3d D d3d_disp.cpp:1184 real_choose_bitmap_format [ 0.08862] Found a format
+d3d I d3d_disp.cpp:2283 _al_d3d_create_bitmap [ 0.08863] Chose bitmap format 9
+dtor D dtor.c:184 _al_register_destructor [ 0.08884] added dtor for object 0076E390, func 6A582595
+d3d D d3d_bmp.cpp:467 _al_d3d_sync_bitmap [ 0.08941] _al_d3d_sync_bitmap (system) ref count == 1
+d3d D d3d_bmp.cpp:473 _al_d3d_sync_bitmap [ 0.08944] _al_d3d_sync_bitmap (video) ref count == 1
+d3d D d3d_bmp.cpp:467 _al_d3d_sync_bitmap [ 0.09248] _al_d3d_sync_bitmap (system) ref count == 1
+d3d D d3d_bmp.cpp:473 _al_d3d_sync_bitmap [ 0.09252] _al_d3d_sync_bitmap (video) ref count == 1
+dtor D dtor.c:184 _al_register_destructor [ 0.09345] added dtor for object 0076D350, func 6A5824D2
+dtor D dtor.c:184 _al_register_destructor [ 0.09348] added dtor for object 0076D490, func 6A5827A7
+d3d D d3d_bmp.cpp:467 _al_d3d_sync_bitmap [ 0.13121] _al_d3d_sync_bitmap (system) ref count == 1
+d3d D d3d_bmp.cpp:473 _al_d3d_sync_bitmap [ 0.13127] _al_d3d_sync_bitmap (video) ref count == 1
+d3d D d3d_bmp.cpp:467 _al_d3d_sync_bitmap [ 0.13163] _al_d3d_sync_bitmap (system) ref count == 1
+d3d D d3d_bmp.cpp:473 _al_d3d_sync_bitmap [ 0.13166] _al_d3d_sync_bitmap (video) ref count == 2
diff --git a/blank.png b/blank.png
new file mode 100644
index 0000000..24d2c16
Binary files /dev/null and b/blank.png differ
diff --git a/enemy.png b/enemy.png
new file mode 100644
index 0000000..812c41d
Binary files /dev/null and b/enemy.png differ
diff --git a/packages.config b/packages.config
new file mode 100644
index 0000000..279d4ce
--- /dev/null
+++ b/packages.config
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Allegro" version="5.2.0.0" targetFramework="native" />
+ <package id="AllegroDeps" version="1.4.0.0" targetFramework="native" />
+</packages>
\ No newline at end of file
diff --git a/player1.png b/player1.png
new file mode 100644
index 0000000..75ce1dc
Binary files /dev/null and b/player1.png differ
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jun 16, 12:09 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
70628
Default Alt Text
(44 KB)
Attached To
Mode
R72 DarthInvaders
Attached
Detach File
Event Timeline