Semester 4 Week 7 #246
Replies: 3 comments
-
Dear Underwatch team, great to see all the new stuff that got added to your game! We really like how easy it is to see what you worked on (the changelog etc). It's also nice that you're focusing on refactoring your code so everything will work smoothly for your demo. Your team time2shine |
Beta Was this translation helpful? Give feedback.
-
Hi Underwatch, It's awesome to see all the new additions to your game! It's appreciated how clear it is to see what you've worked on through the changelog and other updates. It's also commendable that you're focusing on refactoring your code to ensure everything runs smoothly for your demo. We're really looking forward to the final demo! Your CookPit |
Beta Was this translation helpful? Give feedback.
-
Dear Underwatch team, great to hear about the progress on Underwatch. The refactoring you've done on the pathfinding logic sounds like a big improvement. Using a private enum for directions and Java's varargs feature not only simplifies the code but also reduces the potential for developer errors. This should make future maintenance and enhancements much easier. Well done! Your Statify Team |
Beta Was this translation helpful? Give feedback.
-
Hello and welcome to this weeks development progress blog for our little game
Underwatch
🎮Code Refactoring
This week we decided to do a humongous refactoring of our code base, which happened to be long overdue and also this weeks task. Taking a look at the core problem we had to work around all this time:
In order for the path finding to work we rasterize the world into a 32x32 Grid and represent each of the cells as a single point in an array only containing information about whether or not this cell shall be considered walkable or not.
We had to use arcane combinations of
-1
and+1
to add connections to the neighboring cells.This is very prone to errors made by the developer, so we decided to refactor it with the use of a private enum as well as allowing a flexible amount or arguments with the
varargs
feature of Java.We took inspiration from the Book
Clean Code, Chapter 3.1, "Funktionen sollten klein sein[...]"
to make this refactoring and are quite happy with the results it yielded.Progress on the Game 🎮
Bugfixes on the Webpage 🐛
apply filter
button, so we don't DDOS our backend serverWhat's Changed
Full Changelog: v0.0.4-alpha...v0.0.5-alpha
This discussion was created from the release Semester 4 Week 7.
Beta Was this translation helpful? Give feedback.
All reactions