2D Survival Platformer

Apr 18, 2014

I'm programming a 2D pixel-based platformer, kind of like Terraria, but I ran into a problem with the crafting mechanism. My goal was to create a 3x3 crafting space when you hit "p" while holding a workbench. However, what ended up happening was a straight line of cubic crafting spaces.I realize that this is a rediculous amount of code for such a small problem.

package net.figgle.minecraftplatformer;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
 
[code]...

View Replies


ADVERTISEMENT

Make A Simple Platformer Game In Java - Moving Characters

May 24, 2015

I am trying to make a simple platformer game in Java. When I try to move the character I made it only moves over then immediately back

import java.awt.event.KeyEvent;
public class UCC
{
private int xLoc;
private int yLoc;
private int xSpeed;
private int ySpeed;
private double gravity;
private int size;
 
[code]....

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved