ai for simple 2d games
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 PresentationTRANSCRIPT
![Page 1: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/1.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/2.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/3.jpg)
The TokensThe Tokens
Power UpsPower Ups Fake Power UpsFake Power Ups CurseCurse ItemsItems Attack tokensAttack tokens
![Page 4: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/4.jpg)
Obstacle Cathegories.Obstacle Cathegories.
Indestructible.Indestructible. Destructible.Destructible. Movable.Movable.
![Page 5: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/5.jpg)
GUIGUI
Life/energy Life/energy indicatorsindicators
Armour/weapon Armour/weapon iconsicons
Item barItem bar AttacksAttacks
![Page 6: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/6.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/7.jpg)
Game AIGame AI
Path Finding – A*Path Finding – A* Decision Making – State MachineDecision Making – State Machine
![Page 8: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/8.jpg)
Earliest Tech Sample Earliest Tech Sample Picture.Picture.
![Page 9: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/9.jpg)
Early In Game Picture.Early In Game Picture.
![Page 10: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/10.jpg)
New In Game PictureNew In Game Picture
![Page 11: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/11.jpg)
Technical DetailsTechnical Details
Graphics – OpenGL.Graphics – OpenGL. File handling – text files.File handling – text files.
![Page 12: AI for Simple 2D Games](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/12.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/13.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/14.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/15.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062408/568134af550346895d9bc623/html5/thumbnails/16.jpg)
QuestionsQuestions??