@@ -0,0 +1,1046 @@
+package com.saois.nengine.graphics;%0A%0Aimport java.awt.BorderLayout;%0Aimport java.awt.Dimension;%0Aimport java.awt.Frame;%0Aimport java.util.Random;%0A%0Aimport javax.swing.JLabel;%0Aimport javax.swing.SwingConstants;%0A%0Aimport com.saois.pulse.Game;%0A%0Apublic class Screen extends Render %7B%0A%0A%09private Render test;%0A%09private Render3D render;%0A%0A%09public Screen(int width, int height) %7B%0A%09%09super(width, height);%0A%09%09System.out.println(%22Rendering Engine Running...%22);%0A%09%09Random random = new Random();%0A%09%09render = new Render3D(width, height);%0A%09%09test = new Render(256, 256);%0A%09%09for (int i = 0; i %3C 256 * 256; i++) %7B%0A%09%09%09test.pixels%5Bi%5D = random.nextInt();%0A%09%09%7D%0A%09%7D%0A%0A%09public void render(Game game) %7B%0A%09%09for (int i = 0; i %3C width * height; i++) %7B%0A%09%09%09pixels%5Bi%5D = 0;%0A%09%09%7D%0A%09%09%0A%09%09for (int i = 0; i %3C 20; i++) %7B%0A%09%09%09int anim2 = (int) (Math.cos((System.currentTimeMillis()+i*20)%252000.0/2000*Math.PI *10)*50);%0A%09%09%09int anim = (int) (Math.sin((System.currentTimeMillis()+i*20)%252000.0/2000*Math.PI * 10) * 50);%0A%09%09%09draw(test, (width-256)/2+anim, (height-256)/2+anim2);%0A%09%09%09draw(render, 0, 0);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Insert by RedTelko