Skip to content

A sandbox redstone like simulator in 2d using java swing and pretty math

Notifications You must be signed in to change notification settings

RepComm/redstonesim

Repository files navigation

RedstoneSim

A 2d sandbox for creating redstone-like circuits for no reason

img

Implemented classes:

  • Chunk - efficient 2d data structure
  • ChunkRenderer - renders chunks given List
  • BlockData - handle raw data of a block
  • BlockInfo - instructions for rendering blocks
  • Neighbors - struct for storing neighbors
  • Vec2 - math
  • JSON - custom impl of JSON reader/writer
  • AddQueue - iterate + add items + iterate added items
  • ContextEx + Graphics2D + save/restore
  • MouseHandler - less annoying swing mouse handler

Implemented functionality:

  • Basic UI
  • Coordinate transformation
  • Window resizing
  • Efficient voxel storage
  • Voxel place/break
  • Mouse hover voxel outline
  • JSON.parse and JSON.stringify
  • Basic Redstone propagation / powering
  • Drag blocks around smoothly
  • blocks.json - configure your blocks!

About

A sandbox redstone like simulator in 2d using java swing and pretty math

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages