Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
12 user(s) are online (10 user(s) are browsing Forum)

Members: 0
Guests: 12

more...

Browsing this Thread:   1 Anonymous Users





Monkey demo translated/compiled for AROS386

Joined:
2006/4/7 1:34
Group:
Member
Posts: 466
Offline
Hi all,
bruZard released Monkey v0.2 yesterday and I translated and compiled the following code for AROS386, AROSPPC and AROSx64:
Strict  

Import amigaos3  

Function Main:Int()         
    
Local win:Window CreateWindow("Hallo Amiga"100100600400)     
    
Local mx:Int        0     
    Local my
:Int        0              

    Cls
(win)     
    
SetColor(win25500)          

    
Repeat         
        WaitEvent
(win)         
        
mx MouseX(win)         
        
my MouseY(win)                  
    
        If 
EventClass(win) = CLOSEWINDOW Then Exit         
        If 
MouseDown(winthen Plot(winmxmy)     
    
Forever          

    CloseWindow
(win)          

    Return 


End


And this is the app running in Icaros:
Click to see original Image in a new window















And bruZard just released v0.21 that fixes a bug for AROSx64! That's simply fantastic! Thank you bruZard!

Posted on: 2011/12/2 13:20

Edited by aha on 2011/12/4 6:32:47
Edited by aha on 2011/12/4 6:33:34
Transfer the post to other applications Transfer


Re: Monkey demo translated/compiled for AROS386
Guest_
Cool.

This is definately something Im interested to try out. Shame you cant compile on aros itself though. Even though its more practical sometimes Ive never really liked developing on a different machine than that Im working for.

Posted on: 2011/12/2 18:28
Transfer the post to other applications Transfer


Re: Monkey demo translated/compiled for AROS386

Joined:
2006/4/7 1:34
Group:
Member
Posts: 466
Offline
@fishy

Even more exciting is, that bruZard will port the open source translator and compiler files (without IDE) to AOS3. The port to AROS would then be a little step only...

Posted on: 2011/12/4 6:43
Transfer the post to other applications Transfer


Re: Monkey demo translated/compiled for AROS386

Joined:
2006/4/7 1:34
Group:
Member
Posts: 466
Offline
Hi all,
bruZard released Monkey v0.23 and I translated and compiled the following code for AOS3, AROS386 and AROSPPC (AROSx64 is not supported atm):
Import amigaos3  
Class myApp extends App     
    Field mx
:Int     
    Field my
:int     
    Field time
:Int     
    Field FPS
:Int     
    Field tmpFPS
:Int     
    Field tmpTime
:int     
    Field lastFPS
:Int     
    Field fnt
:Font          

    Method OnCreate
()         
        
fnt LoadFont("helvetica.font"16)         
        
SetFont(fnt)         
        
AppTitle("draw with Monkey")         
        
SetColor(2552550)         
        
ClsColor(90120200)         
        
Cls()     
    
End 
         
    Method OnUpdate
()         
        
mx MouseX()         
        
my MouseY()         
        
tmpFPS tmpFPS 1         
        tmpTime 
MilliSecs()                  

        if 
tmpTime time 1000             
            FPS       
tmpFPS             
            tmpFPS 
0             
            time   
tmpTime         
        
EndIf     
    
End          

    Method OnRender
()         
        if 
MouseDown() DrawRect(mx-1my-133)         
        if 
tmpTime <> time DrawText("FPS: " FPS " Time: " time1010)     
    
End 
End  

Function Main()     
    New 
myApp 
End


And this is the app running in Icaros:
Click to see original Image in a new window


Have fun!

Posted on: 2011/12/10 13:27
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
3638
2 nikolaos
nikolaos
3451
3 phoenixkonsole
phoenixkonsole
2991
4 magorium
magorium
2869
5 deadwood
deadwood
2315
6 mazze
mazze
2058
7 clusteruk
clusteruk
2052
8 ncafferkey
ncafferkey
2050
9 damocles
damocles
1788
10 Kalamatee
Kalamatee
1711
© 2004-2013 AROS Exec