Game programming in YAB - Printable Version +- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum) +-- Forum: Programming in yab (https://yab.orgfree.com/forum/forumdisplay.php?fid=1) +--- Forum: Help with programs (https://yab.orgfree.com/forum/forumdisplay.php?fid=4) +--- Thread: Game programming in YAB (/showthread.php?tid=102) |
Game programming in YAB - Luposian - 05-06-2018 I am interested in writing a very simple 2D game with a mouse-controlled player sprite. Are there any game-specific tutorials or guides for YAB for this purpose? RE: Game programming in YAB - bbjimmy - 05-07-2018 I think what you are looking for is partly shown in Walk.yab and Ping.yab in /boot/home/yab_work/Programs/Examples RE: Game programming in YAB - Luposian - 05-07-2018 I think the way to do this (based on what I've read from the "Programming YAB" e-book), would be to pull up the location of the mouse pointer (cursor) and then position the desired graphic in the exact position, hiding the mouse (which is "under" it). But the edges of the graphic have to be collision-detecting, not the mouse pointer. Hmm... RE: Game programming in YAB - lelldorin - 05-20-2018 you can also directly query the position of the mouse, but you can not create a mousepointer, if then just put a graphic to this point RE: Game programming in YAB - lelldorin - 05-29-2020 https://github.com/lelldorin/yab-experimental?files=1 I have Upload my experimental game test with yab on git |