Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/17cupsofcoffee/rl
/ Position
Class
Position
src/components.rs:5–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
use tetra::graphics::Color;
4
5
pub struct Position {
6
pub x: usize,
7
pub y: usize,
8
}
9
10
impl Position {
11
pub fn new(x: usize, y: usize) -> Position {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected