Mostly working spatical map with 2 level collision/space structure. Not the best implementation but this is the idea.
This commit is contained in:
parent
fd53f92fe6
commit
d6326c9e41
7 changed files with 60 additions and 31 deletions
|
@ -31,7 +31,8 @@ namespace gui {
|
|||
}
|
||||
|
||||
DinkyECS::Entity MainUI::camera_aim() {
|
||||
if($level.collision->occupied($rayview.aiming_at)) {
|
||||
// what happens if there's two things at that spot
|
||||
if($level.collision->something_there($rayview.aiming_at)) {
|
||||
return $level.collision->get($rayview.aiming_at);
|
||||
} else {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue