Skip to content

Commit

Permalink
Updating source code for 0.1.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Mosior committed Mar 16, 2023
1 parent 4047de6 commit b245981
Show file tree
Hide file tree
Showing 39 changed files with 15,925 additions and 383 deletions.
7 changes: 2 additions & 5 deletions app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module Main (main) where

import Graphics.Map.Map
import Application.App

import Graphics.Gloss

main :: IO ()
main = do
createinitmap <- initmap
display window black createinitmap
main = runPacMan
33 changes: 26 additions & 7 deletions hs-pac-man.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ source-repository head

library
exposed-modules:
Application
Game.Ghosts.Algo.AStar.Common
Application.App
Application.HandleKeys
Application.RenderGS
Application.UpdateGS
Game.GameData.Tile
Game.Ghosts.Algo.AStar.Default.Blinky
Game.Ghosts.Algo.AStar.Default.Clyde
Game.Ghosts.Algo.AStar.Default.Inky
Expand All @@ -40,23 +43,30 @@ library
Game.Ghosts.Algo.AStar.Tiles.AllTileDataAStar
Game.Ghosts.Algo.AStar.Tiles.Default
Game.Ghosts.Algo.AStar.Tiles.Definition
Game.Ghosts.GhostCoorToCookieCoor
Game.Ghosts.Movement.Blinky
Game.Ghosts.Movement.Clyde
Game.Ghosts.Movement.Inky
Game.Ghosts.Movement.Pinky
Game.Initial.Definition
Game.Initial.Level1
Game.Initial.Level2_4
Game.Initial.Level5_All
Game.Pacman.Movement
Game.Pacman.PacmanCoorToCookieCoor
Game.Pacman.Tile
Game.Types
Graphics.Map.Dynamic.Cookies.AllCookies
Graphics.Map.Dynamic.Cookies.Common
Graphics.Map.Dynamic.Cookies.Definition
Graphics.Map.Dynamic.Cookies.InitialCookies
Graphics.Map.Dynamic.Cookies.DrawCookies
Graphics.Map.Dynamic.Ghosts.BlinkyStart
Graphics.Map.Dynamic.Ghosts.ClydeStart
Graphics.Map.Dynamic.Ghosts.Definition
Graphics.Map.Dynamic.Ghosts.InkyStart
Graphics.Map.Dynamic.Ghosts.PinkyStart
Graphics.Map.Dynamic.Pacman.Definition
Graphics.Map.Dynamic.Pacman.PacmanStart
Graphics.Map.Map
Graphics.Map.Static.Borders.Common
Graphics.Map.Static.Borders.InnerOuterBorder
Graphics.Map.Static.Borders.OuterOuterBorder
Expand All @@ -69,6 +79,7 @@ library
Graphics.Map.Static.Tiles.AllTileData
Graphics.Map.Static.Tiles.Default
Graphics.Map.Static.Tiles.Definition
Graphics.Map.Static.Tiles.GhostHouse.AllTileData
Graphics.Map.Static.Tiles.TileToCookieCoor
Graphics.Map.Static.Walls.Common
Graphics.Map.Static.Walls.Wall1
Expand All @@ -90,6 +101,12 @@ library
Graphics.Map.Static.Walls.Wall7
Graphics.Map.Static.Walls.Wall8
Graphics.Map.Static.Walls.Wall9
Rendering.GhostHouse.GhostHouseStart
Rendering.GhostHouse.StartingLoop.Clyde
Rendering.GhostHouse.StartingLoop.Definition
Rendering.GhostHouse.StartingLoop.Inky
Rendering.GhostHouse.StartingLoop.Pinky
Rendering.GhostHouse.StartingPositions
other-modules:
Paths_hs_pac_man
hs-source-dirs:
Expand Down Expand Up @@ -126,6 +143,7 @@ library
Strict
TupleSections
TypeApplications
TypeFamilies
TypeFamilyDependencies
TypeOperators
TypeSynonymInstances
Expand All @@ -143,11 +161,11 @@ library
, bytestring
, containers
, gloss
, iris
, jose
, lens
, pqueue
, servant
, stm
, websockets
, wuss
default-language: Haskell2010
Expand Down Expand Up @@ -190,6 +208,7 @@ executable hs-pac-man
Strict
TupleSections
TypeApplications
TypeFamilies
TypeFamilyDependencies
TypeOperators
TypeSynonymInstances
Expand All @@ -208,11 +227,11 @@ executable hs-pac-man
, containers
, gloss
, hs-pac-man
, iris
, jose
, lens
, pqueue
, servant
, stm
, websockets
, wuss
default-language: Haskell2010
Expand All @@ -233,11 +252,11 @@ test-suite hs-pac-man-test
, containers
, gloss
, hs-pac-man
, iris
, jose
, lens
, pqueue
, servant
, stm
, websockets
, wuss
default-language: Haskell2010
4 changes: 3 additions & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ dependencies:
- bytestring
- containers
- gloss
- iris
- jose
- lens
- pqueue
- stm
- servant
- websockets
- wuss
Expand Down Expand Up @@ -80,6 +80,7 @@ library:
- Strict
- TupleSections
- TypeApplications
- TypeFamilies
- TypeFamilyDependencies
- TypeOperators
- TypeSynonymInstances
Expand Down Expand Up @@ -126,6 +127,7 @@ executables:
- Strict
- TupleSections
- TypeApplications
- TypeFamilies
- TypeFamilyDependencies
- TypeOperators
- TypeSynonymInstances
Expand Down
9 changes: 0 additions & 9 deletions src/Application.hs

This file was deleted.

31 changes: 31 additions & 0 deletions src/Application/App.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module Application.App where

import Application.HandleKeys
import Application.UpdateGS
import Application.RenderGS
import Game.Initial.Definition
import Game.Initial.Level1
import Game.Initial.Level2_4
import Game.Initial.Level5_All

import Control.Monad
import Graphics.Gloss.Interface.IO.Game


fps :: Int
fps = 60

runPacMan :: IO ()
runPacMan = do
--Initialize starting game state.
startinggamestate <- initialgamestatelevel1
--Run game loop.
playIO window
black
fps
startinggamestate
renderGS
handleKeys
updateGS
--createinitmap <- initmap
--display window black createinitmap
Loading

0 comments on commit b245981

Please sign in to comment.