Posts

Showing posts from July, 2019

Breakout (Brick Breaker) Game Using Java : version 2

Image
Breakout Game using Java This is the second version in the development of the Breakout (Brick Breaker) game.  In this version, I added the bricks to the game. Adding the bricks to the game was not easy.  I had to import some modules and make sure that the outline for the bricks was well done.  Making the bricks involved creating a nested loop. There was a problem with the ball.  Once the ball connected with a brick, the ball would not bounce off randomly. Instead the ball would continue on a direct path.  I needed to add code so that the ball would bounce randomly after making contact with a brick. I still have an issue with the ball leaving the screen. This can be seen in the image above. Once the ball leaves the playing screen, the program generates a yellow streak. I will need to fix this.  Most likely, I will increase the size of the playing screen. In the next stage, I will need to add the score and increase the complexity of the ga...

Breakout Game Using Java

Image
Breakout Game Using Java Continuing with building out video games,  I have started to develop a Breakout game using Java.  I am doing so because-although I know C-  I wanted to start learning another programming language besides Python.  So why not do more things with C?  Overall, I find it difficult to get good tutorials on C for building games. I find a lot of content regarding IOT( Internet of Things) but not a lot of content on C. There is content on C++, but I decided to go with Java now and learn C++ later. Also, I wanted to go with Java because, I want to learn "How to Learn" programming languages.  There are lots of programming languages and new languages are being developed all the time (Rust, Kotlin, and Go).  Therefore, one important skill is the ability to learn how to be able to pick up another programming language easily. By coding in Python and C now and learning Java, I will develop the ability of "How to Learn".  I shou...