File tree Expand file tree Collapse file tree 5 files changed +24
-0
lines changed Expand file tree Collapse file tree 5 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ module.exports = {
28
28
) ,
29
29
startBlocks : '' ,
30
30
requiredBlocks : '' ,
31
+ minWorkspaceHeight : 1800 ,
31
32
freePlay : false
32
33
} ,
33
34
// Level builder defaults
Original file line number Diff line number Diff line change 32
32
display : block ;
33
33
content : ' ' ;
34
34
}
35
+
36
+ // Voxel game
37
+ #container {
38
+ width : 100% ;
39
+ height : 100% ;
40
+ min-width : 400px ;
41
+ min-height : 400px ;
42
+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def self.custom_maze
21
21
ARTIST = TURTLE = 'turtle' # heh
22
22
FLAPPY = 'flappy'
23
23
BOUNCE = 'bounce'
24
+ MINECRAFT = 'minecraft'
24
25
PLAYLAB = STUDIO = 'studio'
25
26
26
27
def self . custom_studio
@@ -51,6 +52,10 @@ def match?
51
52
app == MATCH
52
53
end
53
54
55
+ def minecraft?
56
+ app == MINECRAFT
57
+ end
58
+
54
59
def supports_sharing?
55
60
app == TURTLE || app == FLAPPY || app == BOUNCE || app == STUDIO
56
61
end
Original file line number Diff line number Diff line change 5
5
- embed = local[:embed] || @embed
6
6
- level['showFinish'] = local[:embed]
7
7
8
+ - if @game.minecraft?
9
+ #container {width:"400", height:"400"}
10
+ #crosshair
11
+ %img {src:"https://s3.amazonaws.com/cdo-dist/cdo-voxel/crosshair4.png" }
12
+
13
+ %script{type:" text/javascript" , src:" https://s3.amazonaws.com/cdo-dist/cdo-voxel/bundlev2.js" }
14
+
8
15
-if local[:embed]
9
16
#title
10
17
%h4{style: 'margin-left: auto; margin-right: auto; max-width: 800px;'}!= level['instructions']
Original file line number Diff line number Diff line change 5
5
get 'apps' , to : 'gallery_activities#index' , app : Game ::PLAYLAB
6
6
end
7
7
end
8
+
9
+ get '/s/minecraft/stage/1/puzzle/JehkobasFantasy_4.zip' , to : redirect ( '/voxel_textures.zip' )
10
+
8
11
resources :activity_hints , only : [ :update ]
9
12
resources :callouts
10
13
resources :videos do
You can’t perform that action at this time.
0 commit comments