17 lines
407 B
C++
17 lines
407 B
C++
#pragma once
|
|
#include "element.h"
|
|
#include <SDL3/SDL.h>
|
|
#include "graphics.h"
|
|
|
|
class Wall : public Element {
|
|
public:
|
|
Wall(int px, int py) : Element(px, py) {
|
|
type = 940;
|
|
}
|
|
|
|
void draw(int posX, int posY, Logic0_RenderContext::RenderCtx* ctx) override {
|
|
SDL_SetRenderDrawColor(ctx->renderer, 100, 100, 100, 255);
|
|
SDL_FRect rect{ posX, posY, 40, 40 };
|
|
SDL_RenderFillRect(ctx->renderer, &rect);
|
|
}
|
|
}; |