SpiderBasic 2.10 beta 1 est disponible sur votre compte
Cordova pour android et des nouvelles bibliothèques vous attendent
Le 2017-04-10 13:56:21, par comtois, Responsable Purebasic
Je fais l'annonce vite fait, je ferai mieux pour la version finale. Vous trouverez des exemples et plus d'infos ici
Voici la liste des nouveautés :
Source de l'information
Voici la liste des nouveautés :
- Added: Accelerometer library
- Added: Geolocation library
- Added: InAppPurchase support for iOS
- Added: BatteryLevel(), DeviceInfo(), VibrateDevice()
- Added: #PB_String_PlaceHolder flag to StringGadget() to set a placeholder at creation
- Added: #PB_Event_SizeDesktop event to monitor a desktop resize without having a background window
- Added: ResizeScreen() to resize an already created screen
- Added: Cordova command can be executed via Import/EndImport
- Added: Android app is immediately run on the device once deployed
- Changed: reworked the InAppPurchase library
- Changed: switched from crosswalk to cordova on Windows for Android. NOTE: cordova requires internet connection to build an app.
- Optimized: Android app size is now much smaller (1,5 MB instead of 20 MB)
- Removed: TouchRadiusX() and TouchRadiusY() as it was only working on FireFox
- Fixed: some compiler and library bugs
- Added: Geolocation library
- Added: InAppPurchase support for iOS
- Added: BatteryLevel(), DeviceInfo(), VibrateDevice()
- Added: #PB_String_PlaceHolder flag to StringGadget() to set a placeholder at creation
- Added: #PB_Event_SizeDesktop event to monitor a desktop resize without having a background window
- Added: ResizeScreen() to resize an already created screen
- Added: Cordova command can be executed via Import/EndImport
- Added: Android app is immediately run on the device once deployed
- Changed: reworked the InAppPurchase library
- Changed: switched from crosswalk to cordova on Windows for Android. NOTE: cordova requires internet connection to build an app.
- Optimized: Android app size is now much smaller (1,5 MB instead of 20 MB)
- Removed: TouchRadiusX() and TouchRadiusY() as it was only working on FireFox
- Fixed: some compiler and library bugs
Source de l'information
-
comtoisResponsable PurebasicUn petit exemple de Fred pour tester les nouvelles fonctions (accéléromètre, géolocalisation, etc)
Code : 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57Procedure Events() Select EventGadget() Case 0 VibrateDevice(1000) Case 1 Debug DeviceInfo(#PB_Device_Model) Debug DeviceInfo(#PB_Device_Platform) Debug DeviceInfo(#PB_Device_UUID) Debug DeviceInfo(#PB_Device_Version) Debug DeviceInfo(#PB_Device_Manufacturer) Debug DeviceInfo(#PB_Device_Serial) Case 2 Debug BatteryLevel() Case 3 Debug "AccelerometerX: " + AccelerometerX() Debug "AccelerometerY: " + AccelerometerY() Debug "AccelerometerZ: " + AccelerometerZ() Debug "AccelerometerTime: " + AccelerometerTime() Case 4 Debug "GeolocationLatitude: " + GeolocationLatitude() Debug "GeolocationLongitude: " + GeolocationLongitude() Debug "GeolocationAltitude: " + GeolocationAltitude() Debug "GeolocationSpeed: " + GeolocationSpeed() Debug "GeolocationHeading: " + GeolocationHeading() Debug "GeolocationTime: " + GeolocationTime() EndSelect EndProcedure Procedure OnSizeDesktop() Debug "size desktop" ExamineDesktops() Debug "DesktopWidth(): " + DesktopWidth(0) Debug "DesktopHeight(): " + DesktopHeight(0) EndProcedure OpenWindow(0, 0, 0, 300, 205, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ButtonGadget(0, 0, 0, 300, 25, "Vibrate") ButtonGadget(1, 0, 30, 300, 25, "SystemInfo") ButtonGadget(2, 0, 60, 300, 25, "BatteryLevel") ButtonGadget(3, 0, 90, 300, 25, "Accelerometer") ButtonGadget(4, 0, 120, 300, 25, "Geolocation") StringGadget(5, 0, 150, 300, 50, "Geolocation", #PB_String_PlaceHolder) StartAccelerometer(100) StartGeolocation(30000) BindEvent(#PB_Event_Gadget, @Events()) BindEvent(#PB_Event_SizeDesktop, @OnSizeDesktop())
le 10/04/2017 à 14:00 -
comtoisResponsable PurebasicFalsam un utilisateur de SpiderBasic et de PureBasic a écrit un module pour utiliser babylon.js (moteur 3D) avec SpiderBasic
Pour plus de détail voir ici
http://forums.spiderbasic.com/viewtopic.php?f=16&t=1169
Les exemples en ligne donnent un bon aperçu de ce qu'il est possible de faire.
Il y a aussi une discussion ouverte sur le forum français de PureBasic pour en parler si ça vous intéresse
http://www.purebasic.fr/french/viewtopic.php?f=9&t=16692le 24/05/2017 à 13:20 -
comtoisResponsable Purebasicla beta 2 est disponible sur votre compte.- beta 2 is available and brings a lot of fixes.le 26/06/2017 à 20:58