A very simple car game in Java. CarGame.java package cargame. (String[] args) { // Create application fram and a game surface.
- I've been looking for a good adventure tutorial for a long time, but haven't found anything interesting. I'm working on a horror adventure game with very simple mechanics - moving only along the line (so just 1D moving), interacting with NPCs, keeping an inventory, saving progress, and so on.
- I am currently writing a 'Create Your Own Adventure' game in Java. I know the basics of java, and I know how to write a story. There will be story, choices, then more story. Here is a chunk of the story so far The year is 1917, and America has just entered the Great War. It is a cold morning a few miles off of the coast of New York.
Posted by5 years ago
Archived
Mostly for beginners, you can use this skeleton code as a spring board to creating your own text adventure or just as a learning tool. As a beginner myself, I've learned quite a bit creating this template and thought I'd share with anyone else interested. Make it your own, modify, whatever you want!
EDIT 11/20/2014:
I've removed the original link to the code since it has expired. Since this post, I've created a better skeleton code with n/s/e/w map functionality, inventory and more.
Here is the link the code (a zip file exported from Eclipse):
And here is a link to the newer Reddit post:
Enjoy!
EDIT 6/29/2016: Two years later looking back on this Java skeleton code, it seems like quite a mess to me. So, since I've been working in Python lately, I decided to re-code it in Python. It is relatively much cleaner with way less lines of code. View the post here:
View the Python code here: http://pastebin.com/B1aCvGSW
Enjoy!
22 comments
Projects
- 2D Framework
My 2D java game framework , originally designed for one of my classes. - 2d Game
Pure java 2d game. - 2D Game Engine
A 2D Game engine built with only native Java libraries. Part of a tutorial series @ http://vanZeben.ca/ java /2d_game_dev. - 2D JOGL Game Engine
Basic 2D game engine made using JOGL, intended for students to learn the basics of game programming. - 2D Map Editor
A simple map editor written in Java for 2D games. - 2d spaceinvaders
Trying a game tutorial from http://www.cokeandcode.com/node/6. - 5games5nights 2009
5 games were made in 5 nights with varying levels of completeness. All games use slick 2d. - AndEngine.net
A port of the AndEngine 2D Game Engine from Java to MonoDroid (C#). - Ark Game Framework
A 2D game framework. - Bonsai Game Library
A small Java based Library/Engine for creating 2D Games featuring Applet support. - caffeine
Caffeine is intended to be a simple 2D tile based game engine written in Java. Its focus is to take advantage of abstraction provided by Java will remaining light weight and flexible to different tile based games. - DamagedEarth
A 2D arial RPG futuristic game. - darkFunction Editor
A 2d sprite and animation studio for game developers. - EarthForge
EarthForge is a block based 2D survival game written in Java. It is built upon the UtiliGame engine. - engine alpha
Eine anf?ngerorientierte 2D Game Engine in deutscher Sprache. Ihr Hauptzweck ist es, Begeisterung f?r Programmierung und Informatik durch schnelle, sichtbare und starke Erfolge zu entwickeln. - explorerRPG
explorer RPG is a simple 2D Rogue style RPG Java engine (only java classes) with a demo game. - Fishing Girl
Simple fishing game using Slick 2d. - flixel gdx
A cross platform 2D game framework based on flixel by AdamAtomic. - Game Framework
Java 2D Game Lib. - GameBoard 2D
Small java 2D game library. - Insane Games Engine
A simple engine for 2D games written in Java. - Java 2 DGame
Simple 2D game using only native JAVA libraries. - Java Game Of Life
An implementation of Conway's game of life written in java; including graphical output using Java 2D. - JavaGame
Learning 2d game development. - Javario
2D platform game fully written in Java. Plot: Starducks are evil creatures from the dark part of the universe. In order to conquer the Earth they planned to make people write bad software what ultimately will cause enormous chaos around the globe. - javaspritetest
A test using Java 's Slick (+LWJGL) 2D game framework and a character we all know and love. - jiggl
2D game library with GWT/WebGL and LWJGL backends. - JMotion
Animation framework for Java , inspired by Flash's 'tweens' and with 2D games in mind. - jSpace 2d
This is a 2.5 dimension multiplayer shooter game, actually it is incomplete. - JVerge
JVerge is a port of the Verge 2D game engine to Java. - libgdxGame
a simple 2D game. - lionengine
Java 2D Game Engine. - Lost Adventure
Lost Adventure mijn test 2D voxel game engine. - MERCury
A Simple 2d Game Engine. - MyBomberman
my first steps in game Developing using slick 2d GameEngine. - nenya
Components for Java 2D, isometric and 3D games. - quadraturin
Wannabe Java 2D game engine in development. - racerTC
A 2D racing game for Andoid platform. - ridiculousRPG
ridiculousRPG ois a game engine for classic 2D RPG games. - Ring of Snake
Speedy 2d platformer game. - RPGRTS
RPG/RTS game with Java and Slick 2D. - shade
A 2d game written in Java with real time lighting as a central gameplay mechanic. - SpaceHero
SpaceHero is a 2d game developed using Andengine. - SpeedRacer
Java 2D Car Racing Game. - Stonetolb
Retro style 2D Role Playing Game. - The Game
A 2D game I'm making with some friends. - The Legend of Ethos
The Legend of Ethos is a 2D Role Playing game. - TheModernClassicGame
This is a 2D /3 D game thingy... - Tower Defence
Tower defence game in Java + Slick 2d /LWJGL. - Tuff
A small 2D Game in Black & White. Featuring old school GameBoy resolution, Metroid style world exploration and PowerUps. - YogularmInfinite
A 2d jump'n'run game which auto generates its worlds.
Simple Adventure Game
Home »
Java Free Code »
Game »
Java Free Code »
Game »