-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lcd: Move Obj render logic to
LayerObj
Structs for other BG layers have been created as well (empty for now).
- Loading branch information
1 parent
7c39cd6
commit 37b1dc7
Showing
7 changed files
with
403 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use super::Color; | ||
|
||
pub mod layer_0; | ||
pub mod layer_1; | ||
pub mod layer_2; | ||
pub mod layer_3; | ||
pub mod layer_obj; | ||
|
||
pub trait Layer { | ||
fn render(&self, x: usize, y: usize) -> Option<Color>; | ||
} |
Oops, something went wrong.