Showing posts with label game. Show all posts
Showing posts with label game. Show all posts

Saturday, April 21, 2018

My first game in Java!

I found an amazing tutorial for writing a brick breaking style game in Java. I walked through the video, typing all of the code, and was able to fully reproduce the game! In some respect, I suppose it's similar to tracing a drawing, but either way, I am so happy with the results. My first hello world app took me about 90 minutes to finish. I finished the game in about two hours.

Code written by Austin Craver


// Main.java

/*
 * This amazing Java game was written by Austin Craver
 * by following and coding along with a 57 minute tutorial.
 * Special thanks to Awais Mirza for taking the time to create
 * and share such a helpful and informative video!!! *
 */

package breakerGame;

import javax.swing.JFrame;

public class Main {

    public static void main(String[] args) {
        // Creates frame for game
        JFrame obj = new JFrame();
        Gameplay gamePlay = new Gameplay();
        obj.setBounds(10, 10, 700, 600);
        obj.setTitle("Breakout Ball");
        obj.setResizable(false);
        obj.setVisible(true);
        obj.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        obj.add(gamePlay);
    }
}

SQL

I've hit a wall in my SQL studies via the Khan Academy, and as such, I am engaging in additional studies prior to attempting to move for...