修改第五关的图
This commit is contained in:
File diff suppressed because one or more lines are too long
1355
boards/default/python_skulpt_car/bg_highlight_f8cee65f.js
Normal file
1355
boards/default/python_skulpt_car/bg_highlight_f8cee65f.js
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
1203
boards/default/python_skulpt_car/bg_nonehl_d04ead5f.js
Normal file
1203
boards/default/python_skulpt_car/bg_nonehl_d04ead5f.js
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
20
boards/default/python_skulpt_car/inittool_3543dc69.js
Normal file
20
boards/default/python_skulpt_car/inittool_3543dc69.js
Normal file
@@ -0,0 +1,20 @@
|
||||
var $builtinmodule = function (name) {
|
||||
let mod= {__name__: new Sk.builtin.str("blocktool")};
|
||||
|
||||
var highlight = function(id) {
|
||||
id=Sk.ffi.remapToJs(id)
|
||||
Mixly.Editor.blockEditor.highlightBlock(id);
|
||||
};
|
||||
|
||||
var highlight_f=function(block_id) {
|
||||
return new Sk.misceval.promiseToSuspension(new Promise(function(resolve) {
|
||||
setTimeout( () => {
|
||||
highlight(block_id)
|
||||
resolve(Sk.builtin.none.none$);
|
||||
}, 800);
|
||||
}));
|
||||
}
|
||||
mod.highlight = new Sk.builtin.func(highlight_f);
|
||||
|
||||
return mod;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
var $builtinmodule=function(i){let n={__name__:new Sk.builtin.str("blocktool")};return n.highlight=new Sk.builtin.func((function(i){return new Sk.misceval.promiseToSuspension(new Promise((function(n){setTimeout((()=>{var o;o=i,o=Sk.ffi.remapToJs(o),Mixly.Editor.blockEditor.highlightBlock(o),n(Sk.builtin.none.none$)}),800)})))})),n};
|
||||
35751
boards/default/python_skulpt_car/main.bundle.054b4509.js
Normal file
35751
boards/default/python_skulpt_car/main.bundle.054b4509.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1,3 @@
|
||||
var mixpyProject=new MixpyProject,pyengine=new PyEngine({},mixpyProject);Sk.__future__=Sk.python3;
|
||||
var mixpyProject = new MixpyProject();
|
||||
var pyengine = new PyEngine({}, mixpyProject);
|
||||
Sk.__future__ = Sk.python3;
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@ import * as Blockly from 'blockly/core';
|
||||
NavExt.init();
|
||||
window.tf = tf;
|
||||
|
||||
let featureExtractor;
|
||||
// let featureExtractor;
|
||||
// featureExtractor = await tf.loadGraphModel("../common/media/tfmodel/model.json");
|
||||
// window.featureExtractor = featureExtractor;
|
||||
|
||||
@@ -321,7 +321,7 @@ async function prepare_qmyixtxi(imgTensor) {
|
||||
.sub(tf.scalar(1))
|
||||
.expandDims(0);
|
||||
|
||||
const features = featureExtractor.predict(preprocessedImg);
|
||||
const features = window.featureExtractor.predict(preprocessedImg);
|
||||
|
||||
let activation = features;
|
||||
return activation;
|
||||
|
||||
@@ -252,7 +252,7 @@ var $builtinmodule = function (name) {
|
||||
map:[
|
||||
[0, 1, 1, 1, 1, 1, 1, 0],
|
||||
[0, 1, 0, 0, 0, 0, 1, 0],
|
||||
[0, 1, 1, 2, 21, 0, 1, 0],
|
||||
[0, 1, 1, 2, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
@@ -260,7 +260,7 @@ var $builtinmodule = function (name) {
|
||||
[0, 0, 0, 0, 0, 0, 0, 0]],
|
||||
tiles: '../common/js/skulpt_mixcar/pic/tiles_road.png',//地图路径图片
|
||||
marker: '../common/js/skulpt_mixcar/pic/Start_final.png',//终点图标图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg4.jpg',//地图背景图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg1.jpg',//地图背景图片
|
||||
wall:'',
|
||||
award:'',
|
||||
barrier:'',
|
||||
|
||||
@@ -252,7 +252,7 @@ var $builtinmodule = function (name) {
|
||||
map:[
|
||||
[0, 1, 1, 1, 1, 1, 1, 0],
|
||||
[0, 1, 0, 0, 0, 0, 1, 0],
|
||||
[0, 1, 1, 2, 21, 0, 1, 0],
|
||||
[0, 1, 1, 2, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
[0, 0, 0, 1, 0, 0, 1, 0],
|
||||
@@ -260,7 +260,7 @@ var $builtinmodule = function (name) {
|
||||
[0, 0, 0, 0, 0, 0, 0, 0]],
|
||||
tiles: '../common/js/skulpt_mixcar/pic/tiles_road.png',//地图路径图片
|
||||
marker: '../common/js/skulpt_mixcar/pic/Start_final.png',//终点图标图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg4.jpg',//地图背景图片
|
||||
background: '../common/js/skulpt_mixcar/pic/bg1.jpg',//地图背景图片
|
||||
wall:'',
|
||||
award:'',
|
||||
barrier:'',
|
||||
|
||||
Reference in New Issue
Block a user