-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a method for storing and setting ship attributes #28
Conversation
This allows us to load a specific ship per level with customized features
Copy and paste error showed index 5 three times
Changed the shape points on ship_purple (Index 7) because they were offset on the Y-Axis from the bottom far too much
I set it to 0.0001 for experimenting. I reverted it back to its orginial value with the commit
Other than my few comments, this looks great. Maybe at one point we may want to make a menu that loads a specific ship, but for now I think this is perfect. |
services/textures.lua
Outdated
@@ -4,7 +4,18 @@ textures.load = function() | |||
textures.spaceship = love.graphics.newImage("/assets/sprites/ship.png") | |||
textures.star = love.graphics.newImage("/assets/sprites/star.png") | |||
textures.planet = love.graphics.newImage('assets/sprites/planet.png') | |||
|
|||
-- Wyatt's Beautiful spedboost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No lying in the code plz
|
Thank you for reminding me. I meant to remove that asset. It was for testing purposes only. Will fix in a future commit |
Maps that don't specify a ship_type will default to Trevor's OG ship
#Conflicts ## player.lua ## textures.lua
Renamed the following: ship_ship_2 is now ship_2 ship_shuttle_no_boosters is now ship_shuttle_2 noPlanet.tmx is now no_planets.tmx All references are updated in the code.
- Changed no_planets.tmx default ship to ship_big
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New designs look great.
This allows us to load a specific ship per level with customized features
in Tiled custom properties - integer shipType sets which index to use when spawning the player's ship.