Monkey-x example code blog

Community Forums/Monkey Talk/Monkey-x example code blog

Pakz(Posted 2014) [#1]
A few days ago I downloaded the free version of Monkey. I then also started a blog for it where I am going to put example source code on that can be copied and pasted into empty monkey projects.

I have around 20 examples on it so far.

Here is the link :

http://monkeygameprogramming.blogspot.nl/
If there are more then one Flash applets on one page then they might be buggy.

Here the link to the github page :
https://github.com/Pakz001/MonkeyXExamples

I also have a website where I can link to html5 versions of the examples. (Here I can use the html5 advantages over flash)
Link: http://cromdesi.home.xs4all.nl/

My java blog with code has around 200 posts and maybe I will get hooked on Monkey and also get to make a lot of examples for monkey on the monkey blog. If you have not gotten into Monkey because there are to little example code then maybe this Monkey blog can help with that.

Edit :

Direct Links : (There is a Flash applet on each page showing what the code does. You might need to press the mouse a number of times on the applet for it to accept input.)

On my google+ ( https://plus.google.com/u/0/109515261652216390114 ) a post is pushed every time a new example is created.


Getting started/beginners :
Monkey getting started - Adding up value through function example code
Monkey getting started - Printing Global variables Example code
Monkey getting started - Printing Constant variables example code
Monkey getting started - simple Rectangle Overlap example code
Monkey Getting started - Cls example code (clearing the screen with a color)
Monkey getting started - Drawing a red rectangle which moves code example
Monkey getting started - Random rectangles using for loop example code
Monkey getting started - Drawing and updating a 2d starfield code example
Monkey getting started - Setting up and drawing a tilemap code example
Monkey-X - Beginners - Moving a oval towards the mouse pointer Cos/Sin - code example
Monkey-X beginners- Moving/turning towards mouse cos/sin/atan2 - code example
Monkey-X beginners - Line Seperation example code.
Monkey-X - Beginners - Readpixels/WritePixels example
Monkey-X - Beginners - Array Resize - code example.
Monkey-X - Beginners - Array Length - code example.
Monkey 2d topdown moving the player with the cursor keys code example
Monkey - Drawing a rectangle below the mouse pointer code example.
Monkey - Player Class and drawing player class variables to the screen code example.
Monkey - Asteroid field with Class and List code example.
Monkey-X - String Slicing [0..4] (mid$) code Example
Monkey-X - Stack Pop and Push and Length and IsEmpty code example
Monkey-X - Millisecs, Width, Height and Date code example
Monkey-X - Draw Boxed Rectangle Code Example
Monkey-X - DrawPoly and DrawPoly using array code example
Monkey-X - WritePixel argb function and CreateImage code Example
Monkey-X - CreateImage, MidHandle, DrawImage scale and rotation code example
Monkey-X - Creating Images, writing pixels using Hex values code example
Monkey-X - Returning arrays from functions code example
Monkey-X - Empty Code Template
Monkey-X - Slopes (left/right down) Collision code example
Monkey-X - Drawing in Images(WritePixels) in real time - code example
Monkey-X - Matrix/SetAlpha/Rotate/Translate Effect - code example
Monkey-X - Center of Mass - code example
Monkey-X - Beginners - Rectangle Class and Fields - code example
Monkey-X - Putting/Calling functions in/from Classes - code example
Monkey-X - Beginners - Chaining and Classes and Self - code example
Monkey-X - Different sized (scaled) text - code example
Monkey-X - Lists in arrays - code example
Monkey-X - Lists in List - code example
Monkey-X - Beginners - Player firing bullet at enemy - code example
Monkey-X - Beginners - String position and FromChar - code example
Monkey-X - Beginners - List Count - code example
Monkey-X - Error command example
Monkey-X - RPG - Beginners - Making requesters code example
Monkey-X - Topdown Auto move and cursor keys - code example
Monkey-X - Beginners - Bouncing of the side and control - code example
Monkey-X - Beginners - Diagional bouncing and control - code example
Monkey-X - Beginners - Using/creating a Bool variable - code example
Monkey-X - Beginners - Using Rnd with a Bool Variable - code example
Monkey-X - Beginners - DeviceWidth and DeviceHeight - Example
Monkey-X - Beginners - Center text on screen (DrawText/DeviceWidth/DeviceHeight) - example
Monkey-X - Beginners - KeyHit(const) - example
Monkey-X - Beginners - KeyDown(Const) - example
Monkey-X - GetDate Seconds to Rnd Seed - code example
Monkey-X - TextWidth/DrawText/DeviceWidth - code example
MonkeyX - Wait/Busy animation - code example
Monkey-X - Making Image from 16 col Pallette - code example
Monkey-X - Point in Triangle 2D - code example
Monkey-X - Beginners - SetScissor - code example
Monkey-X - Beginners - Sorting StringLists - code example
Monkey-X - Beginners - Sorting IntLists - code example
Monkey-X - Getting started - Class setup - example
Monkey-X - Getting started - Class in List - updating and drawing - code example
Monkey-X - Beginners - Tinting a color - code example
Monkey-X - Beginners - DebugLog and DebugStop - code example
Monkey-X - Beginners - Error - code example
Monkey-X - Beginners - Strings - Contains - code example
Monkey-X - Beginners - String - ToUpper and ToLower - code example
Monkey-X - Beginners - String - StartsWith and EndsWith - code example
Monkey-X - Beginners - String - Replace - code example
Monkey-X - Beginners - String - Split - code example
Monkey-X - Beginners - String - ToChars - code example
Monkey-X - Beginners - String - FromChar - code example
Monkey-X - Beginners - Block Commenting #Rem - code example
Monkey-X - Rectangle Collision Helper - code example
Monkey-X - Beginners - Select and Default - code example
Monkey-X - Getting Started - Exit - code example
Monkey-X - Getting Started - Default Parameters - code example
Monkey-X - Beginners - Dot Product Helper - code example
Monkey-X - Beginners - Vectors Helper - code example
Monkey-X - Beginners - Vector Addition Helper - code example
Monkey-X - Beginners - Vector Subtraction Helper - code example
Monkey-X - Beginners - Vector Multiply Helper - code example
Monkey-X - Beginners - Vector Division Helper - code example
Monkey-X - Beginners - Vector Length Helper - code example
Monkey-X - Beginners - Unit Vector Helper - code example
Monkey-X - Beginners - Vector Rotation Helper - code example
Monkey-X - Beginners - Vector Projection Helper - code example

More difficult :
Monkey - 2D Player jumping code example
Monkey - CircleOverlap x1,y1,r1,x2,y2,r2 function code example
Monkey-x - Space Invaders Moving Alien wave code example
Monkey-X - 2d Fireworks using Lists code example
Monkey-X - 2D Sidescrolling map code Example.
Monkey-X - Creating and drawing an image from array code example
Monkey-X - Simple Topdown 2d Shooter code example
Monkey-X - Setting up and using multidimensional arrays (map[x][y]) - tilemap code example
Monkey-X - Platformer movement/player>map collision/player gravity code example
Monkey-X - Menu screen code example
Monkey-X - Topdown Tilemap with player movement code example
Monkey-X - Simple Cancel/Ok Requester code example
Monkey-X - Tilemap/Slopes/Player movement code example
Monkey-X - Platformer Game part - The Swinging ball - code example
Monkey-X - Platformer Moving Spikes code example
Monkey-X - Part of Defender game - Mountains/Flying - code example
Monkey-X - Random Terrain/Land Generator - Code example
Monkey-X - circlerectcollide collision function code example
Monkey-X - Another Circle to Rectangle Collision Function code example
Monkey-X - 2d Scrolling platformer with player and springy's - code example
Monkey-X - 2d Sidescrolling platformer with ai and bumpblocks - code example
Monkey-X - Simple 2d top down shooter with simple evading/following ai - code example
Monkey-X - Minimap and Map code example
Monkey-X - Basic space ship controls and scrolling (Matrix/Translate/Rotate) - code example
Monkey-X - 2d Platformer/tilemap jumping on ai - code example
Monkey-X - simple 2d top down space asteroid mining ai - code example
Monkey-X - Map tiles nearest to water highlighted - code example
Monkey-X - Organic behaviour with bots (repulsing) - code example
Monkey-x - Water surface counter (bug in older civ games) - code example
Monkey-X - Isometric map mouse/tile collision - code example.
Monkey-X - Roaming/Wandering ai which ray casts - code example
Monkey-X - Random obstacle avoidance - code example
Monkey-X - Beginners - Vectors code example 1
Monkey-X - Beginners - Vectors code example 2
Monkey-X - Beginners - Vectors code example 3
Monkey-X - Beginners - Vectors code example 4 (space ship method A)
Monkey-X - Beginners - Vectors code example 5 (space ship method B)
Monkey-X - Balanced 2d maps - code example
Monkey-X - TileMap inside a Class - code example
Monkey-X - 2d platformer Machine gun - code example
Monkey-X - 2d Platformer Flame thrower - code example
Monkey-X - Platformer Shotgun shooting - code example
Monkey-X - Simple single screen map editor - code example
Monkey-X - 3 dimensional arrays and Length - code example
Monkey-X - Fade in and Fade out - code example
Monkey-X - Screenwipe in and out - code example
Monkey-X - Shitting hamster algorithm - code example
Monkey-X - Mouse/screen Effect - code example
Monkey-X - 2d Block Pushing - code example
Monkey-X - Screen Wipe method 3 - code example
Monkey-X - Simple RPG Shop screen - code example
Monkey-X - Basic List view/selector - code example
Monkey-X - simple gui Tabber - code example
Part of RPG (Earth bound) battle screen - code example
Monkey-X - RPG Attack/Defence code example
Monkey-X - Rpg - Player fighting a enemy - code example
Monkey-X - Rpg - Leveling with XP - code example
Monkey-X - RPG - Beginners - Selector with 3 options - code example
Monkey-X - Random room placement map creator - example code
Monkey-X - RPG - Dungeon with monsters - code example
Monkey-X - inloop class creation and creating 2 dim array (meth) - code example
MonkeyX - Shooter with big destructable enemy - code example
MonkeyX - Line Collision/Overlap/Intersection - code example
Monkey-X - Moving Copper bars (rainbow effect) (demo) - code Example
Monkey-X - Copper Bars, Classes and Lists - code example
Monkey-X - 2d topdown Targeting aiming ahead - code example
Monkey-X - BreadCrumb artificial Intelligence - code example
Monkey-X - Simple Group Movement - code example
Monkey-X - Simple Pattern Movement - code example
Monkey-X - Rotating Astroids Image Array Class - code example
Monkey-X - Zombies throwing body parts 2d - Code Example
Monkey-X - Smarter group movement 2d - Code Example
Monkey-X - Platformer jumping and double jumping - code example
Monkey-X - GUI - Simple Vertical Slider (Color select) - Code Example
Monkey-X - Filled Balls, WritePixels/CreateImage/Class - code example
MonkeyX - Sideview Mining Map Generator - code example
MonkeyX - 2d Line Explosion Effect - code example
MonkeyX - Space Game Make/Rotate Poly and Cos Sin - code example
MonkeyX - Space game Ship/Map/Scrolling - code example
MonkeyX - Space Game Ship/Shooting/rotation - code example
MonkeyX - Heightmap/Texture/Image Generator - code example
MonkeyX - Map Island Dungeon Generator exp. - code example
MonkeyX - Tunneling and Rooms map generator - code example
Monkey-X - Red Clouds (drunken walk) - code example
Monkey-X - Tinting a Image using pixmap - code example
Monkey-X - Effect on Image (Hugi/Shade) - code example
Monkey-X - Texture by Smoothing (Hugi art.) - code example
Monkey-X - SinePlasma on Image (Hugi art.)- code example
Monkey-X - Speedtest with pixel pushing - code example
Monkey-X - 2d map and player infront-behind trees - code example
Monkey-X - Spreading 2 colors into palette - code example
Monkey-X - Make rainbow Image with random noise - code example
Monkey-X - Smoothed noisy rainbow from pallete - code example
Monkey-X - Example - Recursive Backtracking 2d Maze - code example
Monkey-X - Example - Additive Particle Flames - code example
Monkey-X - Midpoint Division Algorithm - code example
Monkey-X - Cos and Sin fun 01 - code example
Monkey-X - Flood Fill (seed fill) and Distance - code example
Monkey-X - Hollyday Greetings Screen - code example
Monkey-X - Roguelike Maps - code example
Monkey-X - Floodfill map distance - code example
Monkey-X - Circle Packing - Code Example
Monkey-X - Hill Algorithm - code example
Monkey-X - Particle Attraction - code example
Monkey-X - Path Following - code example
Monkey-X - Collision - Rectangle vs Rectangle - code example
Monkey-X - Collision - Circle vs Circle - code example
Monkey-X - Collision - Point vs Point - code example
Monkey-X - Collision - Line vs Line - code example
Monkey-X - Collision - Line Segment vs Line Segment - code example
Monkey-X - Collision - Circle vs Point - code example
Monkey-X - Collision - Circle vs Line - code example
Monkey-X - Collision - Circle vs Line Segment - code example
Monkey-X - Collision - Circle vs Rectangle - code example
Monkey-X - Collision - Circle vs Oriented Rectangle - code example
Monkey-X - Collision - Point vs Rectangle - code example
Monkey-X - Collision - Rectangle vs Line - code example
Monkey-X - Collision - Rectangle vs Line Segment - code example
Monkey -X - Collision - Point vs Oriented Rectangle - code example
Monkey-X - Collision - Line vs Line Segment - code example
Monkey-X - Collision - Line vs Oriented Rectangle - code example
Monkey-X - Maze - Binary Tree - code example
Monkey-X - Maze - Sidewinder Algorithm - code example
Monkey-X - Maze - Aldous-Broder - code example
Monkey-X - Maze - Wilsons Algorithm - code example
Monkey-X - Maze - Hunt and Kill Algorithm - code example
Monkey-X - Maze - Recursive Backtracker - code example
Monkey-X - Maze - Randomized Kruskals Algorithm - code example
Monkey-X - Maze - Simplified Prim's Algorithm - code example
Monkey-X - Maze - True Prim's Algorithm - code example
Monkey-X - Maze - Growing Tree Algorithm - code example
Monkey-X - Maze - Recursive Division Algorithm - code example
Monkey-X - Maze - Recursive Division with Rooms - code example

Difficult :
Monkey-X - Blocks color matching Puzzle game code example
Monkey-X - Platformer with roaming ai code example
Monkey-X - Topdown Scrolling RPG keys/coins/doors code example
Monkey-X - Basic Block Pushing game code example.
Monkey-X - 2d sideview flying with plane - code example.
Monkey-X - A-Star Pathfinding code example (A*)
Monkey-X - Cellular Automata code example
Monkey-X - Simple Pang game remake - code example
Monkey-X - Simple 2d Beat em Up - code example
Monkey-X - Cybernoid 2, 3 screens remade - code example
Monkey-X - RTS grouped units out of the way pushing - code example
Monkey-X - 1 to 5 room 2d Dungeon generator - code example
Monkey-X - 2d Dungeon Generator (small to large maps) code example
Monkey-X - Landmass/Islands floodfill numberer - code example
Monkey-X - Top Down 2d Racing game ai code example
Monkey-X - 2d Ray Casting on small map - code example
Monkey-X - 2d Maps with shore tiles system - code example
Monkey-X - Rotating platforms and player - code example
Monkey-X - Scrolling Platformer with climbing vines - code example
Monkey-X - Scrolling platformer with vines big level - code example.
Monkey-X - Map generator (zones) - code example
Monkey-X - Platformer with Elevators - code example
Monkey-X - RPG - Simple Inventory screen like diablo - code example
Monkey-X - RPG - Battle screen (4x*4x) - code example
Monkey-X - A*(astar) and heighmap random map generator - code example
Monkey-X - 2d topdown scrolling rpg with random maps - code example
Monkey-X - Bresenham's Line Algorithm - (function) - code example
Monkey-X - FLoodFill Pathfinding moving mobs - code example
Monkey-X - Platformer with WallCrawler(wall followingz) - Code Example
Monkey-X - 2d Map Generator (Mazelike) - code example
Monkey-X - RPG - Scrolling platformer - Mining.- Game Template
Monkey-X - Sidefilling Heightmap method - Code Example
Monkey-X - Another Map generator (failed maze generator) - code example
Monkey-X - Maze Generator - code example
MonkeyX - Tunneling/Rooms/Blurring map generator - code example
Monkey-X - Grey Background Image Generator - code example
Monkey-X - 2d topdown shooter - Between Space - code example
Monkey-X - Random Colored Textures - code example
Monkey-X - Random Maze and Random Cave tiles - code example
Monkey-X - Roguelike Explorer - code example
Monkey-X - RTS - Floodfill or Seedfill group pathfinding - code example
Monkey-X - Wall Tracing on Random Maps - code example


BlitzSupport(Posted 2014) [#2]
This is really good stuff!


Playniax(Posted 2014) [#3]
Yep, good idea!


MikeHart(Posted 2014) [#4]
While i applaud your effort, i think you should have at least give explainations to the beginners in your code. They will miss that.


Pakz(Posted 2015) [#5]
I have put direct links to the blog posts in the first post here. I wil update the list every now and then with the new things.


videz(Posted 2015) [#6]
Good Blog you got there, too bad I'm not into monkeyx atm.

Keep it up dude


Blitzplotter(Posted 2015) [#7]
Awesome code - found exactly what I was looking for in taking my first steps with Monkey, Thankyou ;)


Hotshot2005(Posted 2015) [#8]
IF Someone is new to Monkey and this is it.

There really good things to learn from there.

Well Done Pekz :-)


Pakz(Posted 2015) [#9]
I have kept adding posts with code and flash applets to the blog over the months. The list in the first post has grown to almost 150 posts. I have had under 10.000 pageviews since the start.

Sadly Flash will not be supported long in the future so the applets will stop working this year or next year maybe. I hope blogger wil not dissapear in the next years either.

I still have space for thousands of flash applets on google sites and can show them in blogger. I think it is pretty neat to have the working programs near the code.

I will keep updating the list in post 1 with the new things.


Brucey(Posted 2015) [#10]
Instead of Flash, couldn't you target HTML5 instead?


Pakz(Posted 2015) [#11]
I have not been able to find a guide/way for publishing html5 yet.


therevills(Posted 2015) [#12]
Firstly - TOP JOB! Great work!

find a guide/way for publishing html5 yet.

It's really easy, you just need to upload the html page (or just embed the js into a page of your own), the generated javascript and your assets.

1. Build for HTML5
2. Go into the build folder for the HTML output
3. Upload main.js
4. Upload a HTML which refers to main.js
4a. Either the MonkeyGame.html
4b. Or your own HTML page with something like this in it:
<div><canvas id="GameCanvas" width=640 height=480 tabindex=1></canvas></div>
<script language="javascript" src="main.js">Javascript not supported!</script>

5. Upload the data folder


Pakz(Posted 2015) [#13]
I tried it. I made a data folder on my google sites page and put the font there and the javascript file one directory up but it does not show on the posts when I make the post in blogger with the html part.

<div>
<canvas height="480" id="GameCanvas" tabindex="1" width="640"></canvas></div>
<script language="javascript" src="https://sites.google.com/site/html5gamethings/upload/main.js">Javascript not supported!</script>


I can host flash and could host java so I would expect js to work to.


degac(Posted 2015) [#14]

I hope blogger wil not dissapear in the next years either.


I will copy the content site immediately at this point!

I like the 'simple' style coding, basic & direct for the goal.


therevills(Posted 2015) [#15]
I tried it. I made a data folder on my google sites page and put the font there and the javascript file one directory up but it does not show on the posts when I make the post in blogger with the html part.


Looks like it how Google Site deals with javascript files.

It is not displaying because of this error:
Refused to execute script from 'https://sites.google.com/site/html5gamethings/upload/main.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.


And when you access the js directly, Google Site converts the GET to this:


So it is dealing with it as a HTML file, not a JS file :(

Do you know if you can access the "raw" JS file somehow from Google sites?

You might be better uploading it to GitHub:

http://stackoverflow.com/questions/17341122/link-and-execute-external-javascript-file-hosted-on-github


Jason W.(Posted 2015) [#16]
Pakz,

This is awesome, thanks for doing this.

Jason


Pakz(Posted 2015) [#17]
I just checked my blog and saw a message in the title of my test post that javascript is not supported. I put a post on the blogger forum asking for more info on what I can do. (maybe they will update with this feature) I have not tried the github thing yet. This is probably not working since javascript is not supported in blogger. Will wait until I get/find more information in the future.

The new Dropbox accounts also do not allow making html5 pages. from what I read and tried. Google drive also not.

I have not found any way of putting html5 things online yet that goes as easy as I had it with google drive for flash and java applets.

So I wil not be able to put Mojo 2 program windows on the blog since it does not work with flash. Haven't used mojo2 yet. Maybe I will just record video's for that then when I start in that.

Btw : I bought Monkey at the same time as BlitzMax and I liked Monkey so much that I have not programmed a single line in bmax yet! :) The programming with/in classes experience is very cool! And having programs run in browsers is da bomb!


therevills(Posted 2015) [#18]
The new Dropbox accounts also do not allow making html5 pages.

How new?

It works for me:

https://dl.dropboxusercontent.com/u/35103024/tutorials/hangman.buildv84b/html5/MonkeyGame.html


Pakz(Posted 2015) [#19]
I got a dropbox account this year and tried to follow the instructions from webpages that I found online. Did not work.
I spend some time trying to get html pages to display with dropbox but I could not get it working.
I just checked if there were new pages with a search but I got the same.


This is the link that I get when I share the monkey game html file from one of my dropbox filders. Is does not have that dl. part in front of it as with your link.

https://www.dropbox.com/s/0gojkbvrc1crw7b/MonkeyGame.html?dl=0


therevills(Posted 2015) [#20]
Hmmm...

This is what I do:

1. Copy the whole html5 build folder to the DropBox "Public" folder.
2. Right click on the MonkeyGame.html file and select "Copy public link"
3. Paste the link into a browser

https://dl.dropboxusercontent.com/u/35103024/tutorials/hangman.buildv84b/html5/MonkeyGame.html


Pakz(Posted 2015) [#21]
I have no Public folder. From what I read they changed that in later dropbox accounts. You can create a link from anything now in the dropbox account. I did try and create a public folder but it did not work.

Other:
If you follow me on google+ then you can see the new blog posts when they are posted. The list in this thread can take some time to be updated.

my google+ page.
https://plus.google.com/u/0/109515261652216390114/posts


Sledge(Posted 2015) [#22]
Did you try this, Pakz? https://www.youtube.com/watch?v=k5QAbfuWZlc


Pakz(Posted 2015) [#23]
In the video it says that it is not possible to do this with accounts created after 2012. The link in the video takes me to a page that says you can enable the public folder with a pro dropbox account.


Sledge(Posted 2015) [#24]
Ah, bummer -- I didn't see that bit, but yeah I found the statement here. Such a shame that they turned this feature off for new accounts!

I wonder if the other options listed here still work? Failing that, there's a post here that mentions a few alternatives.

Great blog, BTW!


Blitzplotter(Posted 2016) [#25]
Still loving this blog thread ;) Helping me tuns ;)


col(Posted 2016) [#26]
What are your 'tuns'? :D


Blitzplotter(Posted 2016) [#27]
Me tuns are the tingers at the end of me guns.

Shoulda been tons ;)


Blitzplotter(Posted 2016) [#28]
@Pakz, I've been coding in Monkey for about six weeks (albeit VERY sporadically), I continue to marvel at your fine examples of Monkey code - great work!


Pakz(Posted 2016) [#29]
List updated after 4 month break. Made an mining level generator today. It is in the more difficult section.


Blitzplotter(Posted 2016) [#30]
@Pakz, thanks for the update, great work ;-)


Pakz(Posted 2016) [#31]
I put a link on the right top side of the blog to a webpage that can compile and run monkey code. I think most of the code on the blog wil be able to run without errors on that.

The linked to page is by ImmutableOctet(SKNG) who made the compiler work online(html5)

http://regal-internet-brothers.github.io/webcc/


Pakz(Posted 2016) [#32]
I added more on the list above... The blog dashboard says I have 184 posts. Maybe I will reach 200 posts this month. I still have not touched Mojo2 though.

I just tried programming Monkey-X on the ipad mini in chrome. Not to sure if typing like that is good.


Blitzplotter(Posted 2016) [#33]
I still have not touched Mojo2 though.


Me neither Pakz, still focused on Monkey One - theres enough there for me to be getting my head around. Thanks for te additional examples - sterling work ;)


BlitzSupport(Posted 2016) [#34]
Wow, you weren't messing around! That's an amazing list now. Great work!


Pakz(Posted 2016) [#35]
Added 6 more links to the more difficult section(bottom 6) A number with Pixmaps based on instructions from hugi magazine code articles.

The speedtest is interesting. In Flash(in the blog post) it is very slow and in glfw and html5 it is pretty fast. There is a link on the blog where you can paste the code into a monkey 2 html5 compiler(textbox).


therevills(Posted 2016) [#36]
Hey Pakz - great work as normal!

Have you considered creating a GitHub project to host your examples?


Pakz(Posted 2016) [#37]
Yeah i opened up a github called monkeyxexamples i thouhgt it was called. But I can not understand the setup phase. It has the quick setup page currently.
I downloaded the desktop git tool and it makes no sense.

I do not know yet how to put the code on it. need to find a video or so. Maybe one of you has a link to a tut video?

Or is it really needed that you do the setup through the command prompt?

I just want to put textfiles with code examples on it.


therevills(Posted 2016) [#38]
I found this tutorial pretty useful when I started to learn Git:

http://www.diaryofaninja.com/blog/2014/08/20/so-you-want-your-team-to-start-using-git-ndash-part-1-getting-started


Pakz(Posted 2016) [#39]
I spend some time looking and trying and was able to get a file to show on my github page.

Here is the github.
https://github.com/Pakz001/MonkeyXExamples

edit:Took me 30 minutes to copy paste create 40 examples to github. Going to take a while :)
edit2:It said it took me some 2 hours but everything is on it.


therevills(Posted 2016) [#40]
Excellent - now when you do your blog posts just post a link to the github.

Oh, I would do a mass rename and append .monkey to the end of the files and commit them.


Pakz(Posted 2016) [#41]
The github files are now .monkey files

183 files right now at about 600kb.


Pakz(Posted 2016) [#42]
I started putting mojo2 examples on the github page. I already think I found a bug with drawtext in imagecanvas.

So far mojo2 seems like a nice library.


RustyKristi(Posted 2016) [#43]
I don't know but even with Monkey free and Mojo2 is available I don't have any idea what's different about it. But now with Brucey's port to Blitzmax I have seen its potential and it's really awesome what he has done with it so far. Don't get me wrong, I'm still looking forward to switching to Monkey when I'm ready.

Btw Pakz, what's the best way to convert those examples to BMX?


Pakz(Posted 2016) [#44]
I have not used blitz max yet. So no idea. When I wil have some time to learn blitzmax I wil probably learn to port them. I already have a github page for blitzmax.


Pakz(Posted 2016) [#45]
I added new Monkey 1 examples. Now at 218 published posts. List in first post in this thread is updated.

On the github page there are more things that would not fit the blog.


RustyKristi(Posted 2016) [#46]
Nice!


Blitzplotter(Posted 2017) [#47]
So much juicy code here to try, I pop in from time to time to find something, usually end up spotting something else that intrigues me, fire up monkey and give it a whirl. Really great Monkey resource ;)


Pakz(Posted March) [#48]
I added 10 links to posts about vectors on the bottom of the getting started/beginners list. I am still learning about vector math and recently bought a book that has a chapter on it. I created the new posts with help from the book.

In the book there are also a whole bunch of 2d game collision functions(using vector math) that I plan on adding to the blog as examples. iirc there were 21 different ones. If I can learn how to recreate them in monkeyx then they will start to appear.

btw - The blog has had more then 31000 views since it started :)


Blitzplotter(Posted March) [#49]
31000 views, thats a pretty healthy number of views, as I mentioned already, great work.


Pakz(Posted April) [#50]
I received a new book. "mazes for programmers" I have started reading it and have already added 3 maze creation examples on the blog and github.

Over the next few days if all goes well I will add/finish 12 maze generation examples. Each a different method. There is maybe more from the book that I can turn into examples.

Several methods (The first 3) are pretty simple to code and the results are some nice levels for games.


Pakz(Posted May) [#51]
I added the maze algorithms to the middle part of the list in thread 1. I did all but 1 from the maze book(mazes for programmers)


Pakz(Posted June) [#52]
I had gotten close to 40.000 all time page views. This in 2 years and some. When a monkeyx forum is created on the monkey2 site I will probably create a post there with the links to the blog applets/code and github.