DrakoBlaze [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=60046 program just not running, blank screen <p>So I'm new to Pico-8, and I've been studying tutorials on how to get things working. I've been trying to start develop a game state system based off of a tutorial. I've got a very minimal main menu setup with a sprite for a cursor, but for some reason my system that I attempted to replicate for the sake of testing from the tutorial identically just does not run a function, and my screen is just blank. Why wouldn't it be working? Any help would be really appreciated from a new and enthusiastic Pico-8 learner. The code is below:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>function _init() cls() scene=&quot;menu&quot; cursr_x=64 player={ x=0, y=0, } end function update() if scene==&quot;menu&quot; then update_menu() elseif scene==&quot;game&quot;then update_game() end end function draw() if scene==&quot;menu&quot;then draw_menu() elseif scene==&quot;game&quot;then draw_game() end end function draw_menu() cls() spr(12,20,20) spr(18,cursr_x,64) end function update_menu() --move cursor left if btn(⬅️) and cursr==64 then cursr_x=32 elseif btn(⬅️) and cursr==32 then cursr_x=96 elseif btn(⬅️) and cursr==96 then cursr_x=64 end --move cursor right if btn(➡️) and cursr==64 then cursr_x=96 elseif btn(➡️) and cursr==32 then cursr_x=64 elseif btn(➡️) and cursr==96 then cursr_x=32 end end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=45439 https://www.lexaloffle.com/bbs/?tid=45439 Sun, 21 Nov 2021 23:46:51 UTC