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

World: r3wp

[Games] talk about using REBOL for games

[unknown: 9]
16-Jan-2007
[51]
I don't know where I put it, but I once built a detailed checklist 
of functions we would build for each game platform we worked on. 
 I designed the game interface for WebTV, which also did not have 
Key Up.

The basics are:


Input: Key up, and at least 3 simultaneous key overlap.  This is 
needed because during actual game place, people will press directional 
and fire buttons at the same time.


Video: Double buffer - triple buffer is better.  Without this, one 
needs to know where the beam is (called beam tracing) so that rendering 
happens on the sync.


Threading:  It is very difficult to write a game in a single thread. 
 At the very least it needs to be able to trigger functions.


Sound: Sounds need to be started, stopped, and volume changed on 
the fly.  Multiple channels (4 minimum) for a full experience.
Maxim
16-Jan-2007
[52]
large images like what size?  I had a 10000x800 image a while back 
which scrolled nicely and seemed to behave... but maybe I didn't 
check the RAM.
Volker
16-Jan-2007
[53]
3kx3k IIRC
Maxim
16-Jan-2007
[54x3]
thanks Reichart... exactly the kind of data I wanted... obviously 
some of this is currently impossible.  :-(
just looking at my kid... playing a scrolling plane game... in 2 
minutes he figured out the random generator... so banked his plane 
at the far top of the screen and multiplied his high-score by 10 
 :-)  hehe
he's 4 years old :-)
[unknown: 9]
16-Jan-2007
[57]
This is why Rebol is not a possible game platform for us.  It is 
fine for games roughly like those written for the Apple II.
Volker
16-Jan-2007
[58]
directional+fire: ctrl, shift
[unknown: 9]
16-Jan-2007
[59]
Rebol is however a GREAT scripting system for games.
Maxim
16-Jan-2007
[60x3]
using timers we can analyse the input events and trigger our own 
filtered events... but that is not very nice
(nice as in fun to do)
although it would work.
[unknown: 9]
16-Jan-2007
[63x2]
Probably, the best thing is to write a C library to provide the bse, 
then write the game in Rebol.
bse = base
Maxim
16-Jan-2007
[65]
yeah, just using a vast amount of stubs.
Pekr
16-Jan-2007
[66x2]
hmm, we could also wrap SDL, no?
that is the whole platform for multimedia - surely not the best one, 
but universal ... but then - is it rebol? :-) There would be Core 
underneath and no View ...
Maxim
16-Jan-2007
[68]
is the exchange of GFX from img datatype to dll struct! pretty fast? 
can we switch pointers? or does all of that ram have to be copied 
all the time?
Volker
16-Jan-2007
[69]
some players where not that shocked by the framerate..
Pekr
16-Jan-2007
[70x2]
Cyphre could answer that. I invited him on ICQ to join this group 
...
If I understand the situation correctly, Cyphre is in charge of programming 
some elements of new View ....
Volker
16-Jan-2007
[72]
wishlist2: background music, mp3
Pekr
16-Jan-2007
[73]
hmm, when I look into R3 diagram - there are various modules mentioned, 
but no sound :-) the best sound system probably is fmod, but this 
one is commercial. They have fmod mini IIRC, which could be good 
fit for Rebol, but investors would have to buy a license for RT ....
Maxim
16-Jan-2007
[74]
hum actually Cyphre's defender game is pretty cool !
Volker
16-Jan-2007
[75]
where?
Maxim
16-Jan-2007
[76]
hum, I might have mixed up the name... on his rebsite  its called 
planet defense...
Volker
16-Jan-2007
[77x2]
ah, you go  through reb.
nobody wants to try to walk around in my game?^^
Maxim
16-Jan-2007
[79x2]
your cube pushing game is A LOT of fun.
what is the name again... I always forget.
Volker
16-Jan-2007
[81x4]
cube was not me
dockimbel?
i am talking about my networked memory killer
i did  a mahjong once, but  forgot  where it is
Geomol
16-Jan-2007
[85]
Ha! Planet Defense is fun! Never played that before. :-)
Maxim
16-Jan-2007
[86]
HIGHLY ADICTIVE.. do not start if you are at work !!   :-D
Geomol
16-Jan-2007
[87x2]
With a little library, many of the arcade grames from the 80'ies 
will be easy to do in REBOL.
To be played on mobile phones.
Volker
16-Jan-2007
[89]
how expensive is online-playing with phones?
Maxim
16-Jan-2007
[90]
too expensive like with all other phone related services  ;-)
Volker
16-Jan-2007
[91]
can it connect to wlans?^^
Geomol
16-Jan-2007
[92]
Not fair of me to say, that it'll be easy to do games. What I meant 
was, that it will be easier now with REBOL than back then.
Maxim
16-Jan-2007
[93]
hehe.
Gabriele
16-Jan-2007
[94]
volker... your game seems interesting, but i don't speak german ;)
Volker
16-Jan-2007
[95x2]
it has a  chat, meet  me and  i translate^^

But mainly  it shows  that  rebol can do some kind of adventure-graphic 
 and fast enough networking.
if there is interest, it needs a rewrite (homegrown spagetti), if 
someone is interest to team up. Alone its to boring^^
Ashley
16-Jan-2007
[97]
I've started on a hex-grid generator. Handles grain, background image, 
terrain and grid size so far.
Volker
16-Jan-2007
[98]
i  use positions and an immage for background-collision. less performant 
than grids but the map can be a big image without much work.
Oldes
16-Jan-2007
[99x2]
Just a quick rebirth of the R-Box2 script:

make-dir %rbox2/ change-dir %rbox2/ do http://box.lebeda.ws/~hmm/rbox2/r-box2_latest.r
maybe I could come back and finish a multiplayer version one day:-)