3D Game Programming - Episode 1 - Window

The Cherno · 562K views · 2012 · 14:02

Open on YouTube

Game programming & enginesPython, Ruby & scripting languagesIndie game developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it because beginners follow this tutorial series and then post questions about blank windows, frame setup and console errors in the code it produces.

Recommended by 1 people across 1 different months, 2014 to 2015.

What it is

The first episode of The Cherno's 2012 series on building a 3D first-person game from scratch in Java 1.6 using only the standard libraries. It walks through setting up Eclipse and creating the game window with a Canvas and JFrame.

What people said

Recommends soul6942 · 2014-10 · Stack Overflow · on “3D Java programming tutorial isn't working”

[this video] I've followed this tutorial up to episode four and where his window has pixels in it, mine is completely blank. I want to know whether anyone with experience with 3d programming in eclipse can see if there is something that doesn't look right to you. Display: package com.mine.minefrost; import java.awt.Canvas; import java.awt.Graphics; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; import javax.swing.JFrame; import com.minefrost.graphics.Render; import com.minefrost.graphics.Screen; public class Display extends Canvas { private static final long serialVersionUID = 1L; public static final int WIDTH = 800; public static f

Cites Mitchell Conrad · 2015-03 · Stack Overflow · on “frame.add(game); not working”

I'm new to java and have decided to make a simple game. I found this tutorial [this video] and this is my code: package com.MyGame.Display; import java.awt.Canvas; import javax.swing.JFrame; public class Display { private static final long serialVersionUID = 1L; public static final int WIDTH = 800; public static final int HEIGHT = 600; public static final String TITLE = "MyGame Version Pre-Alpha 0.1"; public static void main(String args[]){ Display game = new Display(); JFrame frame = new JFrame(); frame.add(game); frame.pack(); frame.setTitle(TITLE); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(WIDTH,HEIGHT); frame.setLocationRelativeTo(null); frame.setResizable(false); fr

Cites nova nanite · 2015-08 · Stack Overflow · on “Odd Errors Displayed Only in Console When Trying to Run Program”

So I'm watching a tutorial to learn how to program in Java using Eclipse. So I got a few episodes in and I had to clear out all out the errors. I looked around and found no more errors so I tried to run the program and I got errors in that were only displayed in the console, and was being displayed next to the lines it was referencing. I have completely no idea how to solve these errors I haven't seen anything like them before. Also my program is fairly simple it is just the code to display and window and then have pixels of a random colour fill that window. I really would appreciate any help I can get, because I have no clue how to fix this error. Thanks, Nova Tutorial [this video] Error: `Picke