BaselScript


× SPRACHE NACHRICHTEN BESCHREIBUNG BEISPIELFILME INSTALLATION BEISPIELE -------------
   
Beispiele
   
             
   

13_1_game15

   
// b1_1 b2_1 b3_1 b4_1
// b1_2 b2_2 b3_1 b4_2
// b1_3 b2_3 b3_1 b4_3
// b1_4 b2_4 b3_1 b4_4
scene=1 name= "15" colorscheme=_white
section init
     if #_orientation == portrait
          #form=port
     else
          #form=land
     endif
     // at the beginning we will exchange the contents of some buttons
     #a=$math.random(1,4)
     if #a == 1
          #dummy=$form.exchange_text (#form,b4_4,b1_2)
          #dummy=$form.exchange_text (#form,b2_3,b2_2)
     endif
     if #a == 2
          #dummy=$form.exchange_text (#form,b3_4,b2_2)
          #dummy=$form.exchange_text (#form,b4_1,b1_2)
     endif
     if #a == 3
          #dummy=$form.exchange_text (#form,b3_4,b2_4)
          #dummy=$form.exchange_text (#form,b2_4,b1_1)
     endif
     if #a == 4
          #dummy=$form.exchange_text (#form,b1_2,b1_3)
          #dummy=$form.exchange_text (#form,b4_4,b2_1)
          #dummy=$form.exchange_text (#form,b4_3,b3_2)
     endif
     call section=test
     draw form=#form
end section

------------------------------------------------------------------
form port
     tile=text x=60 y=50 w=680 text=@g15help h=160 weight=normal gravity=central size=40 style=italic
     tile=property w=160 h=160 bgcolor=black size=40 color=white
     tile=button name=b1_1 section=b1 x=60 y=250 text=1
     tile=button name=b2_1 section=b2 x=230 y=250 text=2
     tile=button name=b3_1 section=b3 x=400 y=250 text=3
     tile=button name=b4_1 section=b4 x=570 y=250 text=4
     tile=button name=b1_2 section=b5 x=60 y=420 text=5
     tile=button name=b2_2 section=b6 x=230 y=420 text=6
     tile=button name=b3_2 section=b7 x=400 y=420 text=7
     tile=button name=b4_2 section=b8 x=570 y=420 text=8
     tile=button name=b1_3 section=b9 x= 60 y=590 text= 9
     tile=button name=b2_3 section=b10 x=230 y=590 text=10
     tile=button name=b3_3 section=b11 x=400 y=590 text=11
     tile=button name=b4_3 section=b12 x=570 y=590 text=12
     tile=button name=b1_4 section=b13 x=60 y=760 text=13
     tile=button name=b2_4 section=b14 x=230 y=760 text=14
     tile=button name=b3_4 section=b15 x=400 y=760 text=15
     tile=button name=b4_4 section=b16 x=570 y=760 text=""
     tile=button name=b section=back x=200 y=1000 text=@back w=400 h=80 size=40 bgcolor=transparent color=black
end

--------------------------------------------------------------------
form land
     tile=text x=60 y=40 text=@g15help h=160 weight=normal size=38 style=italic
     tile=property w=140 h=140 size=40 weight=bold
     tile=button name=b1_1 section=b1 x=100 y=150 text=1
     tile=button name=b2_1 section=b2 x=250 y=150 text=2
     tile=button name=b3_1 section=b3 x=400 y=150 text=3
     tile=button name=b4_1 section=b4 x=550 y=150 text=4
     tile=button name=b1_2 section=b5 x=100 y=300 text=5
     tile=button name=b2_2 section=b6 x=250 y=300 text=6
     tile=button name=b3_2 section=b7 x=400 y=300 text=7
     tile=button name=b4_2 section=b8 x=550 y=300 text=8
     tile=button name=b1_3 section=b9 x= 100 y=450 text= 9
     tile=button name=b2_3 section=b10 x=250 y=450 text=10
     tile=button name=b3_3 section=b11 x=400 y=450 text=11
     tile=button name=b4_3 section=b12 x=550 y=450 text=12
     tile=button name=b1_4 section=b13 x=100 y=600 text=13
     tile=button name=b2_4 section=b14 x=250 y=600 text=14
     tile=button name=b3_4 section=b15 x=400 y=600 text=15
     tile=button name=b4_4 section=b16 x=550 y=600 text=""
     tile=button name=b section=back x=800 y=660 text=@back w=290 h=default BG=transparent
end

------------------------------------------------------------------------
section test
     #sum=0
     if $form.text(#form,b1_1)==1
          #sum= #sum+1
     endif
     if $form.text(#form,b2_1)==2
          #sum= #sum+1
     endif
     if $form.text(#form,b3_1)==3
          #sum= #sum+1
     endif
     if $form.text(#form,b4_1)==4
          #sum= #sum+1
     endif
------------
if $form.text(#form,b1_2)==5
     #sum= #sum+1
endif
if $form.text(#form,b2_2)==6
     #sum= #sum+1
endif
if $form.text(#form,b3_2)==7
     #sum= #sum+1
endif
if $form.text(#form,b4_2)==8
     #sum= #sum+1
endif
------------
if $form.text(#form,b1_3)==9
     #sum= #sum+1
endif
if $form.text(#form,b2_3)==10
     #sum= #sum+1
endif
if $form.text(#form,b3_3)==11
     #sum= #sum+1
endif
if $form.text(#form,b4_3)==12
     #sum= #sum+1
endif
-------------
if $form.text(#form,b1_4)==13
     #sum= #sum+1
endif
if $form.text(#form,b2_4)==14
     #sum= #sum+1
endif
if $form.text(#form,b3_4)==15
     #sum= #sum+1
endif
if #sum==15
     message "you won!"
endif
end section

===============================
// button b1 is pressed
section b1
     call section =set
     //if the button on the right is empty then exchange the contents of buttons
     if #21 == ""
          #dummy=$form.exchange_text (#form,b1_1,b2_1)
     endif
     //if the button below is empty then exchange the contents of buttons
     if #12 == ""
          #dummy=$form.exchange_text (#form,b1_1,b1_2)
     endif
     call section=test
     draw form =#form
end section

===============================
// button b2 is pressed
section b2
     call section =set
     //if the button on the left is empty then exchange the contents of buttons
     if #11 == ""
          #dummy=$form.exchange_text(#form,b2_1,b1_1)
     endif
     //if the button on the right is empty then exchange the contents of buttons
     if #31 == ""
          #dummy=$form.exchange_text(#form,b2_1,b3_1)
     endif
     //if the button below is empty then exchange the contents of buttons
     if #22 == ""
          #dummy=$form.exchange_text(#form,b2_1,b2_2)
     endif
     call section=test
     draw form=#form
end section

=============================
section b3
     call section =set
     if #41 == ""
          #dummy=$form.exchange_text (#form,b3_1,b4_1)
     endif
     if #21 == ""
          #dummy=$form.exchange_text (#form,b3_1,b2_1)
     endif
     if #32 == ""
          #dummy=$form.exchange_text (#form,b3_1,b3_2)
     endif
     call section=test
     draw form=#form
end section

============================
section b4
     call section =set
     if #31 == ""
          #dummy=$form.exchange_text (#form,b4_1,b3_1)
     endif
     if #42 == ""
          #dummy=$form.exchange_text (#form,b4_1,b4_2)
     endif
     call section=test
     draw form=#form
end section

============================
section b5
     call section =set
     if #22 == "" then
          #dummy=$form.exchange_text (#form,b1_2,b2_2)
     endif
     if #13 == "" then
          #dummy=$form.exchange_text (#form,b1_2,b1_3)
     endif
     if #11 == "" then
          #dummy=$form.exchange_text (#form,b1_2,b1_1)
     endif
     call section=test
     draw form=#form
end section

============================
section b6
     call section =set
     if #12 == "" then
          #dummy=$form.exchange_text (#form,b2_2,b1_2)
     endif
     if #32 == "" then
          #dummy=$form.exchange_text (#form,b2_2,b3_2)
     endif
     if #23 == "" then
          #dummy=$form.exchange_text (#form,b2_2,b2_3)
     endif
     if #21 == "" then
          #dummy=$form.exchange_text (#form,b2_2,b2_1)
     endif
     call section=test
     draw form=#form
end section

============================
section b7
     call section =set
     if #22 == "" then
          #dummy=$form.exchange_text(#form, b3_2,b2_2)
     endif
     if #42 == "" then
          #dummy=$form.exchange_text (#form,b3_2,b4_2)
     endif
     if #33 == "" then
          #dummy=$form.exchange_text (#form,b3_2,b3_3)
     endif
     if #31 == "" then
          #dummy=$form.exchange_text (#form,b3_2,b3_1)
     endif
     call section=test
     draw form=#form
end section

==============================
section b8
     call section =set
     if #32 == "" then
          #dummy=$form.exchange_text (#form,b4_2,b3_2)
     endif
     if #43 == "" then
          #dummy=$form.exchange_text (#form,b4_2,b4_3)
     endif
     if #41 == "" then
          #dummy=$form.exchange_text (#form,b4_2,b4_1)
     endif
     call section=test
     draw form=#form
end section

===============================
section b9
     call section =set
     if #23 == "" then
          #dummy=$form.exchange_text (#form,b1_3,b2_3)
     endif
     if #14 == "" then
          #dummy=$form.exchange_text (#form,b1_3,b1_4)
     endif
     if #12 == "" then
          #dummy=$form.exchange_text (#form,b1_3,b1_2)
     endif
     call section=test
     draw form=#form
end section

=================================
section b10
     call section =set
     if #13 == "" then
          #dummy=$form.exchange_text (#form,b2_3,b1_3)
     endif
     if #33 == "" then
          #dummy=$form.exchange_text (#form,b2_3,b3_3)
     endif
     if #24 == "" then
          #dummy=$form.exchange_text (#form,b2_3,b2_4)
     endif
     if #22 == "" then
          #dummy=$form.exchange_text (#form,b2_3,b2_2)
     endif
     call section=test
     draw form=#form
end section

==================================
section b11
     call section =set
     if #23 == "" then
          #dummy=$form.exchange_text (#form,b3_3,b2_3)
     endif
     if #43 == "" then
          #dummy=$form.exchange_text (#form,b3_3,b4_3)
     endif
     if #34 == "" then
          #dummy=$form.exchange_text (#form,b3_3,b3_4)
     endif
     if #32 == "" then
          #dummy=$form.exchange_text (#form,b3_3,b3_2)
     endif
     call section=test
     draw form=#form
end section

==================================
section b12
     call section =set
     if #33 == "" then
          #dummy=$form.exchange_text (#form,b4_3,b3_3)
     endif
     if #44 == "" then
          #dummy=$form.exchange_text (#form,b4_3,b4_4)
     endif
     if #42 == "" then
          #dummy=$form.exchange_text (#form,b4_3,b4_2)
     endif
     call section=test
     draw form=#form
end section

====================================
section b13
     call section= set
     if #24 == "" then
          #dummy=$form.exchange_text (#form,b1_4,b2_4)
     endif
     if #13 == "" then
          #dummy=$form.exchange_text (#form,b1_4,b1_3)
     endif
     call section=test
     draw form=#form
end section

=======================================
section b14
     call section =set
     if #14 == "" then
          #dummy=$form.exchange_text (#form,b2_4,b1_4)
     endif
     if #34 == "" then
          #dummy=$form.exchange_text (#form,b2_4,b3_4)
     endif
     if #23 == "" then
          #dummy=$form.exchange_text (#form,b2_4,b2_3)
     endif
     call section=test
     draw form=#form
end section

=========================================
section b15
     call section= set
     if #24 == ""
          #dummy=$form.exchange_text (#form,b3_4,b2_4)
     endif
     if #44 == ""
          #dummy=$form.exchange_text (#form,b3_4,b4_4)
     endif
     if #33 == ""
          #dummy=$form.exchange_text (#form,b3_4,b3_3)
     endif
     call section=test
     draw form=#form
end section

==========================================
section b16
     call section=set
     if #34 == "" then
          #dummy=$form.exchange_text (#form,b4_4,b3_4)
     endif
     if #43 == "" then
          #dummy=$form.exchange_text (#form,b4_4,b4_3)
     endif
     call section=test
     draw form=#form
end section

=============================================================================
section set
     #11=$form.text(#form,b1_1)
     #21=$form.text(#form,b2_1)
     #31=$form.text(#form,b3_1)
     #41=$form.text(#form,b4_1)
     #12=$form.text(#form,b1_2)
     #22=$form.text(#form,b2_2)
     #32=$form.text(#form,b3_2)
     #42=$form.text(#form,b4_2)
     #13=$form.text(#form,b1_3)
     #23=$form.text(#form,b2_3)
     #33=$form.text(#form,b3_3)
     #43=$form.text(#form,b4_3)
     #14=$form.text(#form,b1_4)
     #24=$form.text(#form,b2_4)
     #34=$form.text(#form,b3_4)
     #44=$form.text(#form,b4_4)
end

section back
     call script= 13_0_games
end section

end scene


   
   
 

LIST OF EXAMPLES

1. 000_templates
2. 000_template_dialog_buttons
3. 000_template_dialog_input_name_pass
4. 000_template_dialog_input_number
5. 000_template_dialog_message
6. 000_template_list
7. 000_template_list_from_directory
8. 000_template_menu
9. 000_template_menu_from_array
10. 000_template_menu_from_file
11. 000_template_menu_simple
12. 01_0_notes
13. 01_1_add_notes
14. 01_2_selectall_notes
15. 01_2_select_all_notes
16. 01_3_select_theme_notes
17. 01_4_edit_note
18. 01_5_edit_or_delete_note
19. 02_0_work_with_person
20. 03_0_directory
21. 03_10_directory_list
22. 03_10_show_directory
23. 03_11_copy_from_directory
24. 03_1_create_directory
25. 03_2_delete_directory
26. 03_3_copy_script_from_download
27. 03_4_list_screenshots
28. 03_5_list_cameras
29. 03_6_list_images
30. 03_7_list_icons
31. 03_8_list_flags
32. 03_9_copy_from_whatsapp
33. 04_0_server_and_web
34. 04_1_download_image
35. 04_2_download_music_files
36. 04_3_download_flags
37. 04_4_download_csv_stream
38. 04_6_my_links
39. 04_7_run_program
40. 05_002_draw_graphic
41. 05_003_draw_graphic
42. 05_004_draw_graphic
43. 05_00_draw_graphic
44. 05_01_draw_image
45. 05_02_draw_lines_and_points
46. 05_03_draw_chart
47. 05_04_draw_chart_lines
48. 05_05_draw_text
49. 05_06_draw_polygon
50. 05_07_draw_pendel
51. 05_08_draw_random_circle
52. 05_11_draw_circle
53. 05_12_draw_ellipse
54. 05_13_draw_rect
55. 05_14_draw_rotate
56. 05_14_finger_painting
57. 05_15_draw
58. 05_17_moving_circles
59. 05_18_draw_spiral
60. 05_19_draw_lights
61. 05_20_draw_chart_3columns
62. 05_21_draw_chart3
63. 05_21_draw_chart_points
64. 05_22_draw_color_bar
65. 05_23_pop_up_balls
66. 05_25_move_rect
67. 05_26_draw_arc
68. 05_26_draw_axes
69. 05_26_draw_sector
70. 05_26_draw_segment
71. 06_1_primitive_circle
72. 06_2_primitive_dialog
73. 06_3_primitive_loop
74. 06_4_primitive_menu
75. 06_5_primitive_multiline
76. 06_6_primitive_timer
77. 06_7_primitive_message
78. 06_8_primitive_form
79. 06_9_primitive_hello
80. 07_0_google_map
81. 07_1_show_map_dialog
82. 07_2_search_on_map_dialog
83. 07_3_navi_dialog
84. 07_4_navi_from_file
85. 07_5_map_street
86. 07_6_show_kml
87. 07_7_show_my_place
88. 08_0_form_tiles
89. 08_0_form_tiles_landscape
90. 08_10_tile_rect
91. 08_1_tile_button
92. 08_1_tile_button_landscape
93. 08_2_tile_text
94. 08_3_tile_image
95. 08_4_tile_radiobutton
96. 08_5_tile_checkbox
97. 08_6_tile_seekbar
98. 08_7_tile_spinner
99. 08_8_tile_togglebutton
100. 08_9_tile_switch
101. 09_0_geotest
102. 09_1_flags
103. 09_2_capitals
104. 09_2_capitals.script
105. 10_1_select_file
106. 11_0_work_with_scripts
107. 11_1_select_script
108. 11_2_browse_script
109. 11_4_select_myscript
110. 12_0_reactiontest
111. 12_1_reaction_black_square
112. 12_2_reaction_blue_square
113. 12_3_test_compute
114. 13_0_games
115. 13_1_game15
116. 13_3_puzzle
117. 14_000_work_with_files
118. 14_00_work_with_files
119. 14_0_work_with_files
120. 14_10_edit
121. 14_10_test_format
122. 14_11_encrypting_files
123. 14_12_restructuring
124. 14_12_restructurisation
125. 14_13_sort_and_sum
126. 14_14_convert_files
127. 14_15_update_records
128. 14_16_delete_records
129. 14_17_read_file_to_string
130. 14_18_select_color
131. 14_19_browse_xml
132. 14_1_browse_cars
133. 14_2_create_file
134. 14_3_list_from_file
135. 14_4_read_file
136. 14_5_2_save_result
137. 14_5_save_result
138. 14_6_get_record
139. 14_7_show_records
140. 14_8_select_color
141. 14_9_merge_files
142. 15_0_play_music
143. 16_0_play_sound
144. 17_0_test_function
145. 17_1_test_function_math
146. 17_2_test_function_string
147. 17_3_test_function_date
148. 17_4_test_function_files
149. 17_5_test_function_array
150. 17_6_test_function_all
151. 17_7_test_function_tables
152. 17_8_paragraph
153. 18_0_lessons
154. 18_square_equation
155. 19_0_notification
156. 20_0_calendar_test
157. 21_0_calculator
158. 22_shopping_list
159. 25_1_hash_get_capital
160. 25_2_simple_hash_array
161. 25_3_simple_array
162. 25_4_transform_dictionary
163. 25_work_with_array
164. 26_1_dictionary_support
165. 26_2_dictionary_languages
166. 26_3_dictionary_example
167. 26_dictionary
168. 28_installed_apps
169. 30_0_loop
170. 30_1_read_array_split_loop
171. 30_1_read_array_split_loop.script
172. 30_2_loop_in_loop
173. 30_loop
174. 32_search_internet
175. 32_search_on_the_internet
176. 33_date
177. abstract
178. bouquets
179. buttons-1
180. buttons-2
181. buttons-3
182. buttons-4
183. buttons-5
184. buttons-6
185. call_scriptA
186. call_scriptB
187. creating_dynamic_list
188. creating_dynamic_menu
189. examples_apps
190. examples_apps2
191. examples_basic_elements
192. examples_dialog
193. examples_form
194. examples_list
195. examples_main
196. examples_menu
197. examples_work_with_screen
198. hello_world
199. hello_world_1
200. hello_world_2
201. hello_world_2_landscape
202. hello_world_3
203. hello_world_4
204. hello_world_5
205. hello_world_6
206. hello_world_7
207. muster
208. myscripts
209. pie_chart
210. poem
211. property
212. scaling_form
213. SERVICE_example_person
214. sky
215. sky_landscape
216. words
217. _assistant
218. _assistant_CREATE_DIALOG
219. _assistant_CREATE_FORM
220. _assistant_CREATE_LIST
221. _assistant_CREATE_MENU
222. _assistant_DIALOG
223. _assistant_DIRECTORY
224. _assistant_FORM
225. _assistant_LIST
226. _assistant_MENU
227. _browse_script
228. _calendar
229. _colors
230. _copy_script_from_download
231. _CREATE_FILE_MANAGEMENT
232. _CREATE_FILE_SERVICE
233. _create_script
234. _create_service_file
235. _dictionary
236. _dictionary_example
237. _dictionary_support
238. _directories_extend
239. _download_and_browse_docu
240. _download_sample_list
241. _download_sample_scripts
242. _editor
243. _editor_landscape
244. _editor_portrait
245. _files_menu
246. _FILE_SERVICE
247. _get_dictionary
248. _get_examplescripts_from_server
249. _get_scripts_from_server
250. _get_systemscripts_from_server
251. _globals
252. _language
253. _last
254. _list_files
255. _mainmenu
256. _mainmenu.script
257. _menu
258. _more
259. _muster
260. _mydictionary
261. _mydictionary_example
262. _mydictionary_support
263. _myfirst
264. _my_friends
265. _notifications
266. _popupmenu
267. _popupmenu_win
268. _repaire
269. _sample_list
270. _scripts_menu
271. _selectmyscript
272. _selectproject
273. _selectsample
274. _selectsystem
275. _SERVICE_for_example_person
276. _setting_colorscheme
277. _setting_config
278. _setting_dateformat
279. _setting_emails
280. _setting_font
281. _setting_friends
282. _setting_language
283. _setting_menu
284. _setting_menu2
285. _setting_parameters
286. _setting_profile
287. _setup2
288. _setup3
289. _setup4
290. _setup6
291. _setup7
292. _setup_download_files
293. _setup_download_flags
294. _setup_download_icons
295. _setup_download_images
296. _setup_download_music
297. _setup_download_schemes
298. _setup_download_sound
299. _system_sound
300. _tables
301. _tables_fields
302. _template_dialog
303. _template_dialogue
304. _template_form
305. _template_list
306. _template_menu
307. _test_profile
308. _thanks
309. _trace
310. _upload_script
   
Die bereitgestellten Screenshots können geringfügig von den tatsächlichen Ergebnissen der Skripte abweichen.