Tags » Javscript

Moving an object with XST3 and Rects

Same example as fillrect but with an object rect similar to SDL.


winscreen(640, 480, 0, 1);
setfont(28, 'Algerian');

var rect = new Rect();
rect.x = 0, rect.y = 0;
rect.width = 100, rect.height = 100;

function main() {
clear();
rect.x = getmousex();
rect.y = getmousey();
fillRect(rect.x-rect.width/2, rect.y-rect.height/2, rect.width, rect.height);
}

Main

JS Garbage Collection Improvements

Check out the latest updates to JavaScripts Garbage collection here

https://blog.risingstack.com/javascript-garbage-collection-orinoco/

And get more information on must have Node packages at Great Commentary on NodeJS Resources

Development

Data Flow in We Go Too

I designed We Go Too as a data driven app.  Users create our data by recording
or plotting a route on our react native map. Routes are searcheable by keyword 
and group events can be created to share a route in real time with friends. 54 more words

Run Gulp.js from eclipse

Overview

This post provides details on how run gulp.js in eclipse.

Pre-requisites:

  • Install node on Local machine.
  • Install node eclipse plugin as described here.
150 more words

Javascript

Download Node modules in Eclipse work space

Overview

This post provides details on how the node modules can be downloaded into Eclipse workspace.

Pre-requisites:

  • Install node eclipse on Local machine.
  • Install node eclipse plugin as described…
143 more words

Javascript

How to detect mobile browser

var ua = navigator.userAgent;
if ((ua.match(/touch|tablet|mobile|android|ipad|blackberry|rim|phone|silk/i)) && !window.location.href.match(/fullsite=true/i)){
location.replace(“http://m.sierravistasuites.com/”);
}

Javscript

Basic NodeEclipse Setup

Overview

Eclipse is an IDE which is built in java and is mostly used for java development. Eclipse also supports multiple other languages through use of plugins. 162 more words

Javascript