Skip to content

This is a project I did in High School where a player can wander and interact with a simple, boundless world.

Notifications You must be signed in to change notification settings

Matthew-w56/TwoDWorld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

TwoDWorld

This is a simple desktop game I built in my free time during Highschool. The user is a rectangle in a world made of 2D blocks, with a few major interesting aspects (especially for an un-trained highschool student):

  • Dynamically Rendered World Chunks
    • The world is split up into large chunks, and only the chunks around the user are rendered
    • This allows the user to continue in one direction "forever", since the CPU doesn't have to process stached chunks
  • Automatically Generated World
    • World features such as trees are generated algorithmically as the user continues exploring
  • Custom Menu System
    • Unhappy with the jarring results of trying to overlay JavaFX or Swing, I built my own UI framework, including the defining, drawing, and creation of menus
    • Allows buttons to have results when clicked, which powered the in-game menus (see screenshots below)
    • Managed game state in stasis while menus were active
  • Entities
    • The world starts up with one cow and one pig
    • I built an entire heirarchy of entity types and interfaces that allow the creation of a variety of entity types (animals, etc)
    • They wander the world, randomly deciding to pause or to walk in a direction towards some point
    • They jump when they need to get over something, and stop jumping when they can't get up to where they want

Notable Classes

If you are interested in seeing a few slices of how this program was coded, see the following spots:

Screenshots

  1. Starting Screen
  2. Exit Menu

WorldStartShot WorldExitMenuShot

About

This is a project I did in High School where a player can wander and interact with a simple, boundless world.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages