+ All Categories
Home > Entertainment & Humor > Building a game in a day

Building a game in a day

Date post: 06-May-2015
Category:
Upload: phillip-trelford
View: 3,920 times
Download: 1 times
Share this document with a friend
Description:
Presentation to F#unctional Londoners Meetup group on cross platform game development with F# & MonoGame, covering games built in a day at the GameCraft game jams.
Popular Tags:
19
BUILDING A GAME IN A DAY Phillip Trelford, F#unctional Londoners, 2013
Transcript
Page 1: Building a game in a day

BUILDING A GAME IN A DAYPhillip Trelford, F#unctional Londoners, 2013

Page 2: Building a game in a day

DON’T GAMES PROGRAMMERS USE C++?

YES

Engines Graphics Sound Physics

NO

Scripts AI Interaction Tools

Page 3: Building a game in a day

DO THEY REGRET IT?

Veteran Games Programmer John Carmack extolling the virtues of functional programming at QuakeCon

Page 5: Building a game in a day

F# FOR PROFIT

Functional-first programming for:

Time to Market

Efficiency

Correctness

Complexity

Page 6: Building a game in a day

F# TESTIMONIALS

order of magnitude increase in productivity, GameSys

performance is 10× better than the C++ that it replaces, Aviva

Units of measure reduced the chance of errors dramatically, Bing

F# is the night vision goggles I need when I go into the dark and attempt to solve previously unsolved problems,

Microsoft

Page 7: Building a game in a day

PORTABLE IS DEAD, LONG LIVE MOBILE

Android games now out-selling games for Sony and Nintendo handhelds

IDC and App Annie's study suggests that iOS and Android combined now generate four times the revenues of dedicated gaming handhelds

- Guardian

Page 8: Building a game in a day

CROSS PLATFORM GAME ENGINES

Designer-orientated

Unity (C#, JavaScript, Boo)

PhoneGap (JavaScript)

Code-orientated

XNA/MonoGame (C#, F#)

PyGame (Python)

Love (Lua)

DirectX (C++)

Page 9: Building a game in a day

RETRO GAME (XNA + F#) 2007

Page 10: Building a game in a day

XBLA: PATH OF GO (XNA + F#)

Page 11: Building a game in a day

XNA IS DEAD

Hacking XNA to run on VS 2012

Download VS2010 (Express etc.)

Install XNA

Hack XML config file

Install Xbox Live (Windows 8)

Page 12: Building a game in a day

LONG LIVE MONOGAME

Develop in Visual Studio (PC) or Xamarin Studio (Mac & PC)

Cross Platform iOS Android Windows Mac OSX Linux Playstation Mobile Ouya

Page 13: Building a game in a day

GAMES PROGRAMMING 101

Game

Routines(Co)

React

Render

Page 14: Building a game in a day

COROUTINE ZOMBIES

Pseudo Code

random_pause 10

while not dead

wait_until_in_range 50.0

home_in_on_target 10

F#

yield! random_pause 10

while true do

yield! wait_range 50

yield! home_in 10

 

Page 15: Building a game in a day

FLINT EASTWOOD (F# + SILVERLIGHT)

Dublin GameCraft 2012

6 hours

Page 16: Building a game in a day

THE PRISMER

Kenneth Heine Berle

Neil Danson

Quinton Coetzee

Anton Semenov

Malcom Knight

Thomas Trelford

Phillip Trelford

Page 17: Building a game in a day

TOOLING

VS2012 + F# + XNA

Paint.Net

Gimp

MusicMaker Jam

Bxfr.Net (Sound effects)

DropBox

Page 18: Building a game in a day

11 HOURS LATER

Making games – fun for all the family

Page 19: Building a game in a day

QUESTIONS?

Twitter:

@ptrelford

Blog:

http://trelford.com/blog

F# Foundation:

http://fsharp.org


Recommended