Jump to content

Arcapse

Member
  • Posts

    273
  • Joined

  • Last visited

Awards

This user doesn't have any awards

3 Followers

About Arcapse

  • Birthday December 2

Contact Methods

  • Steam
    Arcapse
  • Origin
    Arcapse

Profile Information

  • Gender
    Male
  • Location
    Scotland

System

  • CPU
    i5 4670K
  • Motherboard
    MSI Z87M Gaming
  • RAM
    Corsair Vengeance 8GB
  • GPU
    Asus DirectCU II GTX 760
  • Case
    Corsair 350D
  • Storage
    WD Caviar Black 1TB
  • PSU
    Corsair CX600M
  • Display(s)
    1080P 60Hz TV
  • Cooling
    Stock CPU Cooler / OEM Corsair Fans
  • Keyboard
    Corsair K30
  • Mouse
    Wired Mouse
  • Sound
    Plantronics Gamecom 780
  • Operating System
    Windows 8.1
  • PCPartPicker URL

Recent Profile Visitors

1,539 profile views
  1. Just quickly asking, Is 8GB no longer enough RAM for gaming nowadays? I'm considering upgrading to 16GB as I have some stutter issues in AAA games with fancy graphics, but I'm unsure if that's because I only have 3GB of VRAM or only 8GB of RAM.
  2. I know using GeForce Share you can add custom Overlays while streaming, but is it possible to add custom overlays while recording?
  3. Right now I am using a Corsair Sabre RGB and I'm now looking to get a new mouse - one that has requires very little actuation force for FPS games. Any suggestions?
  4. Might seem like a bit of a dumb question but I'm just starting uni and during my maths lecture I've found it quite difficult and tedious to convert what I've typed into proper maths (using correct symbols and formats) For example, I typed this up: T^2=4pi^2(L/g) Is there any feature of MS OneNote or any website, plugin etc. that would allow me to convert this so things are superscripted and displayed as a fraction instead of L/g? Cheers
  5. https://www.amazon.co.uk/HP-15-bw037na-15-inch-Graphics-Dedicated/dp/B071FQTBCN/ref=sr_1_29?s=computers&ie=UTF8&qid=1504006116&sr=1-29&keywords=laptop&th=1 vs. https://www.amazon.co.uk/Dell-Inspiron-Laptop-Pentium-Windows/dp/B01N9OJEE3/ref=sr_1_14?s=computers&ie=UTF8&qid=1504005948&sr=1-14&keywords=laptop&th=1#HLCXComparisonWidget_feature_div
  6. I'm looking to buy a laptop and I currently have 2 laptops I'm struggling to pick between. One has a LED display, the other has a 'SVA anti-glare WLED-backlit' display. What's the difference or is it just marketing bullsh*t?
  7. A friend formatted a harddrive and is unsure what option to select. I reckon it's Drive 0 Partition 1, but I want to double check.
  8. Okay so this works.. Now how would I get this to be called correctly? Originally, it got called like this: if(TempWord.getY()>=400){ w.remove(TempWord); Sound.sound1.play(); Game.HEALTH -= 50; addWord(new Word(250, 50, game)); }
  9. import java.applet.Applet; import java.applet.AudioClip; public class Sound { public static final Sound sound1 = new Sound("/Short Beep Sound Effect.wav"); private AudioClip clip; public Sound(String filename){ try{ clip = Applet.newAudioClip(Sound.class.getResource(filename)); }catch(Exception e){ e.printStackTrace(); } } public void play(){ try{ new Thread(){ public void run(){ clip.play(); } }.start(); }catch(Exception ex){ ex.printStackTrace(); } } }
  10. So I'm trying to play a .wav file in Eclipse, Java, I've followed a guide and afaik, I've done everything the same way. However, it does not work and I receive the following error: I'm thinking it's because Eclipse is registering the audio files as text files as both the .wav and .mp3 files have the same icons as the .txt files as shown below: Am I correct? How would I go about fixing this if so?
  11. Is there a way to have NVIDIA GeForce Share (new version of ShadowPlay) launch on Windows Start-up
  12. Hello, me again In Java, how would I read from a text file and save it as a 2D array? The text file contains the player's initials and score as shown below:
  13. I've made what I think is relevant code in bold.
  14. I'm trying to learn Java and I'm creating a game where text falls from the top of the screen to the bottom and you need to type the word before it reaches the bottom to win. Right now I'm trying to set it up so when a word falls to the bottom of the screen, it is deleted and another instance is created. However, it doesn't work and I am given this error: Exception in thread "Thread-2" java.lang.NullPointerException at Game.tick(Game.java:83) at Game.run(Game.java:64) at java.lang.Thread.run(Unknown Source) Can anyone help? Game Class import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import javax.swing.JFrame; public class Game extends Canvas implements Runnable{ private static final long serialVersionUID = 1L; public static final int WIDTH = 640; public static final int HEIGHT = 480; public final String TITLE = "Advanced Higher Computing Project"; private boolean running = false; private Thread thread; private BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB); private Controller c; private Word w; private void init(){ c = new Controller(this); } private synchronized void start(){ if(running) return; running = true; thread = new Thread(this); thread.start(); } private synchronized void stop(){ if(!running) return; running = false; try { thread.join(); } catch (InterruptedException e) { e.printStackTrace(); } System.exit(1); } public void run(){ init(); long lastTime = System.nanoTime(); final double amountOfTicks = 60.0; double ns = 1000000000 / amountOfTicks; double delta = 0; int updates = 0; int frames = 0; long timer = System.currentTimeMillis(); while(running){ long now = System.nanoTime(); delta += (now - lastTime) / ns; lastTime = now; if (delta >= 1){ tick(); updates++; delta--; } render(); frames++; if(System.currentTimeMillis() - timer > 1000){ timer +=1000; System.out.println(updates + " Ticks, FPS " + frames); updates = 0; frames = 0; } } stop(); } private void tick(){ if(w.getDead() == true) { c.addWord(new Word(200, 20, this)); } c.tick(); } private void render(){ BufferStrategy bs = this.getBufferStrategy(); if(bs == null){ createBufferStrategy(2); return; } Graphics g = bs.getDrawGraphics(); //// c.render(g); g.setColor(Color.white); g.fillRect(0,0,getWidth(),getHeight()); g.setColor(Color.red); g.fillRect(0,400,getWidth(),20); c.render(g); //// g.dispose(); bs.show(); } public static void main(String args[]){ Game game = new Game(); game.setPreferredSize(new Dimension(WIDTH, HEIGHT)); game.setMaximumSize(new Dimension(WIDTH, HEIGHT)); game.setMinimumSize(new Dimension(WIDTH, HEIGHT)); JFrame frame = new JFrame(game.TITLE); frame.add(game); frame.pack(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false);; frame.setLocationRelativeTo(null); frame.setVisible(true); game.start(); } } Word Class import java.awt.Color; import java.awt.Font; import java.awt.Graphics; public class Word { private double x; private double y; private boolean dead; public Word(double x, double y, Game game){ this.x = x; this.y = y; this.dead = false; } public void tick(){ y+=3; if(y >= 400) dead = true; } public void render(Graphics g){ //set up text style Font font = new Font("Serif", Font.BOLD, 36); g.setFont(font); g.setColor(Color.black); g.drawString("Hello", (int)x, (int)y); } public boolean getDead() { return dead; } public double getY(){ return y; } } Controller Class import java.awt.Graphics; import java.util.LinkedList; public class Controller { private LinkedList<Word> w = new LinkedList<Word>(); Word TempWord; Game game; public Controller(Game game){ this.game = game; } public void tick(){ for(int i = 0; i < w.size(); i++){ TempWord = w.get(i); if(TempWord.getY() >= 400) removeWord(TempWord); TempWord.tick(); } } public void render(Graphics g){ for(int i = 0; i < w.size(); i++){ TempWord = w.get(i); TempWord.render(g); } } public void addWord(Word block){ w.add(block); } public void removeWord(Word block){ w.remove(block); } }
×