Mioplanet Lab
Research & Development
SEARCH
     Home | MioScript Experimentation | Robot Mouse

  Topics
Multimedia Experimentation
MioScript Experimentation
Software Experimentation
Robotics
Finger Driven Applications
Musical Gadgets
Miscellaneous

  MioScript Experimentation
Valse
Robot Mouse
Digital Jewel
Flying Onion
Waves
DigiCater
Bee
Squared
Magnificator
MioClock
Flying Notes
Mio Jackpot
Magic Carpet
Falling Pooh
Timer

Robot Mouse


 A robot running over your desktop trying to follow the mouse.

Robot Mouse
Mioplanet Lab - Research & Development

This is an interesting example of how an object can be animated using the MioEngine Logo directives. 



Try robot_mouse.exe


 You can download and try the application.
This application is a prototype and some features may not work as expected on your computer.

 
 
Filerobot_mouse.exe
Size510 Kb
PlatformWindows 98, ME, NT4, 2000, XP, Vista
Start Download Now
Safe Download



Download Source Code


 The full source code is provided as a Mio Archive File.
With MioFactory, you can open this archive file, edit the source code and test the result.

 
 
Filerobot_mouse.mioa
Size26 Kb
FormatMioFactory Archive File
Start Download Now
 



MioScript Source Code

 MioScript is a scripting language aimed to create any kind of applications.
A free version of MioFactory is available to compile MioScript applications. 



 main.k 


event.load
      extern.close("{APP_NAME}") // Only one instance allowed
      app.init("{APP_ID}", "{APP_NAME}", "{APP_VERSION}", "{APP_BUILD}", "{CREATE_LOG}")
      
      system.priority(low)
      app.booster(true)
      
      anim.main.sensibility(20)
      window.main.canGoOut(true)
      
      &Sounds[] = "a^^b^^c^^d^^e^^f^^g^^h^^i^^k^^l"

      doEvent.RotateEvent()
event.end

event.Button:Click
      app.close()
event.end

event.Mouse:RightClick
      app.close()
event.end

event.RotateEvent
      window.main.stayOnTop(true)
      if(var.dec(soundPtr, 1, 0) = 0)
            &cS = num.random(0, 10)
            Sound.Volume(40)
            Sound.Play(&Sounds[&cS]".wav")
            &SoundPtr = num.random(5, 200)
      if.end
      window.main.setFocus(false)
      &Target = num.getAngle(window.main.left()+30, window.main.top()+30, mouse.x(), mouse.y())
      &Speed = num.getDistance(window.main.left()+30, window.main.top()+30, mouse.x(), mouse.y())
      &NewAngle = num.changeAngle(&NewAngle, &Target, 1)
      anim.main.direction(&NewAngle)

      &Angle = 360 - &NewAngle
      anim.main.speed(&Speed / 50 + 3)

      draw.main.rect(0,0,200,200,0)

      draw.main.Ellipse(10, 10, 40, 40, num.rgb(180,180,180))
      draw.main.Ellipse(num.cos(&angle, 15)+15, num.sin(&angle, 15)+15,30,30, num.rgb(180,180,180))

      draw.main.Ellipse(15, 15, 30, 30, num.rgb(200,150,70))
      draw.main.Ellipse(num.cos(&angle, 15)+20, num.sin(&angle, 15)+20,20,20, num.rgb(200,150,70))

      // Yeux
      draw.main.Ellipse = num.cos(&angle+10, 18)+28, num.sin(&angle+10, 18)+28,4,4, num.rgb(255,255,255)
      draw.main.Ellipse = num.cos(&angle-10, 18)+28, num.sin(&angle-10, 18)+28,4,4, num.rgb(255,255,255)

      window.main.shape.from.main(0,0,120,120)
      window.main.pos(null,null,120,120)

      doEvent.RotateEvent(15)
event.end


In the same topic


 
MioScript Experimentation
Mioplanet Lab - Research & Development
MioScript Experimentation
Various applications created to experiment and improve MioScript.

Bee
Mioplanet Lab - Research & Development
Bee
Bees flying on your desktop.

DigiCater
Mioplanet Lab - Research & Development
DigiCater
A sort of digital caterpillar moving on your desktop.

Digital Jewel
Mioplanet Lab - Research & Development
Digital Jewel
A Digital Jewel for your Desktop.

Falling Pooh
Mioplanet Lab - Research & Development
Falling Pooh
A pooh and it's balloon flying on your desktop.

Flying Notes
Mioplanet Lab - Research & Development
Flying Notes
A sliding window allows you to save data in six personal notes.

Flying Onion
Mioplanet Lab - Research & Development
Flying Onion
A ring rolling around a ball.

Magic Carpet
Mioplanet Lab - Research & Development
Magic Carpet
Enigmatic object with an animated shape.

Magnificator
Mioplanet Lab - Research & Development
Magnificator
A simple but perfectly efficient magnifier.

Mio Jackpot
Mioplanet Lab - Research & Development
Mio Jackpot
A jackpot game with sound effects and hi-score.

MioClock
Mioplanet Lab - Research & Development
MioClock
A clock for your desktop.

Squared
Mioplanet Lab - Research & Development
Squared
A full screen animation.

Timer
Mioplanet Lab - Research & Development
Timer
Rings when time is out.

Valse
Mioplanet Lab - Research & Development
Valse
Move an object with the keyboard and play music.

Waves
Mioplanet Lab - Research & Development
Waves
Simple animation using the MioEngine internal graphic engine.