Skip to content
This repository was archived by the owner on Feb 26, 2018. It is now read-only.

Commit 46a769b

Browse files
committed
Add README, screenshot and icons for package
1 parent 322942c commit 46a769b

File tree

6 files changed

+34
-3
lines changed

6 files changed

+34
-3
lines changed

Build/Module.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Description>This template provides a 2D platformer written in Protogame. This package can only be used with Protobuild.</Description>
77
<LicenseUrl>https://opensource.org/licenses/MIT</LicenseUrl>
88
<ProjectUrl>https://protogame.org/</ProjectUrl>
9+
<IconUrl>https://raw.githubusercontent.com/RedpointGames/Protogame.Template.Platformer/master/icon.png</IconUrl>
910
<GitRepositoryUrl>https://github.com/RedpointGames/Protogame.Template.Platformer</GitRepositoryUrl>
1011
<DefaultAction>resync</DefaultAction>
1112
<GenerateNuGetRepositories>true</GenerateNuGetRepositories>

PROJECT_NAME/Entities/Dirt.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class Dirt : Entity, ITileEntity
1212

1313
public int TX { get; set; }
1414
public int TY { get; set; }
15+
public bool AppliedTilesetSettings { get; set; }
1516
public IAssetReference<TilesetAsset> Tileset { get; set; }
1617

1718
public Dirt(ITileUtilities tileUtilities, float x, float y, int tx, int ty)

PROJECT_NAME/PROJECT_SAFE_NAMEModule.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public void Load(IKernel kernel)
1010
{
1111
kernel.Bind<IEntityFactory>().ToFactory();
1212

13-
kernel.Bind<ISolidEntity>().To<Solid>();
14-
kernel.Bind<ITileEntity>().To<Dirt>().Named("Dirt");
15-
kernel.Bind<IEntity>().To<Spawn>().Named("Spawn");
13+
kernel.Bind<ISolidEntity>().To<Solid>().AllowManyPerScope();
14+
kernel.Bind<ITileEntity>().To<Dirt>().Named("Dirt").AllowManyPerScope();
15+
kernel.Bind<IEntity>().To<Spawn>().Named("Spawn").AllowManyPerScope();
1616

1717
// TODO: Define an event binder suitable for mapping mobile input to the game.
1818
kernel.Bind<IEventBinder<IGameContext>>().To<DesktopEventBinder>();

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Protogame "Platformer" Template
2+
================================
3+
4+
This template implements a basic 2D platformer in Protogame. It covers the following topics:
5+
6+
- How to create non-componentized entities
7+
- How to play audio
8+
- How to perform collision detection and movement in a platformer
9+
- How to load Ogmo editor levels
10+
- How to bind events to actions
11+
- How to implement the spawner pattern
12+
13+
Getting Started
14+
------------------
15+
16+
This template is available in the Protobuild Manager, which provides a graphical interface to create projects.
17+
18+
Alternatively, you can create this template from the command-line with:
19+
20+
```
21+
Protobuild.exe --start https-git://www.github.com/RedpointGames/Protogame.Platformer.Asteroids
22+
```
23+
24+
Just download [Protobuild.exe](https://github.com/Protobuild/Protobuild/raw/master/Protobuild.exe) and place it in an empty folder where you want to create your project.
25+
26+
Screenshot
27+
--------------
28+
29+
![Screenshot](screenshot.png "Screenshot")

icon.png

756 Bytes
Loading

screenshot.png

9.09 KB
Loading

0 commit comments

Comments
 (0)