My very own Pacman Game :) "in progress"

freeBASIC source code examples by FbCadcam staff and interns

Moderators: yajra1219, Jayem, kitty_webb, Ywsp, joanCruz03, shela

Post Reply

Site Admin
Posts: 656
Joined: Thu Apr 13, 2017 12:14 pm

Re: My very own Pacman Game :) "in progress"

Post by owen » Sun May 12, 2019 12:19 am

Your pacman has 5 images
1 with the mouth closed and the other 4 with the mouth open, facing up, down, left and right.

The pacman images alternate every half second between mouth open and mouth closed.

It is best to use a timer for this purpose.

Code: Select all

Dim as double T
   If timer > T + .5 Then
      Swap images
   End If
   .... The rest of your code...

Posts: 4
Joined: Fri Jan 11, 2019 7:18 am

Re: My very own Pacman Game :) "in progress"

Post by Thenyellbillones » Thu May 16, 2019 2:42 am

Okay sir i will going to try your suggestion sir Thank very much :)

Post Reply