Skip to content
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

Merged
merged 18 commits into from
Feb 3, 2022
Merged

Conversation

Jon-Cavaliere
Copy link
Contributor

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.

This allows us to load a specific ship per level with customized features
Copy and paste error showed index 5 three times
@Jon-Cavaliere Jon-Cavaliere linked an issue Feb 1, 2022 that may be closed by this pull request
Changed the shape points on ship_purple (Index 7) because they were offset on the Y-Axis from the bottom far too much
ships/shipList.lua Outdated Show resolved Hide resolved
I set it to 0.0001 for experimenting. I reverted it back to its orginial value with the commit
services/entity.lua Outdated Show resolved Hide resolved
@SuperShadowPlay
Copy link
Member

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.

@@ -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
Copy link
Member

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

@wyatt-herkamp
Copy link
Member

assets/sprites/not_stolen.png If you are using someone else's textures. lets make sure we are crediting and referencing the creator.

@Jon-Cavaliere
Copy link
Contributor Author

Thank you for reminding me. I meant to remove that asset. It was for testing purposes only. Will fix in a future commit

Jon-Cavaliere and others added 7 commits February 1, 2022 16:24
* Lua Check Cleanup  (#29)

* Clean Up

* Clean Up

* Repaired Comment

* If I am being honest. I really don't know what I am doing

* To Be honest. Not sure why we were looping in the first place

* Decided to go ahead and cleanup the debug

* Lua Check
services/entity.lua Outdated Show resolved Hide resolved
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
Copy link
Member

@jaythomas jaythomas left a 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.

@jaythomas jaythomas linked an issue Feb 3, 2022 that may be closed by this pull request
@jaythomas jaythomas merged commit c840f97 into master Feb 3, 2022
@jaythomas jaythomas deleted the new-ships branch February 3, 2022 01:20
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.

Add more textures Different player spaceships
4 participants