修改第五关的图

This commit is contained in:
RXXXBNUer
2025-11-06 18:43:47 +08:00
parent 780eb10f13
commit 8a7a79cea0
16 changed files with 39555 additions and 32 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View 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;
}

View File

@@ -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};

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

View File

@@ -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

View File

@@ -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;

View File

@@ -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:'',

View File

@@ -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:'',