Latest Uploads
Rpg Potion Sprites


Super Shap ... ration Kit


Platdude Spotting


Nom nom nom


Rainbow Trout


King Salmon


Back to rychan's Blog ( Created 01 April 2014 | Last Edited 01 April 2014)
Development Diary : Beginning Monkey-X
Day 2
So, I decided to take a break from my usual Unity3D Stuff and have a bash at learning some Monkey-X instead.

Unity is great but I feel like trying my hand at something a litttle more involved. Why? Because it's fun to learn new stuff and getting to grips with proper classes should be a nice expereience. Also, writing some sort of framework is going to be a challenge for certain!

I may not be able to post too frequently as my time is divided between my day job as a web monkey, family and then coding games but I'll post when and where I can.

Anyhoo, Day 2 aand Day 1

With the thanks to the docmentation on the monkey site and a look through a couple of tutorials I've managed to cobble together a couple of classes with some basic functioonality. I've got the beginnings of a nice little Particle Class supporting layers, optional scaling, gravity and fading which seems like a decent start.

I've had a bit of fun with Matrix scaling to ensure any future android releases should scale nicely which I'll probably look at again after purchasing the full version and Monkeyed around with simple functions, quitting applications, playing a quick sound effect and opening browsers to certain urls.

Monkey seems to be pretty powerful, I tested out displaying over 1,000 particles onscreen, with alpha and referencing a couple of global images loaded in on init and nothing seemed to slow up. I have a feeling that the only thing slowing it up could be meprinting to the console at the moment!

Gonna write up a basic button class, depending on how the lil baby sat on my lap acts and see if I can get that interacting with the mouse. Then, maybe check out some sorta rectangle to rectangle collision maybe.

Highslide JS

Latest Comments

Posted : Tuesday, 01 April 2014, 16:21

Hello!! Welcome aboard!!!

General avoidance things.
HTML5 target, avoid using SetColor too much as it tends to slow down. HTML is alarmingly poor at doing that!
Android target, avoid using Additive Blend, as some devices similarly slow to a crawl, for some odd reason. Also, "not CLSing" doesn't work on all Android devices.

Homepage :
Posted : Tuesday, 01 April 2014, 16:32

Heyyy, thanks Jayenkai!

Will do, I've not played with SetColor yet. I'm guessing it's just as it would be in Flash though, still, thanks for the performance tips

Additive Blend could be nice for particles but for the moment I think I'm going to stick with just sprites with frame based animations, then see how things perform from there.

Is it considered okay to use globals for images, etc and effectively pass it in by reference? I'm figuring have a general load screen at the start for all (probably) assets then?

I love CLSing, takes me back to the days of Commodore,BBC and qBasic

Will try and post some sorta demos as I get things together, expect a bit of mish-mash for a while though

Homepage :
Posted : Tuesday, 01 April 2014, 16:41

Global-wise, Whatever works for you... Most Dev's nowadays try to avoid Globals, but I use the things all over the place. I much prefer to load an image/sound/giant array, then access it everywhere. Seems more natural to do it that way.
Monkey will happily let you do that, and ... Well, I've not broken it, so far, so that's alright!!

Homepage :
Posted : Tuesday, 01 April 2014, 17:12

\o/ Thanks Dude, will keep things posted on here

Homepage :
Posted : Wednesday, 02 April 2014, 15:56

I look forward to seeing your progress with Monkey-X.

Posted : Wednesday, 02 April 2014, 16:10

Hey, thanks Kuron, I've just made another quick post now before I head back to the editor

Homepage :
Posted : Thursday, 03 April 2014, 08:04

I've asked about this on the Monkey forums.

Since your entire program in Monkey is itself a class, the preferred method is to define Fields for that class. Anything that is a Field of your app class winds up being a globally accessible variable without being a 'global variable'.

I thought it was a silly distinction, myself.

Homepage :
Posted : Thursday, 03 April 2014, 11:10

Thanks 9572AD.

Will see if it causes grievances on older droids in the future, it's not like I will be showing off the code to others, unless something odd happens

Homepage :
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 554|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Buy Zelda
Jayenkai Sat 16:28
Repetitive Blogging
rskgames Fri 10:04
spinal Fri 06:46
Arduboy Owners Club
spinal Fri 02:30
AGameAWeek : 2017 - Part One
Jayenkai Thu 13:11
A New Korg Gadget!
Jayenkai Thu 12:30
SNES Mini?
rychan Thu 07:11
Steampunk Lamp
Jayenkai Wed 06:05
Finishing Off
rockford Tue 08:20
Weather in Games
rychan Tue 07:26

Latest Items
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
Showcase : Infinitron
Jayenkai Mon 07:50
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
Dev-Diary : PS2 to N64 Adapter
spinal Sun 10:49
Link : Vector Tutorials/Help page.
Pakz Thu 23:00
Blog : mini project
spinal Sun 10:13
Showcase : Blockman Returns
Jayenkai Fri 03:04
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
Snippet : Path Following
Pakz Mon 16:25

Who's Online
Sun, at 01:13
Sat, at 20:05
Sat, at 19:24
Sat, at 19:16
Sat, at 17:56
Sat, at 16:23
Sat, at 14:01
Sat, at 13:37
Fri, at 16:58
Fri, at 04:50
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.