baschi29 / streetlife Goto Github PK
View Code? Open in Web Editor NEWFor educational purposes
License: GNU General Public License v3.0
For educational purposes
License: GNU General Public License v3.0
Close dialog should not only come up when clicking file-close
Right now cars start lane switching but then collide with a slower car in front of them. Somewhere in there is also a weird collision bug.
As all other gui elements get created by the view or the main gui
Right now we have redundant code which is suboptimal, for example for fixing #25
Not important
Maybe create separate repository and add to .gitignore
Not only should they have dimension, but also check collisions respecting those dimensions
ich brauche eine Methode showCars() (oder so ähnlich), welche eine Liste an allen verfügbaren Autos zurückgibt.
Die Liste sollte eine Form von möglichen Auto-Bauplänen geben (langsamer Traktor, schneller Fiat, etc), sodass der Benutzer aus diesen Vorlagen wählen kann und eine Kopie für das Modell hinzufügen kann
wir brauchen eine Methode, die ich über die View/Controller callen kann um ein neues Auto zum Model hinzuzufügen. addCar sollte dabei ein Auto-Template übergeben bekommen, und daraus "ein neues Auto bauen"
Other methods to not work when combining everything as a jar. See StartUpDialog for reference.
the gui should display the size of the current street, with x/y-coords, lane number etc.
the y-coordinates of the gui should be reversed, so that the lane on y=0 is positioned on the bottom
To accommodate the tips we got from Malte we should cleanup the interfaces
On Linux, all popup dialogs are blank.
Maybe caused by this: https://stackoverflow.com/questions/4740183/java-ubuntu-linux-swing-blank-window
See also: https://www.cs.fsu.edu/~jtbauer/cis3931/tutorial/ui/swing/threads.html
https://stackoverflow.com/questions/38323372/java-gui-is-blank
https://www.reddit.com/r/swaywm/comments/qu182b/having_weird_problems_trying_to_get_intellij_idea/
https://stackoverflow.com/questions/2484615/what-is-the-event-dispatching-thread
Probably related to this:
https://stackoverflow.com/questions/14486147/java-web-start-application-shows-empty-window-on-xmonad
Smithay/smithay#389
the sim could have an initate window, that asks the user about the size, the lanes and loading a save from the disk before starting the main program
Maybe blood puddle or something similar
The view should include a display for counting the dead frogs as well as the "survived" frogs that reached the top
Convert the project into a maven project, so it's usable in a standardized way.
letting the gui/model and the controller run on differnt threads could solve some issues with user response and could open up the model for timer implementation
the button for loading save-files needs some work, maybe with system-explorer-integration.
Something like this:
https://stackoverflow.com/questions/45202221/how-do-you-open-a-system-file-explorer-in-java-to-select-a-file-for-saving-or-lo
corresponds with #11 needs implementation in the controller class
save method in controller class tries to save components, that are not serializable. Therefore the save function does not work atm
Currently the cars/objects get saved in lots of different places. Split Frogs/Animals from Cars/Traffic-Objects and save them in one place in the model. Then, only reference to the names of said save point
Major cleanup for the code is needed! Javadoc-comments, deletion of unused classes/code and maybe some rework of some old code in the model/controller class
remove the debug-button and autofiill the default values to the text-fields that are actually there
Makes sense and is also needed for #42
Probably implemented by adjusting isInside() methods in Streetobject (or overwriting them)
We could use some different car types for the street, maybe big busses, even bigger tanks (two lanes) small motorcycles etc
For the deadline a huge UML diagram is needed. Maybe use a creator/tool of some sort
as timer are now a thing, the velocity values should be way lower, so that the simulation can run in a smoother fashion (goal: 24-30fps) without cars shooting over the highway
We need a Popup for displaying user-friendly error messages
The TextView-class needs some rework to get it up to the current state of the model. Shouldn't be that difficult
the simspeeds should be only declared in one place (controller class) and possible be implemented with enums (SimSpeed.FAST) etc for better maintanence
We need some sort of solution for displaying different lanes (painting onto DrawingSpacePanel), needs to be custom for different street sizes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.