-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit debdcca
Showing
10 changed files
with
535 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
# The following command works for downloading when using Git for Windows: | ||
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | ||
# | ||
# Download this file using PowerShell v3 under Windows with the following comand: | ||
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore | ||
# | ||
# or wget: | ||
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
[Rr]elease/ | ||
x64/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
# build folder is nowadays used for build scripts and should not be ignored | ||
#build/ | ||
|
||
# NuGet Packages | ||
*.nupkg | ||
# The packages folder can be ignored because of Package Restore | ||
**/packages/* | ||
# except build/, which is used as an MSBuild target. | ||
!**/packages/build/ | ||
# Uncomment if necessary however generally it will be regenerated when needed | ||
#!**/packages/repositories.config | ||
|
||
# MSTest test Results | ||
[Tt]est[Rr]esult*/ | ||
[Bb]uild[Ll]og.* | ||
|
||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.tmp_proj | ||
*.log | ||
*.vspscc | ||
*.vssscc | ||
.builds | ||
*.pidb | ||
*.log | ||
*.scc | ||
|
||
# OS generated files # | ||
.DS_Store* | ||
Icon? | ||
|
||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opensdf | ||
*.sdf | ||
*.cachefile | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
*.vspx | ||
|
||
# Guidance Automation Toolkit | ||
*.gpState | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper*/ | ||
*.[Rr]e[Ss]harper | ||
|
||
# TeamCity is a build add-in | ||
_TeamCity* | ||
|
||
# DotCover is a Code Coverage Tool | ||
*.dotCover | ||
|
||
# NCrunch | ||
*.ncrunch* | ||
.*crunch*.local.xml | ||
|
||
# Installshield output folder | ||
[Ee]xpress/ | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish/ | ||
|
||
# Publish Web Output | ||
*.Publish.xml | ||
|
||
# Windows Azure Build Output | ||
csx | ||
*.build.csdef | ||
|
||
# Windows Store app package directory | ||
AppPackages/ | ||
|
||
# Others | ||
*.Cache | ||
ClientBin/ | ||
[Ss]tyle[Cc]op.* | ||
~$* | ||
*~ | ||
*.dbmdl | ||
*.[Pp]ublish.xml | ||
*.pfx | ||
*.publishsettings | ||
modulesbin/ | ||
tempbin/ | ||
|
||
# EPiServer Site file (VPP) | ||
AppData/ | ||
|
||
# RIA/Silverlight projects | ||
Generated_Code/ | ||
|
||
# Backup & report files from converting an old project file to a newer | ||
# Visual Studio version. Backup files are not needed, because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
UpgradeLog*.htm | ||
|
||
# vim | ||
*.txt~ | ||
*.swp | ||
*.swo | ||
|
||
# Temp files when opening LibreOffice on ubuntu | ||
.~lock.* | ||
|
||
# svn | ||
.svn | ||
|
||
# CVS - Source Control | ||
**/CVS/ | ||
|
||
# Remainings from resolving conflicts in Source Control | ||
*.orig | ||
|
||
# SQL Server files | ||
**/App_Data/*.mdf | ||
**/App_Data/*.ldf | ||
**/App_Data/*.sdf | ||
|
||
|
||
#LightSwitch generated files | ||
GeneratedArtifacts/ | ||
_Pvt_Extensions/ | ||
ModelManifest.xml | ||
|
||
# ========================= | ||
# Windows detritus | ||
# ========================= | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Mac desktop service store files | ||
.DS_Store | ||
|
||
# SASS Compiler cache | ||
.sass-cache | ||
|
||
# Visual Studio 2014 CTP | ||
**/*.sln.ide | ||
|
||
# Visual Studio temp something | ||
.vs/ | ||
|
||
# dotnet stuff | ||
project.lock.json | ||
|
||
# VS 2015+ | ||
*.vc.vc.opendb | ||
*.vc.db | ||
|
||
# Rider | ||
.idea/ | ||
|
||
# Visual Studio Code | ||
.vscode/ | ||
|
||
# Output folder used by Webpack or other FE stuff | ||
**/node_modules/* | ||
**/wwwroot/* | ||
|
||
# SpecFlow specific | ||
*.feature.cs | ||
*.feature.xlsx.* | ||
*.Specs_*.html | ||
|
||
##### | ||
# End of core ignore list, below put you custom 'per project' settings (patterns or path) | ||
##### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Game Jam: SadConsole Sample | ||
|
||
A sample game project utilizing SadConsole and MonoGame, based on the `ansi|ware` SadConsole v8 tutorials. | ||
|
||
# Purpose | ||
The project is intended as a starter game template to be used at the `Forse Game Jam, November 2021`. | ||
|
||
# How to run the game | ||
`dotnet run` to compile and run the game | ||
|
||
# Controls | ||
Move around: `Arrow keys 🔼 🔽 ◀ ▶` | ||
|
||
Full screen: `F5` | ||
|
||
# Credits | ||
The project is a result of blindly following the the great `ansi|ware` tutorials, pt 1 through 5. | ||
|
||
Sources: https://ansiware.com/ | ||
|
||
Tutorial pt 1: https://ansiware.com/tutorial-part-1-preface-and-hello-world-sadconsole-v8/ | ||
|
||
Tutorial pt 2: https://ansiware.com/tutorial-part-2-player-creation-and-display-v8/ | ||
|
||
Tutorial pt 3: https://ansiware.com/tutorial-part-3-movement-and-keyboard-input-v8/ | ||
|
||
Tutorial pt 4: https://ansiware.com/tutorial-part-4-create-a-room-v8/ | ||
|
||
Tutorial pt 5: https://ansiware.com/tutorial-part-5-actors-and-tiles-v8/ | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.30114.105 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameJamSadConsoleSample", "GameJamSadConsoleSample\GameJamSadConsoleSample.csproj", "{8CDD0893-0D34-4F77-98B0-3324E3EEE0C0}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{8CDD0893-0D34-4F77-98B0-3324E3EEE0C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8CDD0893-0D34-4F77-98B0-3324E3EEE0C0}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8CDD0893-0D34-4F77-98B0-3324E3EEE0C0}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8CDD0893-0D34-4F77-98B0-3324E3EEE0C0}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using Microsoft.Xna.Framework; | ||
|
||
namespace GameJamSadConsoleSample | ||
{ | ||
public abstract class Actor : SadConsole.Entities.Entity | ||
{ | ||
private int _health; | ||
private int _maxHealth; | ||
|
||
public int Health | ||
{ | ||
get | ||
{ | ||
return _health; | ||
} | ||
set | ||
{ | ||
_health = value; | ||
} | ||
} | ||
|
||
public int MaxHealth | ||
{ | ||
get | ||
{ | ||
return _maxHealth; | ||
} | ||
set | ||
{ | ||
_maxHealth = value; | ||
} | ||
} | ||
|
||
protected Actor(Color foreground, Color background, int glyph, int width=1, int height=1) : base(width, height) | ||
{ | ||
Animation.CurrentFrame[0].Foreground = foreground; | ||
Animation.CurrentFrame[0].Background = background; | ||
Animation.CurrentFrame[0].Glyph = glyph; | ||
} | ||
|
||
public bool MoveBy(Point positionChange) | ||
{ | ||
if (GameLoop.IsTileWalkable(Position + positionChange)) | ||
{ | ||
Position += positionChange; | ||
return true; | ||
} | ||
else | ||
return false; | ||
} | ||
|
||
public bool MoveTo(Point newPosition) | ||
{ | ||
Position = newPosition; | ||
return true; | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/GameJamSadConsoleSample/GameJamSadConsoleSample.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<RootNamespace>GameJamSadConsoleSample</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" /> | ||
<PackageReference Include="SadConsole" Version="8.99.3" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.