mcrfpy.Vector - support more convenience #109
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
Refactoring & Cleanup
Tiny Feature
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: john/McRogueFace#109
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some refactoring caused
mcrfpy
functions to returnmcrfpy.Vector
objects; this broke a lot of Crypt of Sokoban, which was relying on tuples being returned. Instantiating vectors shouldn't be required to do these convenient tasks:vector.int
- return an integer vector (floor) - should compare with int tuples for convenience; much better thanmcrfpy.Vector(int(vector.x), int(vector.y))
sf::vector2f
vssf::vector2i
problem; can we create a lightweight solution that permitsvector[0]
,vector[1]
- indexes for.x
,.y
vector == (5, 6)
- tuple value comparisondo
(0, 0)
or(0.0f, 0.0f)
compare as falsey?