Skip to content

Commit 02d0f1f

Browse files
committed
Add entity
1 parent 865eee6 commit 02d0f1f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/ruby_snake/entity.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
module RubySnake
4+
module Entity
5+
def update(_dt, _key)
6+
raise NotImplementedError, "#{self.class} should implement `#update(dt, key)`"
7+
end
8+
9+
def draw(_canvas)
10+
raise NotImplementedError, "#{self.class} should implement `#draw(canvas)`"
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)