mcrfpy.Vector - support more convenience #109
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
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
mcrfpyfunctions to returnmcrfpy.Vectorobjects; 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::vector2fvssf::vector2iproblem; can we create a lightweight solution that permitsvector[0],vector[1]- indexes for.x,.yvector == (5, 6)- tuple value comparisondo
(0, 0)or(0.0f, 0.0f)compare as falsey?