Jump to content


Photo

$100 Bounty For Hybrid Html Viewer!


  • Please log in to reply
28 replies to this topic

#16 Schnatterplatsch

Schnatterplatsch

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 218 posts
  • Gender:Male

Posted 27 June 2011 - 07:16 AM

Are you really sure you want this? It doesn't look that much more simple to use than e.g. Bennu(although I haven't used that much).

Anyway, I think it could be doable if you keep to xml. Things like

<if scroll= 1 then foo5.x +=1>  
<if scrool= 2 then foo5.x -=1>

would require preparsing that could end up dirty. Something like that would be easier to internally convert into xml:

<if "scroll=1">
  <inc "foo5.x, 1"/>
</if>

<if "scroll=-1">
  <dec "foo5.x, 1"/>
</if>

EDIT: or that:

<if scroll=1>
  <inc foo5.x, 1>
</if>

<if scroll=-1>
  <dec foo5.x, 1>
</if>

,...you see how close that would be to a normal language again?

ENDEDIT

Still, it wouldn't end up much simpler than lua combined with a basic game programming lib. If I would have to do this I would most likely use lua internally anyway.

Edited by Schnatterplatsch, 27 June 2011 - 07:22 AM.


#17 crow_riot

crow_riot

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1133 posts
  • Gender:Male
  • Location:.at
  • Interests:music & programming

Posted 27 June 2011 - 03:23 PM

maybe someone could just do a simple ruby/python/whatever script that converts from the magic xml syntax to bennu and compiles it?

#18 monstercameron

monstercameron

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 176 posts
  • Gender:Male

Posted 27 June 2011 - 04:29 PM

maybe someone could just do a simple ruby/python/whatever script that converts from the magic xml syntax to bennu and compiles it?

sounds good!

#19 Schnatterplatsch

Schnatterplatsch

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 218 posts
  • Gender:Male

Posted 27 June 2011 - 05:39 PM


maybe someone could just do a simple ruby/python/whatever script that converts from the magic xml syntax to bennu and compiles it?

sounds good!


Still, you should specify you language structured to get someone working on this. What's the exact syntax, what tags are allowed, what datastructures are there(animation, rect...).
You're offering a paid job here, so whoever does it needs to be secure what you want. Not that he finishes work but misinterpreted your examplecode or you say "but I wanted this and that feature in as well".

Don't get me wrong I don't want to offend you and your idea. I even think it could be a nice job to do, but I won't do it unless I really know _what_ to do.

#20 monstercameron

monstercameron

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 176 posts
  • Gender:Male

Posted 27 June 2011 - 06:02 PM

i am waiting to see if some one wants to pick it up...but yeah i am already starting to draw up plans.

#21 monstercameron

monstercameron

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 176 posts
  • Gender:Male

Posted 28 June 2011 - 04:06 AM

i know all of you guys think it is not a good idea but the new programmers wouldn't mind it at all. if i get it donei will post it so you can try it out, i might have a guy to get it done...any way here is the spec:
first draft of the spec!

<animation>
standard html attributes
other attributes from <img>
frames = "id1,id2,id3" - build animations out of <img> tags
timing - timing between frames in milliseconds

<audio>
standard html attributes
state
play(x%) - plays at x amount of time, default 0
pause - pauses the song, opun playing agoin will continue where it left off
stop - pauses the song and resets play(x%) to 0
<body>
profile - sets up controls for multiple devices(only aanoo right now) #Note- could be a doc type

<camera>
x/y - moves the camera view but doesn't affect the other items
zoom = "in/out" - zooms in/out the screen

<collision>
type = "hit, box" - hit is based off non-keyed pixel collision/box is based on two <img> tags touching
id - links to condition
<collision id="hero_badguy_weak" type="hit">
<var id="hero_health" value="(value-5)">
</collision>
vibration = "x%" - strenght of vibration

<div>
standard html attributes
divs are by default floating over each other like layers
they also run stuff concurrently(like multithreading) - if you can

<draw>
other attributes from <img>
id - name of the item
shape = "rect,poly,circle"
x1/x2/y1/y2 - for rect
X1-Xx/Y1-Yx - for poly
r = circle

<load>
initalize variables
load items eg. audio, images

<img>
standard html attributes
load type - this tells whether the img load on command on when needed
key - subracts colors from the image...green screen effect
alpha - adjusts the transparency
angle - the angle of the image
x/y - location within game area

<if>
// basic style if code
<if>
if foo > bar then something
-- or --
if foo > bar
something
else
somethingelse
endif
</if>
key
joy(direction) = x% - % for caanoo, 0/1 for other systems
button(1,2,3,4) = "tap, press, hold" - button states

mouse
mouse(1,2,3) = "0/1" - as interactive entity

<shake>
vertical - how much movement vertically
horizontal - how much movement horizontally

<system>
volume - how loud
brightness - how bright
vibration = "x%" - vibration strenght

<var>
id - name of item
value - content of item
type = "var, 2d, 3d"
position - position in array, can retrieve var value without id with the position

<video>
standard html attributes
attributes from audio
attributes from <img>

Edited by monstercameron, 28 June 2011 - 04:07 AM.


#22 monstercameron

monstercameron

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 176 posts
  • Gender:Male

Posted 29 June 2011 - 09:11 PM

the spec may change to be more basic in design without xml/html style syntax!

#23 Hardyx

Hardyx

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 263 posts
  • Gender:Male

Posted 11 August 2011 - 06:43 PM

the spec may change to be more basic in design without xml/html style syntax!

Good, you are defining the language, this is the first step to see this implemented. But in my oppinion is a weird language and very limitated to animations. Games often uses complex conditions like: "if (x>0) and (x>100) then a=3; b=5; endif" ¿How do you want to manage this?
Last question ¿Why create a game language over a web browser? ¿Why not create a simple syntax language like BASIC or Pascal?, is a bad decission in a handheld device, because this apps take a great amount of memory. There are no good web browsers in Caanoo too.

You can try Lua, is a very easy scripted language working on Caanoo. It's used for begginers in psp for program games too.

Edited by Hardyx, 11 August 2011 - 06:46 PM.


#24 monstercameron

monstercameron

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 176 posts
  • Gender:Male

Posted 12 August 2011 - 05:21 AM

yeah i agree it was a weird idea. also i just got into love2d with lua...the syntax is very close to vb.net!

#25 Hardyx

Hardyx

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 263 posts
  • Gender:Male

Posted 19 September 2011 - 10:31 PM

Support for Caanoo in GLBasic is comming soon...

Edited by Hardyx, 21 September 2011 - 02:11 PM.


#26 kayuz

kayuz

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 559 posts
  • Gender:Male

Posted 20 September 2011 - 02:04 PM

GOOD NEWS,will be more easy to dev on the caanoo with it?

#27 ghead2k

ghead2k

    Member

  • Members
  • PipPip
  • 11 posts
  • Gender:Male
  • Location:Germany Aachen

Posted 20 September 2011 - 03:44 PM

Support for Caanoo in GLBasic in comming soon...


Really? If thats true, I will place my order :)

#28 Akabei

Akabei

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 435 posts
  • Gender:Male
  • Location:Braunschweig, Germany

Posted 20 September 2011 - 06:11 PM

The german gp2x forum says itīs already there.

#29 Hardyx

Hardyx

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 263 posts
  • Gender:Male

Posted 21 September 2011 - 02:33 PM

GOOD NEWS,will be more easy to dev on the caanoo with it?

As easy as I hope a new wave of games/apps for Caanoo. B)