https://github.com/mabezdev/universesimulator
Simple Java universe simulator.
https://github.com/mabezdev/universesimulator
Last synced: 8 months ago
JSON representation
Simple Java universe simulator.
- Host: GitHub
- URL: https://github.com/mabezdev/universesimulator
- Owner: MabezDev
- Created: 2016-03-10T12:49:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-14T18:17:02.000Z (over 10 years ago)
- Last Synced: 2025-09-13T09:13:26.893Z (9 months ago)
- Language: Java
- Size: 209 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.TXT
Awesome Lists containing this project
README
Universe - a project to simulate an alternative, finite universe.
This project is the starting point for the INTPROG Java coursework in academic year 2015/2016.
You will need to modify and add code as detailed in the coursework specification on Moodle
Currently the universe has 3 objects in it which are travelling in different directions. These
objects, of class Space_Object, have some of the behaviour of comets ( as described in the coursework brief).
Space_Objects can detect when they have reached the "bottom" of the Universe and bounce off
the bottom when they hit it. In this version they cannot detect the other edges of
the Universe. These features are illustrated by the green object. Space_Objects are
not aware of each other and, in the current version, should they collide they will just
pass through each other as illustrated by the red and blue objects.
You need to study the code for the Universe and Space_Object classes and make sure you
fully understand how they work. You do not need to look at the Canvas class source
code but you do need to know how to use it so you might want to use the documentation
view for Canvas.
N.B. You are simulating an imaginary, alternative Universe which obeys different rules
to the real Universe! You aren't expected to produce a program which fully obeys
the rules of physics!