Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Module Materials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hexboard-games
Module Materials
Commits
0f0908b9
Commit
0f0908b9
authored
6 years ago
by
Piers Williams
Browse files
Options
Downloads
Patches
Plain Diff
Updated to have some bolding of key points and an example of an EntityType
parent
5f62fc35
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slides/content/hack.tex
+75
-4
75 additions, 4 deletions
slides/content/hack.tex
with
75 additions
and
4 deletions
slides/content/hack.tex
+
75
−
4
View file @
0f0908b9
...
...
@@ -17,13 +17,15 @@
\end{frame}
\begin{frame}
{
Limitations
}
\note
{
\begin{itemize}
}
\begin{itemize}
[<+->]
\item
Games take place on a hex grid
\item
Games are turn-based
\item
No randomness
\item
No randomness
\note
{
\item
In fairness, it is the UI and AI that do not support it
}
\end{itemize}
\uncover
<4>
{
We originally designed it for Civilization style games, but it's much more general than that.
}
\note
{
\end{itemize}
}
\end{frame}
\section
{
Game Engine
}
...
...
@@ -39,18 +41,87 @@
\begin{frame}
{
Entity Types
}
\begin{itemize}
[<+->]
\item
Entity Types can extend other types
\item
Used to build entities
\item
Every entity has a type
\item
Used to
\textbf
{
define
}
entities
\item
\textbf
{
Every
}
entity has a type
\item
Entity Types can
\textbf
{
extend
}
other types
\item
Defines:
\begin{itemize}
\item
Graphics
\item
Actions
\item
Properties
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}
[fragile]
{
Example: EntityType
}
\begin{minted}
[breaklines,tabsize=4]
{
javascript
}
{
"name": "abstract
_
civilian",
"properties":
{
"movement": 1,
"health": 5,
"attackRange": 1,
"atkMelee": 1,
"ter-grass": 1
}
,
"cost":
{
"food": 10
}
,
\end{minted}
\end{frame}
\begin{frame}
[fragile]
{
Example: EntityType
}
\begin{minted}
[breaklines,tabsize=4]
{
javascript
}
"
_
actions": [
"Move",
"MeleeAttackAction",
"Build[farm]",
"BuildOnResource[lumber
_
mill:wood]",
"BuildOnResource[gold
_
mine:gold]",
"Build[marketplace]"
]
}
,
\end{minted}
\end{frame}
\begin{frame}
{
Entities
}
\begin{itemize}
[<+->]
\item
Have an entity type
\item
Has properties
\end{itemize}
\end{frame}
\begin{frame}
{
Actions
}
\begin{block}
{
Actions
}
\textbf
{
What
}
an Entity can do
\end{block}
\begin{itemize}
[<+->]
\item
0 or more
\item
Parameterisable
\item
Inherited
\end{itemize}
\end{frame}
\begin{frame}
{
Orders
}
\begin{block}
{
Order
}
An order is
\textbf
{
generated
}
when an Action is used on a
\textbf
{
particular
}
location
\end{block}
\begin{itemize}
[<+->]
\item
What an Entity actually does in its turn
\item
Used to
\textbf
{
update
}
the game state
\item
Move Action
$
\rightarrow
$
\textbf
{
multiple
}
possible Move Orders
\end{itemize}
\end{frame}
\begin{frame}
{
Properties
}
\begin{itemize}
[<+->]
\item
String
$
\rightarrow
$
Integer mapping
\item
Used by default actions as well as custom ones
\item
Two sets per Entity
\item
Inherited
\end{itemize}
\end{frame}
\section
{
Example - Hexxagon
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment