Jump to content
  • Advertisement

Morrowa

Member
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

131 Neutral

About Morrowa

  • Rank
    Newbie
  1. Hello!   I've been looking into running fullscreen applications in java, and I went on and tried to run this: import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; public class Main extends JFrame{ public static final String TITLE = "Pong"; public static final String VERSION = "1.0"; public static void main(String[] args) { JFrame window = new JFrame(); window.setUndecorated(true); window.setResizable(false); window.setBackground(Color.BLUE); window.setForeground(Color.WHITE); DisplayMode dm = new DisplayMode(800, 600, 16, 60); GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); gd.setFullScreenWindow(window); try { gd.setDisplayMode(dm); } catch(IllegalArgumentException ex) { System.out.print("Illegal Display Mode"); } try { Thread.sleep(5000); } catch (Exception ex) { ex.printStackTrace(); } gd.setFullScreenWindow(null); } public void paintComponent(Graphics g) { System.out.print("Paint Method Called"); g.drawString("Fullscreen", 50, 50); } } The problem here, is that I couldn't get the paint method to be called. Why is that?
  2. Morrowa

    What now?

    Clever.  Thank you!
  3. Morrowa

    Where to start for Life Simulation Game

      Learn to program Java first. Also, after what I know, a game like The Sims will most likely be too massive if you have minor experience with Java and haven't made any games before.   Most likely there aren't any tutorials that tells you step for step how to create a game like The Sims in Java. I believe you are much better off learning how to program a game in general and start small. 
  4. Morrowa

    What now?

    Thank you! I guess I will wait with creating an engine then.   However, I was thinking: I have started on a Tetris clone. However, I have the problem of collision detection.   I have made the graphics for the blocks myself. The blocks shaped like this:   XXXX  XX            XX   Is fine with collision detection. However, with these:     X        XX XXX        XX   Where you have these transparent spots, gets a little more nasty for me. Is the best way to do collision detection here to check first if there is a sprite-sprite collision, then check if the part the sprite is colliding is transparent?
  5. Morrowa

    What now?

    The same here. I have been reading for an hour now.
  6. Morrowa

    What now?

    Still, if I am going to make a pong game, I need in one way or another to load sprites etc. Wouldn't that be a very primitive engine if the code does all the basic stuff?   When it comes to engines like Unity, I have no idea how they are made. (Could anybody explain how?)   Either way, I guess I will start out simple with some Tic Tac Toe, Tetris and Pong.
  7. Morrowa

    What now?

    I have some ideas for some games, but they are too advanced for me to create at this point. Still, I want to create the engine myself, for the knowledge. Where can I possibly learn this?   I have also heard that to make games with C++ you need DirectX or OpenGL. What are these, and why do you need them with C++, and not Java?   Also, thank you for the links! I will read them!
  8. Morrowa

    What now?

    Hello!   I have created some programs using Java, this year. (CD-Key Generator, Calculator with a GUI etc.) However, I want to create games. The thing is, I don't know where I can learn to do this. I understand how to program in Java to a certain level, and I know the basics of a game (Refreshing the screen 60 times each second, game loops etc.) I just don't know how to do this in Java.   So, my questions are: - How can I learn to do this in Java? - If I decide to use another language, like C++, would it be any different? - I have also heard that if you are to use C++, you usually want to create your own engine, is this true? - This is not very relevant yet, but if you are to create a 3D game, how do you load models etc.? (I am aiming at simple 2D games first though)
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!