Skip to content

Conversation

@github-classroom
Copy link

@github-classroom github-classroom bot commented Oct 23, 2022

👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to main since the assignment started. Your teacher can see this too.

Notes for teachers

Use this PR to leave feedback. Here are some tips:

  • Click the Files changed tab to see all of the changes pushed to main since the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.
  • Click the Commits tab to see the commits pushed to main. Click a commit to see specific changes.
  • If you turned on autograding, then click the Checks tab to see the results.
  • This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below.
    For more information about this pull request, read “Leaving assignment feedback in GitHub”.

Subscribed: @rbalmeida-git @P-arias @sharpworks-dev

github-classroom bot and others added 30 commits October 23, 2022 02:38
Built libGDX project structure
Developed initial barebones structure. Very limited functionality.
Added basic code to Path class
CoR pattern, not yet functional
please ignore, not important
Added gitignore file
Re-added levels-related class and interface files
Removed unnecessary files
I followed a YouTube tutorial series (https://youtube.com/playlist?list=PL_QPQmz5C6WUF-pOQDsbsKbaBZqXj4qSq) which shows how to make a 2D game in Java. The first few videos showed me how to structure this framework, but the video is showing how to make a different type of game, so I had to change many things about the code.

The framework I have here includes a Main.java class which starts the game, a GamePanel.java class which renders the game, and the very basics of towers. I have a superclass Entity.java which is intended to be the parent of both Tower.java and eventually Enemy.java when that is merged in.

Thus far, I have implemented the singleton pattern on GamePanel.java, as we only want one rendering of the game per instance of the application. I have also implemented the Enum pattern for the types of towers so that we can make balance changes to the game all in one place, and there is no chance of creating a tower with the wrong stats.

I also know this should have been broken into smaller commits. I wanted to finish the first few episodes of the tutorial, commit that, and then start making changes, but I didn't want gitHub to keep the files we don't need from the tutorial.
Set up basic framework for project and towers
Updated names on all final fields to be all caps with underscore spacing. Made Entity.java an abstract class with abstract definitions for update() and draw() since all entities must do this.
Added initial version of UML
Added javadoc comments on public or notable methods. Renamed TowerTypes.getSprite() to TowerTypes.getSpriteFilePath() for greater clarity.
Added more JavaDocs documentation
sharpworks-dev and others added 30 commits November 30, 2022 22:20
Implemented clone method in Enemy.java
Implemented enemy spawning
Added startX, startY, and startDir
Added all necessary logic and updated the levels text files
Added get methods in Level base class for startX, startY, and startDir.
Updated UML diagrams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants