<?php $ui_style_default = _hui('ui_style_default', 'card'); $ui_color_default = _hui('ui_color_default', 'light'); $ui_user_switch = _hui('ui_user_switch', true); $html_classes = array(); if ($ui_style_default) { $html_classes[] = 'ui-style-' . $ui_style_default; } if ($ui_color_default) { $html_classes[] = 'ui-color-' . $ui_color_default; } if (_hui('idark_default') || (_hui('idark') && _tb_is_dark())) { $html_classes[] = 'darking'; } $html_class_attr = $html_classes ? ' class="' . esc_attr(implode(' ', $html_classes)) . '"' : ''; $html_data_attr = (_hui('idark') && _tb_is_night()) ? ' data-night="1"' : ''; ?> <!DOCTYPE HTML> <html lang="<?php echo tb_get_lang() ?>"<?php echo $html_class_attr . $html_data_attr; ?>> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <meta name="apple-mobile-web-app-title" content="<?php echo get_bloginfo('name') ?>"> <meta http-equiv="Cache-Control" content="no-siteapp"> <script> (function(){var a=<?php echo $ui_user_switch ? 'true' : 'false'; ?>,s="<?php echo esc_js($ui_style_default); ?>",c="<?php echo esc_js($ui_color_default); ?>",r=document.documentElement;if(r.classList.contains("ui-style-simple")){s="simple"}else if(r.classList.contains("ui-style-flat")){s="flat"}else if(r.classList.contains("ui-style-card")){s="card"}if(r.classList.contains("ui-color-dark")||r.classList.contains("darking")){c="dark"}else if(r.classList.contains("ui-color-light")){c="light"}if(a){var ls=localStorage.getItem("dux-ui-style"),lc=localStorage.getItem("dux-ui-color");if(ls){s=ls}if(lc){c=lc}}r.classList.remove("ui-style-simple","ui-style-card","ui-style-flat");r.classList.remove("ui-color-light","ui-color-dark");if(s){r.classList.add("ui-style-"+s)}if(c){r.classList.add("ui-color-"+c)}if(c==="dark"){r.classList.add("darking")}if(c==="light"){r.classList.remove("darking")}})(); </script> <title><?php echo _title(); ?></title> <?php wp_head(); ?> <link rel="shortcut icon" href="<?php echo home_url() . '/favicon.ico' ?>"> </head> <body <?php body_class(_bodyclass()); ?>> <?php do_action('dux_header_before') ?> <header class="header"> <div class="container"> <?php _the_logo(); ?> <?php $_brand = _hui('brand'); if ($_brand) { $_brand = explode("\n", $_brand); echo '<div class="brand">' . $_brand[0] . '<br>' . (isset($_brand[1]) ? $_brand[1] : '') . '</div>'; } ?> <?php if( !_hui('idark_default') && _tb_idark() !== false ){ ?> <div class="sitedark" etap="darking"><i class="tbfa">&#xe6a0;</i><i class="tbfa">&#xe635;</i></div> <?php } ?> <?php if (_hui('ui_user_switch', true) && _hui('ui_switcher_s', true)) { ?> <div class="ui-switcher"> <div class="ui-switcher-group"> <button type="button" data-type="style" data-value="simple">简洁</button> <button type="button" data-type="style" data-value="card">卡片</button> <button type="button" data-type="style" data-value="flat">扁平</button> </div> <div class="ui-switcher-group"> <button type="button" data-type="color" data-value="light">浅色</button> <button type="button" data-type="color" data-value="dark">暗色</button> </div> </div> <?php } ?> <?php if (!is_search() && ((_hui('pc_search') && !wp_is_mobile()) || (_hui('m_search') && wp_is_mobile()))) { ?> <?php if(_hui('search_type_icon',true) || (!_hui('search_type_icon',true)&&_hui('m_search') && wp_is_mobile())){ ?> <div class="navto-search search-show"><i class="tbfa">&#xe611;</i></div> <?php }else{ ?> <?php get_search_form() ?> <?php } ?> <?php } ?> <ul class="site-nav site-navbar"> <?php _the_menu((wp_is_mobile() && has_nav_menu('nav_m')) ? 'nav_m' : 'nav') ?> </ul> <?php if (!_hui('topbar_off')) { ?> <div class="topbar"> <ul class="site-nav topmenu"> <?php _the_menu('topmenu') ?> <?php if (_hui('guanzhu_b')) { ?> <li class="menusns menu-item-has-children"> <a href="javascript:;"><?php echo _hui('sns_txt') ?></a> <ul class="sub-menu"> <?php if (_hui('wechat')) { echo '<li><a class="sns-wechat" href="javascript:;" title="' . _hui('wechat') . '" data-src="' . _hui('wechat_qr') . '">' . _hui('wechat') . '</a></li>'; } ?> <?php for ($i = 1; $i < 10; $i++) { if (_hui('sns_tit_' . $i) && _hui('sns_link_' . $i)) { echo '<li><a target="_blank" rel="external nofollow" href="' . _hui('sns_link_' . $i) . '">' . _hui('sns_tit_' . $i) . '</a></li>'; } } ?> </ul> </li> <?php } ?> </ul> <?php if (_hui('topbar_sign', 'on')) : ?> <?php if (function_exists('tbm_on') && tbm_on()) : ?> <?php do_action('tbm_sign_text', 'dux') ?> <?php if (current_user_can('publish_posts')) { ?> &nbsp; &nbsp; <a rel="nofollow" target="_blank" href="<?php echo site_url('/wp-admin/') ?>"><?php _e('后台管理', 'TBL') ?></a> &nbsp; &nbsp; <a rel="nofollow" target="_blank" href="<?php echo site_url('/wp-admin/post-new.php') ?>"><?php _e('写文章', 'TBL') ?></a> <?php if (is_single() || is_page()) { ?> &nbsp; &nbsp; <?php edit_post_link(__('[编辑]', 'TBL')) ?> <?php } ?> <?php } ?> <?php elseif (is_user_logged_in()) : global $current_user; ?> <?php _moloader('mo_get_user_page', false) ?> Hi, <?php echo $current_user->display_name ?> <?php if (_hui('user_page_s')) { ?> &nbsp; &nbsp; <a rel="nofollow" href="<?php echo mo_get_user_page() ?>"><?php _e('进入会员中心', 'TBL') ?></a> <?php } ?> <?php if (current_user_can('publish_posts')) { ?> &nbsp; &nbsp; <a rel="nofollow" target="_blank" href="<?php echo site_url('/wp-admin/') ?>"><?php _e('后台管理', 'TBL') ?></a> &nbsp; &nbsp; <a rel="nofollow" target="_blank" href="<?php echo site_url('/wp-admin/post-new.php') ?>"><?php _e('写文章', 'TBL') ?></a> <?php if (is_single() || is_page()) { ?> &nbsp; &nbsp; <?php edit_post_link(__('[编辑]', 'TBL')) ?> <?php } ?> <?php } ?> <?php elseif (_hui('user_page_s')) : ?> <a rel="nofollow" href="javascript:;" class="signin-loader"><?php _e('Hi, 请登录', 'TBL') ?></a> &nbsp; &nbsp; <a rel="nofollow" href="javascript:;" class="signup-loader"><?php _e('我要注册', 'TBL') ?></a> &nbsp; &nbsp; <a rel="nofollow" href="<?php echo mo_get_user_rp() ?>"><?php _e('找回密码', 'TBL') ?></a> <?php else : ?> <a rel="nofollow" href="<?php echo esc_url(wp_login_url(get_permalink())) ?>"><?php _e('Hi, 请登录', 'TBL') ?></a> &nbsp; &nbsp; <a rel="nofollow" href="<?php echo wp_registration_url() ?>"><?php _e('我要注册', 'TBL') ?></a> &nbsp; &nbsp; <a rel="nofollow" href="<?php echo wp_lostpassword_url() ?>"><?php _e('找回密码', 'TBL') ?></a> <?php endif; ?> <?php endif; ?> </div> <?php } ?> <?php if (_hui('user_page_s') || (function_exists('tbm_on') && tbm_on())) { ?> <?php if (!is_user_logged_in()) { ?> <?php if (function_exists('tbm_on') && tbm_on()) : ?> <a rel="nofollow" href="javascript:;" class="m-icon-user" tbm-event="login"><i class="tbfa">&#xe641;</i></a> <?php else : ?> <a rel="nofollow" href="javascript:;" class="signin-loader m-icon-user"><i class="tbfa">&#xe641;</i></a> <?php endif; ?> <?php } else { ?> <?php _moloader('mo_get_user_page', false) ?> <a rel="nofollow" href="<?php echo mo_get_user_page() ?>" class="m-icon-user"><i class="tbfa">&#xe641;</i></a> <?php } ?> <?php } ?> </div> </header> <?php if (_hui('m_navbar')) { ?> <div class="m-icon-nav"> <i class="tbfa">&#xe612;</i> <i class="tbfa">&#xe606;</i> </div> <?php } ?> <div class="site-search"> <div class="container"> <?php get_search_form() ?> </div> </div> <?php if (is_single() && _hui('breadcrumbs_single_s') && hui_breadcrumbs()) { ?> <div class="breadcrumbs"> <div class="container"><?php echo hui_breadcrumbs() ?></div> </div> <?php } ?> <?php $ads_site_01_on = true; if (is_page_template('pages/navs.php') || is_page_template('pages/user.php') || is_page_template('pages/resetpassword.php')) { $ads_site_01_on = false; } $ads_site_01_on && _the_ads($name = 'ads_site_01', $class = 'orbui-site orbui-site-01'); ?> <?php do_action('dux_header_after') ?>

Make Your Own Scratch Games!


Make Your Own Scratch Games!
Authors: Anna Anthropy
ISBN-10: 1593279361
ISBN-13: 9781593279363
Released: 2019-07-02
Paperback: 192 pages
Book Description
Learn to make interactive games with Scratch—the beginner-friendly,block-based programming language from the MIT Media Lab! Anna Anthropy,game designer extraordinaire,will show you how to do everything from building a game map to creating animations and debugging the end product. Take a peek inside the history of video game design,learn programming basics,and turn your ideas into creative games that you can play and share with your friends.
Learn how to:
Draw characters like a hungry,leaf-eating bug
Animate characters—make them walk,jump,climb,and fall!
Create objects for your player to collect and obstacles to avoid
Design multiple levels to create a cave exploring platform game
Create sound effects and music for your games
Share your games online and use player feedback to improve your games
Brief Contents
Contents in Detail
Acknowledgments
Everyone Makes Games
1 Leaf Me Alonel: Scratch Basics
2Weird Bug Chowdown: Collecting Items and Avoiding Obstacles
3Hatlight: A Cave Exploring Platform Game
4Designing Levels
5Creating Sound Effects
6Where to Go from Here
Index

[/erphpdown]

下载地址 Download请完成验证以访问链接!
打赏
未经允许不得转载:finelybook » Make Your Own Scratch Games!

评论 抢沙发

觉得文章有用就打赏一下文章作者

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫

微信扫一扫