- Multiple python files: import _filename_ as _name_, to use in program -> name.classname()
- Github/Clubhouse integration:
- Can add event handler, which will move a story to "ready for review" automatically when I open a pull request- I can't do this without being an administrator.
- After a pull request is made, add [ch###] where ### is the story number in a new comment to associate them
- Making temporary player sprite:
- Locations: x = 0 -> far left, y = 0 -> top
- White rectangle was added as temporary player sprite and is positioned in the middle of the bottom of the screen. I didn't hardcode in the width/height/position, but instead used the width and height variables I had made for the screen itself.
- These are hardcoded, because I have yet to figure out normalized coordinates, so I will change them once I figure that out. It shouldn't affect the player sprite as long as I am only changing the width and height variables in the code.
- Opened pull request with a player class (not much in it right now) and changes to the code to create the player sprite correctly. Also added variables for width, height, etc. instead of having them hardcoded into the method parameters like I had previously.
- All of this took around 2 hours.
- Notes while working on movement:
- Maybe to create unlimited number of players, create "makeplayer" method that includes sprite and player creation, and add players to an array or something.
- Run player array/data structure into runloop, and then run for player in players -> getinput for each.
- Created movement- only with keyboard arrow keys for now, uses getInput method in player class
- Will add pull request for player movement update once player class update is merged- unable to push new changes without the file being merged.
- Took around 2 hours.
Work for Wednesday 5/24
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment