Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
engine.cpp
00001 #include "engine.h" 00002 00003 00004 void engine::init(){ 00005 } 00006 00007 events engine::event_check(chara &p, obs &b, Gamepad &pad){ 00008 xy pxy = p.getxy(); 00009 if(b.x>-1){ 00010 if(((pxy.x - b.width < b.x)&&(pxy.x+7>b.x)) &&((pxy.y-b.height<b.y)&&(pxy.y+8>b.y))){ 00011 return DEAD; 00012 } 00013 } 00014 return NONE; 00015 } 00016 00017 00018 int engine::randomobs(){ 00019 int y = (rand() % (31))+ 5; 00020 return y; 00021 } 00022 00023
Generated on Mon Jul 18 2022 01:51:48 by
1.7.2