# Untitled Maze Game (Pacman)

**URL:** <https://racket.discourse.group/t/untitled-maze-game-pacman/1838>\
**Category:** Show & Tell\
**Created:** [March 26, 2023, 1:44pm UTC](https://racket.discourse.group/t/untitled-maze-game-pacman/1838 "2023-03-26T13:44:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [March 26, 2023, 1:44pm UTC](https://racket.discourse.group/t/untitled-maze-game-pacman/1838/1 "2023-03-26T13:44:36Z")

</div>

Hi All,

At RacketFest I quickly showed a slide with a Pacman game.

 ![pacman](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/9/979e9c367fd78e0b75de671722bbbbb48681eb25.jpeg)

The game shows how to use Sketching to make a retro style game.

To get a consistent look, all drawing operations is redirected to a small bitmap of size 232 x 224  
that represents "the screen". The final step for each frame is then to the scale the bitmap.

An effort has been made in getting the behaviour of the ghosts right.  
The Pacman Dossier were a great source:

```
https://pacman.holenet.info/

```

So far the game only has one level - that's were you come in.

The level data is represented like this:

 ![image](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/0/0c496172d05b6eedb7e18c941ad9030ee9c02827.png)

Try out the game, make a new level and send it to me.  
I'll then include it in future versions of the game.

The full source is here:

> **[sketching/sketching-examples/examples/pacman at main · soegaard/sketching](https://github.com/soegaard/sketching/tree/main/sketching-examples/examples/pacman)**
>
> main/sketching-examples/examples/pacman

Enjoy,  
Jens Axel

---

<div class="post-metadata">

**Author:** ![spdegabrielle](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/spdegabrielle/32/95_2.png) [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)\
**Post date:** [April 6, 2023, 3:14pm UTC](https://racket.discourse.group/t/untitled-maze-game-pacman/1838/2 "2023-04-06T15:14:24Z")

</div>

I made a level - and @soegaard patched the game to support multiple entrances and exits!

> <https://gist.github.com/spdegabrielle/4541b10fa30f9d497d258a5dc47ec94a>

a bit fiddly but not too hard.

Stephen  
:beetle:

---

<div class="post-metadata">

**Author:** ![ben\_greenman](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/ben_greenman/32/632_2.png) [@ben\_greenman](https://racket.discourse.group/u/ben_greenman)\
**Post date:** [April 30, 2023, 8:33pm UTC](https://racket.discourse.group/t/untitled-maze-game-pacman/1838/3 "2023-04-30T20:33:32Z")

</div>

I made one too. Awesome game!!

[https://github.com/soegaard/sketching/pull/96](https://github.com/soegaard/sketching/pull/96)
