Mario: initial commit

This commit is contained in:
2021-04-25 22:42:55 +02:00
parent 7206dbf7c3
commit 19e66bf34a
14 changed files with 601 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "mario_visitor.hpp"
#include "../sdlpp/sdlpp_renderobject.hpp"
#include "objectids.hpp"
void MarioVisitor::visit( const SDLPP::RenderObject &obj ) {
auto id = obj.getId();
switch(id) {
case FLOOR_OVERWORLD_ID:
onGround = true;
break;
case DEATH_ID:
death = true;
break;
default:
break;
}
}