Jump to content

Bananaman1

Member
  • Posts

    87
  • Joined

  • Last visited

Awards

This user doesn't have any awards

System

  • CPU
    Core i7-6700k
  • Motherboard
    Asus Z170-A
  • RAM
    Corsair Vengence LPX (2 x 8 GB) 16GB
  • GPU
    EVGA GTX 1070 FTW
  • Case
    NZXT S340 White Edition
  • Storage
    500Gb Samsung 850 EVO Series SSD
  • PSU
    650W
  • Display(s)
    Acer 21:9 Curved XZ350CU
  • Cooling
    Corsair All-in-One H100i v2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Lol thats not how that works, this isn't a sci-fi movie. Even if it did work like that we're still a long ways from any sort of AGI
  2. So I'm looking for a hard drive ~4tb that has good performance and reliability. I've been looking at the WD Black 4tb HDD, but I've seen a lot of reviews saying that it makes a consistent, loud clicking noise. Any recommendations for a good hard drive?
  3. Its okay I did the same thing when I first joined
  4. Either as long they are good for the price
  5. I'm looking for ~$50 earbuds that are durable and sound good for the price. Does anyone have any recommendations?
  6. So I'm looking for a new chair for my setup. It doesn't have to be a racing-style gaming chair. A nice office chair will do. Does anyone have any recommendations?
  7. True, but it probably won't have enough power to run games at a playable framerate.
  8. Even if it had the processing power to run the games, it still wouldn't work because the Snapdragon 835 is an ARM chip. Most PC games run on the x86 architecture
  9. Why do you need an Intel based system? Ryzen probably has the best performance at this price point.
  10. All you have to do is implement KeyListener and add it to the frame. Here's how to do it: import javax.swing.*; import java.awt.*; import java.util.Random; import javax.swing.*; import java.awt.Graphics; import java.awt.*; import java.awt.event.*; import javax.swing.ImageIcon; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyListener; import javax.swing.JPanel; import javax.swing.Timer; //add implements KeyListener public class App extends JPanel implements KeyListener { //changing these values will change the size of the game, while still remaining functional //within the size limit specified. static int windowWidth = 525;8 static int windowHeight = 400; JLabel label1 = new JLabel("Test"); int randNumb = 0; int squareWidth = 60; int squareHeight = 60; double x = 0, y = 0, velX = 0, velY = 0; int squareYLocation = -squareHeight; private ImageIcon lpp; private ImageIcon upp; private ImageIcon dpp; private ImageIcon rpp; boolean numberCreated = false; static boolean gameRunning = false; //generates a random Y value inside the window for the square to spawn at public void generateRandomNumber() { lpp = new ImageIcon ("r.png"); upp = new ImageIcon ("u.png"); dpp = new ImageIcon ("d.png"); rpp = new ImageIcon ("l.png"); Random rand = new Random(); randNumb = rand.nextInt(5); numberCreated = true; } //paints a black screen, then paints a rectangle on top of the black screen public void paint(Graphics g) { g.setColor(Color.white); g.fillRect(0, 0, windowWidth, windowHeight); g.setColor(Color.black); JLabel label1 = new JLabel("Test"); g.drawImage(upp.getImage(), 112, 290, 60, 60, null); g.drawImage(dpp.getImage(), 212, 290, 60, 60, null); g.drawImage(lpp.getImage(), 312, 290, 60, 60, null); g.drawImage(rpp.getImage(), 12, 290, 60, 60, null); g.fillRect(425, 20, 75, 329); if(randNumb == 1){ g.fillRect(12, squareYLocation, squareWidth, squareHeight); } if(randNumb == 2){ g.fillRect(112, squareYLocation, squareWidth, squareHeight); } if(randNumb == 3){ g.fillRect(212, squareYLocation, squareWidth, squareHeight); } if(randNumb == 4){ g.fillRect(312, squareYLocation, squareWidth, squareHeight); } } public void up(){ System.out.println("hi"); } public void down(){ System.out.println("hi"); } public void left(){ System.out.println("hi"); } public void right(){ System.out.println("hi"); } public void update() { //calls the generateRandomNumber() method which gives the square a random x value inside the screen if (!numberCreated) { generateRandomNumber(); } //moves the squares y coordinate towards the bottom of the screen and stops once it hits the bottom if (squareYLocation <= windowHeight) { squareYLocation++; //resets the x and y location to a new position } else { numberCreated = false; squareYLocation = -squareHeight; } } //sets the while loop to true to start the game public void start() { gameRunning = true; } public static void main(String[] args) throws InterruptedException { App game = new App(); JFrame frame = new JFrame(); frame.add(game); frame.setVisible(true); frame.setSize(windowWidth, windowHeight); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.setTitle("Raining Squares"); frame.setResizable(false); frame.setLocationRelativeTo(null); //add this line frame.addKeyListener(this); game.start(); //updates square position, repaints square, and slows down update and paint speed. while (gameRunning) { game.update(); game.repaint(); Thread.sleep(1); } } public void keyPressed(KeyEvent e){ int code = e.getKeyCode(); while(code == KeyEvent.VK_UP){ up(); } if (code == KeyEvent.VK_DOWN){ down(); } if (code == KeyEvent.VK_LEFT){ left(); } if (code == KeyEvent.VK_RIGHT){ right(); } } public void keyTyped(KeyEvent e){} public void keyReleased(KeyEvent e){ velX = 0; velY = 0; int code = e.getKeyCode(); if (code == KeyEvent.VK_UP){ velY = 0; } if (code == KeyEvent.VK_DOWN){ velY = 0; } if (code == KeyEvent.VK_LEFT){ velX = 0; } if (code == KeyEvent.VK_RIGHT){ velX = 0; } } }
  11. Lol he locked it because you cant help build hackintosh's on the forum
  12. Considering you just installed Windows, there was probably an error. If you're willing I would just reinstall it
×