ai for simple 2d games

16
AI for Simple 2D Games AI for Simple 2D Games Game titel: Game titel: Legend of Legend of Dragonia Dragonia Peter Hultgren Peter Hultgren

Upload: len-schroeder

Post on 02-Jan-2016

37 views

Category:

Documents


0 download

DESCRIPTION

AI for Simple 2D Games. Game titel: Legend of Dragonia Peter Hultgren. Game Idea. Collect tokens to increase power. Defeat the opponents with projectiles and traps. Avoid traps and obstacles. Three classes with different powers. The Tokens. Power Ups Fake Power Ups Curse Items - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: AI for Simple 2D Games

AI for Simple 2D GamesAI for Simple 2D Games

Game titel: Game titel: Legend of Legend of DragoniaDragonia

Peter HultgrenPeter Hultgren

Page 2: AI for Simple 2D Games

Game IdeaGame Idea

Collect tokens to increase power.Collect tokens to increase power. Defeat the opponents with Defeat the opponents with

projectiles and traps.projectiles and traps. Avoid traps and obstacles.Avoid traps and obstacles. Three classes with different Three classes with different

powers.powers.

Page 3: AI for Simple 2D Games

The TokensThe Tokens

Power UpsPower Ups Fake Power UpsFake Power Ups CurseCurse ItemsItems Attack tokensAttack tokens

Page 4: AI for Simple 2D Games

Obstacle Cathegories.Obstacle Cathegories.

Indestructible.Indestructible. Destructible.Destructible. Movable.Movable.

Page 5: AI for Simple 2D Games

GUIGUI

Life/energy Life/energy indicatorsindicators

Armour/weapon Armour/weapon iconsicons

Item barItem bar AttacksAttacks

Page 6: AI for Simple 2D Games

ClassesClasses

Wizard – Ranged Combat.Wizard – Ranged Combat. Knight – Meele Combat.Knight – Meele Combat. Ranger – Traps/Ranged Combat.Ranger – Traps/Ranged Combat.

Page 7: AI for Simple 2D Games

Game AIGame AI

Path Finding – A*Path Finding – A* Decision Making – State MachineDecision Making – State Machine

Page 8: AI for Simple 2D Games

Earliest Tech Sample Earliest Tech Sample Picture.Picture.

Page 9: AI for Simple 2D Games

Early In Game Picture.Early In Game Picture.

Page 10: AI for Simple 2D Games

New In Game PictureNew In Game Picture

Page 11: AI for Simple 2D Games

Technical DetailsTechnical Details

Graphics – OpenGL.Graphics – OpenGL. File handling – text files.File handling – text files.

Page 12: AI for Simple 2D Games

File handlingFile handling

Data to storeData to store Data formatData format StructureStructure

<Rows><Columns><Rows><Columns>

<tile11, tile12……….><tile11, tile12……….><tile21, tile22……….><tile21, tile22……….><etc…><etc…>

<Amount of obstacles><Amount of obstacles>

<obstacle1 location.><obstacle1 location.><obstacle2 location.><obstacle2 location.><etc…><etc…>

<Amount of start locations><Amount of start locations>

<start1 location.><start1 location.><start2 location.><start2 location.><etc…><etc…>

Page 13: AI for Simple 2D Games

Things Cut due to lack Things Cut due to lack of timeof time Sound.Sound. Friendly Fire.Friendly Fire. AI Optimization / Learning AI Optimization / Learning

algorithms.algorithms. Animations.Animations.

Page 14: AI for Simple 2D Games

Things that went bad.Things that went bad.

Badly planned game engine...Badly planned game engine... Use of threads.Use of threads. Started working on the AI a bit Started working on the AI a bit

late.late. The sprites took way more time to The sprites took way more time to

draw than expected…draw than expected… Smaller memory leak.Smaller memory leak.

Page 15: AI for Simple 2D Games

Things that went good.Things that went good.

Player.Player. The AI can win.The AI can win. Tokens spawns as intended.Tokens spawns as intended. Obstacles works as intended (at Obstacles works as intended (at

least for the player).least for the player).

Page 16: AI for Simple 2D Games

QuestionsQuestions??