ongoing work, check of touching other objects won't work so far
This commit is contained in:
parent
38bbd5a2bb
commit
35113cc6cd
3
test01.c
3
test01.c
@ -166,6 +166,9 @@ int checkOtherObjectsTouchedForObject() {
|
|||||||
// return true if another object is touched
|
// return true if another object is touched
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
|
// BROKEN! That doesn't work, pixels of the moving object would also be considered.
|
||||||
|
// The direction must be considered, only the first pixels in the moving direction
|
||||||
|
// must be checked.
|
||||||
switch (object.shape) {
|
switch (object.shape) {
|
||||||
case e_O:
|
case e_O:
|
||||||
switch (object.rotation) {
|
switch (object.rotation) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user