07-01-2018 05:11 AM - edited 07-01-2018 05:13 AM
Hello,
We’ve been taught the basics of Labview this semester and now we have been given a project in which we have to design a game. We are going to build a simple Pac-Man game. We must have a maze, a main character (Pac-Man) which can be controlled, some enemies (Ghosts) and the Point Pills that Pac-Man will eat as he goes through the maze.
We already have an animation code (Pac-Man moves and opens its mouth), a code with a drawed Labyrinth (with vertical and horizontal bars) and a code for using the Keyboard to control Pac-Man in four different directions.
Now we need to decide how our character will move on the screen. Me and my lab partner can not find out how we can place the Pac-Man animation in the 2D-maze to control the character with a keyboard inside this maze.
We did not use an Array for our maze, so we used the function Draw Multiple Lines to build vertical and horizontal bars in the maze because we thought it would look more realistic than an array. Can we work with it or should we better use an array in this case?
Are there any helpful tips or pointers people can give us?
I have attached our project files. We are working in Labview 2017.
Thank You a lot!
07-01-2018 05:28 AM - edited 07-01-2018 05:29 AM
Hello,
we’ve been taught the basics of Labview this semester and now we have been given a project in which we have to design a game. We are going to build a simple Pac-Man game. We must have a maze, a main character (Pac-Man) which can be controlled, some enemies (Ghosts) and the Point Pills that Pac-Man will eat as he goes through the maze.
We already have an animation code (Pac-Man moves and opens its mouth), a code with a drawed Labyrinth (with vertical and horizontal bars) and a code for using the Keyboard to control Pac-Man in four different directions.
Now we need to decide how our character will move on the screen. Me and my lab parnter can not find out how we can place the Pac-Man animation in the 2D-maze to control the character with a keyboard inside this maze.
We did not use an Array for our maze, so we used the function Draw Multiple Lines to build vertical and horizontal bars in the maze because we thought it would look more realistic than an array maze. Can we work with it or should we better use an array in this case?
Are there any helpful tips or pointers people can give us?
I have attached our project files. We are working in Labview 2017.
Thank You.
07-02-2018 03:20 PM
Was I dreaming? I'm almost positive that I wrote 2 or 3 replies to this thread. I'm also fairly certain that I read a few from Bob S. that have also gone missing. Did NI have to restore the forums from a backup? Or the more likely scenario, did we hit a branch in the time continuum after Bob combined the duplicate threads?
07-02-2018 05:05 PM
There were two identical original posts (separate threads) that got merged into one here. I guess the merge produced some collateral damage and the earlier responses ended up in a black hole somewhere ... 😞
07-02-2018 05:11 PM
The identical posts were merged before Bob and I posted our comments. So the space time continuum was interrupted after the merge but before our posts.
07-02-2018 09:12 PM
I remember reading at least one of your posts. It was a good one really describing all the "properties" of each location in the maze that should be stored in a 2-D array.
07-03-2018 08:44 AM
@RavensFan wrote:
I remember reading at least one of your posts. It was a good one really describing all the "properties" of each location in the maze that should be stored in a 2-D array.
And I'm thinking about a level editor made out of an array of clusters containing boolean controls in the shape of a Pacman board, with a preview mode of course. Write each level to an XML file to be read by the game engine later. This sounds really fun.
07-03-2018 11:31 AM
@aputman wrote:
@RavensFan wrote:
I remember reading at least one of your posts. It was a good one really describing all the "properties" of each location in the maze that should be stored in a 2-D array.
And I'm thinking about a level editor made out of an array of clusters containing boolean controls in the shape of a Pacman board, with a preview mode of course. Write each level to an XML file to be read by the game engine later. This sounds really fun.
It does sound fun! And I've found that making a game is a great way of exercising your knowledge of a given programming language.