-
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.
Bananaman1's Achievements
-
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?
-
Its okay I did the same thing when I first joined
-
Not tech news
-
I have an android, will they work?
-
Either as long they are good for the price
-
I'm looking for ~$50 earbuds that are durable and sound good for the price. Does anyone have any recommendations?
-
This should be in New Builds and Planning
-
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?
-
Can you play steam games on a Snapdragon 835?
Bananaman1 replied to Nena Trinity's topic in CPUs, Motherboards, and Memory
True, but it probably won't have enough power to run games at a playable framerate. -
Can you play steam games on a Snapdragon 835?
Bananaman1 replied to Nena Trinity's topic in CPUs, Motherboards, and Memory
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 -
Help with making ddr in java for a school project
Bananaman1 replied to WaffleMage's topic in Programming
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; } } } -
Lol he locked it because you cant help build hackintosh's on the forum
-
Considering you just installed Windows, there was probably an error. If you're willing I would just reinstall it