Skip to content

Commit

Permalink
Demo game- fix lamp post hit tests
Browse files Browse the repository at this point in the history
Now that the parallax hit testing is working, made the lamp posts
hotspots with pixel perfect hit tests.
  • Loading branch information
tzachshabtay committed Mar 21, 2018
1 parent 96ebb70 commit af498eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Demo/DemoQuest/Rooms/DarsStreet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ private async Task addLampPosts(IGameFactory factory)

for (int index = 0; index < numLampPosts; index++)
{
IObject lampPost = factory.Object.GetObject("Lamp Post " + index, _room);
IObject lampPost = factory.Object.GetAdventureObject("Lamp Post " + index, _room);
lampPost.DisplayName = "Lamp Post";
lampPost.IsPixelPerfect = true;
lampPost.X = 200f * index + 30f;
lampPost.Y = -130f;
lampPost.RenderLayer = parallaxLayer;
Expand Down

0 comments on commit af498eb

Please sign in to comment.