{"id":78772,"date":"2024-03-17T14:41:30","date_gmt":"2024-03-17T13:41:30","guid":{"rendered":"http:\/\/www.emu-france.com\/?p=78772"},"modified":"2024-03-17T14:41:30","modified_gmt":"2024-03-17T13:41:30","slug":"consoles-portables-pyboy-v2-0","status":"publish","type":"post","link":"https:\/\/www.emu-france.com\/?p=78772","title":{"rendered":"[Consoles portables] PyBoy v2.0"},"content":{"rendered":"<p>Il s&rsquo;agit d&rsquo;un \u00e9mulateur Game Boy \u00e9crit en Python.<br \/>\n&nbsp;<br \/>\n<a href=\"https:\/\/www.emu-france.com\/wp-content\/uploads\/2020\/04\/pyboy.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-63308\" src=\"https:\/\/www.emu-france.com\/wp-content\/uploads\/2020\/04\/pyboy.gif\" alt=\"\" width=\"160\" height=\"144\" \/><\/a><br \/>\n&nbsp;<br \/>\nLes changements sont les suivants:<br \/>\n<em>&#8211; A lot of general fixes<br \/>\n&#8211; Improved documentation with examples<br \/>\n&#8211; pyboy.tick(10, True) now takes two optional parameters:<br \/>\n. n number of frames to progress<br \/>\n. render whether to render the screen on the last processed frame<br \/>\n&#8211; pyboy.screen_image() moved to pyboy.screen.image<br \/>\n&#8211; The \u00ab\u00a0botsupport\u00a0\u00bb module has been removed, and most of API is moved to the PyBoy object<br \/>\n&#8211; pyboy.button(\u2018a\u2019) can be used to send input, and will automatically release after 1 frame<br \/>\n&#8211; pyboy.button_press(\u2018a\u2019) allows for manual control of input<br \/>\n&#8211; pyboy.button_release(\u2018a\u2019) allows for manual control of input<br \/>\n&#8211; pyboy.memory[0x100:0x150] = 123 replaces all three pyboy.get\/set\/override_memory_value and extends it with an option to specify bank<br \/>\n&#8211; pyboy.hook_register(bank, address, callback, context) registers a callback at a specific point in your game. Used for fine-grained tracking of events and control of the game<br \/>\n&#8211; pyboy.symbol_lookup(symbol) to look up address for a symbol to use with memory read\/write<br \/>\n\u201cdummy\u201d and \u201cheadless\u201d windows have been merged into \u201cnull\u201d window because of the new pyboy.tick<br \/>\n&#8211; pyboy.game_wrapper Game wrappers are now automatically loaded and accessible through the game_wrapper property<br \/>\n&#8211; Remove fitness scores from game wrappers<br \/>\n&#8211; pyboy.game_area() is a shortcut for pyboy.game_wrapper.game_area()<br \/>\n&#8211; pyboy.game_area_collision() is a shortcut for pyboy.game_wrapper.game_area_collision()<br \/>\n&#8211; pyboy.game_area_dimensions(\u2026) can be used to configure game_area<br \/>\n&#8211; pyboy.game_area_mapping(\u2026) can apply a mapping to all game area tiles. I.e. simplify the tiles, or zero-out uninteresting tiles<br \/>\n&#8211; OpenAI Gym\/Gymnasium has been removed from PyBoy. It will be replaced by an example on the Wiki instead<br \/>\n&#8211; pyboy.memory_scanner allows to isolate memory address of interest<br \/>\n&#8211; Support for 768 CGB tiles vs. 384 in DMG mode<\/em><br \/>\n&nbsp;<\/p>\n<p class=\"p_telecharger_icone_zip\"><p class=\"p_telecharger_icone_zip\"><a class=\"telecharger_icone_zip\" href=\"https:\/\/www.emu-france.com\/?wpfb_dl=7973\" title=\"Download PyBoy\">T\u00e9l\u00e9charger PyBoy v2.7.1 (8.5 Mo)<\/a><\/p><\/p>\n<p class=\"p_site_officiel\"><a class=\"site_officiel\" href=\"https:\/\/github.com\/Baekalfen\/PyBoy\" target=\"_blank\" rel=\"noopener noreferrer\">Site Officiel<\/a><\/p>\n<p class=\"p_en_savoir_plus\"><a class=\"en_savoir_plus\" href=\"https:\/\/www.emu-france.com\/emulateurs\/333-consoles-portables\/62-nintendo-game-boy-gb-light-gb-color\/\">En savoir plus&#8230;<\/a><\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fb-share-button  \" data-href=\"https:\/\/www.emu-france.com\/?p=78772\" data-type=\"button_count\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Il s&rsquo;agit d&rsquo;un \u00e9mulateur Game Boy \u00e9crit en Python. &nbsp; &nbsp; Les changements sont les suivants: &#8211; A lot of general fixes &#8211; Improved documentation with examples &#8211; pyboy.tick(10, True) now takes two optional parameters: . n number of frames &#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-78772","post","type-post","status-publish","format-standard","hentry","category-par-defaut","uentry","postonpage-1","odd","post-author-Jets"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/pKi2R-kuw","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.emu-france.com\/index.php?rest_route=\/wp\/v2\/posts\/78772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emu-france.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.emu-france.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.emu-france.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emu-france.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78772"}],"version-history":[{"count":1,"href":"https:\/\/www.emu-france.com\/index.php?rest_route=\/wp\/v2\/posts\/78772\/revisions"}],"predecessor-version":[{"id":78773,"href":"https:\/\/www.emu-france.com\/index.php?rest_route=\/wp\/v2\/posts\/78772\/revisions\/78773"}],"wp:attachment":[{"href":"https:\/\/www.emu-france.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.emu-france.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.emu-france.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}