Giter Site home page Giter Site logo

office-rumpus's Introduction

Office Rumpus

A 2D office environment with people who interact with objects in the building (elevators, lights, doors, etc).

The initial goal of this project was to build an environment with simulated elevators that would come when called and could take people between floors. The end result is that, with some other little things thrown in (doors, lights, etc.) but without a fully fleshed out elevator interaction.

This was built on top of a Graphics2D window in Swing, and uses (I believe) nothing beyond that and Java builtins.




Controls

Key Action
Jump
Walk Left
Walk Right
space Interact




Brainstorming

  • How should I implement walls & other permanent impassable objects?
    • Using java.awt.Rectangle for boundary detection.
  • Coordinate system? Definitely need this in one way or another.
    • Using pixel coordinates.
  • Separate class for interaction that is extended by all the interactive objects. Specifications like interactive for every object and inUse for Interactive objects to specify interactivity and whether they are busy at the moment.
    • Did exactly this.
  • The core problems are creating interactive objects and AI with intelligence enough to interact with objects they need to and choose random paths to travel on.
    • This is mostly done, but there will be a bit more complication when I add elevators, etc.
  • I want to make it scalable and somewhat randomly generated (as in, it will select a building size and the number of elevators, locations of doors, etc) but that will be a somewhat advanced feature.
    • Not going to bother with this. Way too much complication for a nonessential feature.




Visual Preview

This was the visual goal of the project.

This is how it ended up looking.

office-rumpus's People

Contributors

thosegrapefruits avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.