Skip to content

A classic Pong game dose not render in 2D picture control.

License

Notifications You must be signed in to change notification settings

KurtDing/LabVIEW_Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LV_Pong Game

A classic Pong game dose not render in 2D picture control, that everything presented by LabVIEW intrinsic controls.

Other features:

  • Some brick could not be destoryed by one hit.
  • Can creat more customized level by modify setting.txt file.
  • Earn extra ball when reaching specific score, hit more bricks before ball return the paddle.
  • Use "Ctrl + Shift + C" to go to next level immediately.

image

To create the new level, open the file "setting.txt". The content looks like figgure below.
Level infomation starts form ":=" and ends at "//",
Between these is a 6 by 6 array of numbers separated by coma. The first row is the most buttom 6 bricks.
The number means the hit point of brick, maximun hp is 6. If hp of brick set to 0, then it wont exist in the level.

image

TODO()

The perfomance of game is awful. Mybe one of the root cause is using simple AABB collision detection.
It can add a broad phase algorim before do collision detection.
Like uniform Grid, that looks like blockmap in doom engine. Or do sweep and prune to decrease the possible collide object.

About

A classic Pong game dose not render in 2D picture control.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published