hi
how can i change(edit) the Data values programmatically?
File1.bb:
graphics 800,600
setgame()
function setgame()
restore mydata
read dat
;Why there is no Write Statement for Data values?
.....
end function
while not a
gaming code
flip
cls
wend
include "file2.bb"
----------
File2:
.mydata
;level 1
Data 1,1,1,1,,1,1,
Data 2,2,2,2,2,2,
Data 4,4,46,6,6,6
;level 2
Data 1,4,1,1,,1,1,
Data 2,2,9,2,2,2,
Data 4,4,46,6,6,6
;;
when i run my game i want to
edit the Data values
so the next time when i run it i should
get a new Data values
(Do i have to use File statement?)
how can i change(edit) the Data values programmatically?
File1.bb:
graphics 800,600
setgame()
function setgame()
restore mydata
read dat
;Why there is no Write Statement for Data values?
.....
end function
while not a
gaming code
flip
cls
wend
include "file2.bb"
----------
File2:
.mydata
;level 1
Data 1,1,1,1,,1,1,
Data 2,2,2,2,2,2,
Data 4,4,46,6,6,6
;level 2
Data 1,4,1,1,,1,1,
Data 2,2,9,2,2,2,
Data 4,4,46,6,6,6
;;
when i run my game i want to
edit the Data values
so the next time when i run it i should
get a new Data values
(Do i have to use File statement?)