r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Rebol School] Rebol School

Izkata
14-Feb-2009
[2010]
Rebol/View 2.7.6.4.2, on Ubuntu linux
kib2
14-Feb-2009
[2011]
>> X: complement ":"
== "Å"
For me :
>> length? X
== 1
>> X/1
== #"Å"

On Windows Seven with RebolView 2.7.6.3.1
Oldes
14-Feb-2009
[2012]
do you mean:
 valid-start-char: complement charset ":"
kib2
14-Feb-2009
[2013]
Oldes: you're right !
Vladimir
14-Feb-2009
[2014x4]
I have a question for you rebol experts :)
How would you make simple app like this:
Open window with 100x100 pixels and lets say control individual pixels 
on that window.... something like direct screen buffer - one pixel 
= one byte in an array...
what would be the "Rebol way" ?
Anton
14-Feb-2009
[2018]
Do you really need low-level access ? I suppose you don't mean simply 
this?

view window: layout [my-image: image (make image! 100x100) button 
"set pixel" [my-image/image/(random 100x100): white show my-image]]
Vladimir
14-Feb-2009
[2019x3]
I ask this because I want to try effect for demo that uses some math 
functions to draw pixels on certain coordinates....
what you wrote is just the thing I need! :) didnt know Image had 
that effect...  :)
have to go to lunch.... :) Thanks Anton!
Anton
14-Feb-2009
[2022x3]
Try also:
img: make image! 300x200
window: layout [size (img/size)]
window/image: img
view window
(Less faces in the resulting face hierarchy, so should be more efficient 
to redraw.)
Vladimir
14-Feb-2009
[2025x3]
how would you combine those two examples?
I did it.... :)img: make image! 320x200
window: layout [size (img/size + 100)
				button "set-pixel" [window/image/(random 100x100): white
									show window]
			   ]
window/image: img
view window
thanks Anton... this is perfect for what I want to do..... :)
Janko
14-Feb-2009
[2028]
nice example
Tomc
14-Feb-2009
[2029]
oldes. yes, with practice, my typing has improved from dropping letters 
to dropping words.
Gregg
14-Feb-2009
[2030]
In addition to poking pixels, don't forget the DRAW effect.
Anton
15-Feb-2009
[2031x3]
.. and the DRAW function.
draw img [line 0x0 300x200]
(DRAW is not good at setting individual pixels, though.)
Gregg
15-Feb-2009
[2034]
Agreed. But it's great if you want to at higher levels.
Vladimir
15-Feb-2009
[2035]
Thing is yesterday evenning I started messing with wxwidgets on my 
newly installed ubuntu on laptop and after few hours of not being 
able to produce anything usefull I gave up..... And then I asked 
Anton how to set it up in Rebol  :)


And after few lines of code in rebol I had just the thing I needed 
- simple 2d display to test algorythm for my new game :)
Gregg
15-Feb-2009
[2036]
That's REBOL for you. Congratulations on making it work so fast!
Vladimir
15-Feb-2009
[2037]
I used wxwidgets before... and it works... but I hate bloated stuff 
every day more and more... 

And Rebol way with one file download and simple text file few lines 
long working on linux and win just as it is............

Man, I'll wait for rebol3 and its modules and other more usefull 
stuff and wont look back.... :)

Until then I'll keep using rebol for stuff like ftp, email and simple 
interface stuff.....
Reichart
15-Feb-2009
[2038]
Vlad, cool stuff, what type of game?
kib2
15-Feb-2009
[2039]
Hi.  Just to thank to all of you who helped me starting with REBOL. 
My markup engine is getting better now. I even build a little page 
with it : http://kib2.free.fr/REBOL/index.html
Reichart
15-Feb-2009
[2040x4]
No jsMath TeX fonts found -- using image fonts instead.
These may 
be slow and might not print well.
Use the jsMath control panel to 
get additional information.
(and your page needs a title)
ie
 should be "i.e."
langage  should be language
Cool stuff!
kib2
15-Feb-2009
[2044]
Reichard: thanks for the report! (langage is French, I often made 
this mistake)

There's actuially no title, it was my intent. There will be later.
But you're right with jsMaths : it's *very* slow.
Reichart
15-Feb-2009
[2045x2]
You spell better than me, I assure you.
I figure I will simply give you some feedback if I notice it (and 
now you know I looked at your page) : )
kib2
15-Feb-2009
[2047]
Reichard: ok, thank you: the page will certainly evolve this week.
Vladimir
15-Feb-2009
[2048]
Reichart: Have you seen a game called Yoomp for Atari 8bit ?
http://www.youtube.com/watch?v=TNxICcU3bPo

Well, something like that... I'm messing with that tunnel effect 
... and it works :)
Geomol
15-Feb-2009
[2049]
kib, under "Images Like this:" on you page, it say: </strong>*ERROR 
no-value in: im-alt
kib2
15-Feb-2009
[2050x2]
Geomol: yes I know, I'm currently working on my code and it uploads 
every time my page !
Geomol: the image has been fixed; it's rather strange, I've tried 
to use locals in my function instead of global and that raised an 
error.
Geomol
15-Feb-2009
[2052]
Looks good now. Good work!
Reichart
15-Feb-2009
[2053]
Interesting...people still making Atari games.


One of my team makes emulators for about 15 old game machines, his 
goal is to preserve them before all is forgotten.
kib2
15-Feb-2009
[2054]
Good night, see you !
Anton
15-Feb-2009
[2055x2]
Vladimir, can we see what you've done so far with your Yoomp-like 
game ?
I did some special-effects demos a few years ago, maybe I can advise 
on techniques to improve it.
Vladimir
16-Feb-2009
[2057]
Well... it was supossed to be just an tunnel algorythm test and tunning... 
:)
My goal is to write Game like yoomp for C64 :)

Now when I think about it.. if I already have tunnel moving in rebol.... 
it would be quite easy to add a jumping ball to it.... :)
Will upload something usefull later in the day...
Henrik
16-Feb-2009
[2058]
Vladimir, are you in the demo scene?
Anton
16-Feb-2009
[2059]
Cool, I await with baited breath.