Forum Replies Created
-
AuthorPosts
-
Thanks guys!
moving around with the finger covers the screen … a virtual joystick could be fine
Smaller screen is harder I admit but you can put your finger anywhere on the screen once you selected an alien…
I just added Revengestar for Android to itch and I am waiting for Google Play approval!
Android version is FREE!
I just added Revengestar for Android to itch and I am waiting for Google Play approval!
Android version is free to play. Get it here
Pyro2 v1.0.3 is available!!!
An update of the Monkey2 / Pyro2 package is available on itch and I just uploaded an update to the module manager so I expect the update to be available for download anytime now.
This is an important update! It has countless fixes and some nice additions. This is the version that is driving Revengestar and Dumbot so it should be very stable.
I am also finishing up a Tiled loader. There is already a Pyro2 Tiled converter available and it works fine but while working on Dumbot I found it not very practical to convert the tilemap everytime it got an update. The Pyro2 Tiled loader can load tmx files directly eliminating the need to convert ( timesaver! ). I hope to finish and release the Tiled loader coming week!
Summary fixes and updates Pyro2 v1.0.3
• Fixed gui touch / mouse issues!
• Fixed tiled animation timing issues!• Changed OnOutro() to OnOutro( layerObject:LayerObject ) for the scenegraph layer objects
This way you can pass the object that caused the collision
• Added CreateImageMask command
• Added PixmapToTilemap command
• Added Screenshot command
• Added ScreenshotImage commandThe Pyro2 bananas moved to the Pyro2 module folders and Pyro2 demos and templates ( Pyro2 essentials ) can be downloaded here
Thanks guys!
Linux version maybe later. First iOS and Android.
I just added the OSX version to itch!
Looks great!
Just finished the last level!!!
Now time for some real testing and get get it ready for the stores!



Ready to rumble!
Revengestar coming soon!

By moving parts to OnRender or OnUpdate so that it recalculates things that depend on the screen dimensions.
In this case camera.SetVirtualWidth( 960 ) and background.Location=camera.VirtualResolution/2Better make background a field or global in this case.
[/crayon]Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051[crayon-5cba9de06ad60051905388 inline="true" ]#Import "assets/background.png"#Import "<std>"#Import "<mojo>"#Import "<pyro-scenegraph>" ' Import pyro scene.Using std..Using mojo..Using pyro.framework..Using pyro.scenegraph..Global scene:SceneClass PyroExample Extends WindowMethod New( title:String,width:Int,height:Int,flags:WindowFlags=WindowFlags.Resizable )Super.New( title,width,height,flags )scene=New Scene( Self )Local camera:=New Camera( scene )Local layer:=New Layer( scene )camera.SetVirtualWidth( 960 )Local background:=New LayerSprite( layer,Content.GetImage( "asset::background.png" ) )background.Location=camera.VirtualResolution/2 ' Center of the screen.EndMethod OnRender( canvas:Canvas ) OverrideApp.RequestRender()scene.Update() ' Update must be called before Draw!scene.Draw( canvas ) ' Draw all scene objects to canvas.EndEndFunction Main()New AppInstanceNew PyroExample( "Pyro example",640,480 )App.Run()EndI probably need OnMeasure in the ScreenManager as well, right? I’ve added it and tried different Layouts (like “strech”, “letterbox”)…
No, you don’t need it. Best to avoid it…
Hi Xaron,
Yes, I added SetVirtualHeight() and SetVirtualWidth() to the camera class. You use one or the other. For example SetVirtualHeight( 640 ) would set a height and the width stretches according to ratio so your virtual height is always 640
Same goes for SetVirtualWidth()
The camera VirtualWidth and VirtualHeight will return the correct values.
This is not ‘officially added’ because I need to test it with camera zooming, rotating etc. but if you don’t use the zoom or rotating it should work fine, actually I am using it in Revengestar.
I am having so much fun with Monkey2/Pyro2 right now! A very productive month.
Dumbot is picking up speed, made a lot of progress with the Pyro editor and I even had time to start a new project, a sequel to Defenstar… Revengestar!
Dumbot and Revengestar have priority ATM because I need some new games on the app stores!
Here is a sneak peek I did this in just a few days! Running very smooth on my iPad 3
-
AuthorPosts