Getting Started with IoT Part 1: Message Broker

IoT

Getting Started with IoT Part 1: Message Broker

This is part 1 of a series of tutorials for getting started with IoT (Internet of things). I’m writing these posts to document my adventures developing an Internet of Things project, hoping that they might serve as a guide to others. Throughout the different steps of the project, we will create a network of “Things” that senses the world and acts in real-time. We will be using Raspberry Pis, NodeMCUs, sensors, actuators, and software to create a centralized dashboard where all “Things” can be monitored and controlled.

Continue reading

Terminal debugging with lldb and voltron

Voltron lldb debugging in terminal

Terminal debugging with lldb and voltron

I really enjoy using the terminal. I wanted to learn how to debug from it and decided to give lldb a try. After asking google a lot of questions I found snare/voltron . Voltron looks amazing and makes debugging with lldb a lot more visual.

Here is a screenshot of lldb debugging of a simple hello world program with Voltron

Voltron lldb debugging in terminal

Voltron lldb debugging in terminal

After getting this setup, I went back to work on an app on XCode, and realized that I had broken it. My simulator would lock up and I would have to force quit XCode.

Continue reading

Making a mobile 2D shooter game

Making a mobile 2D shooter game

Today I started working on a simple shooter game. It will be a fast and fun 2D shooter that is easy to learn, imposible to master! The art comes from the Kenney.nl donation package. I want to take advantage of the accelerometer to create some cool gameplay mechanics. It runs on mobile devices (android and iOS) and is built using Lua and CoronaSDK.

Continue reading

Parallax 3D effect with Corona

parallax_3d_effect

This morning I implemented a simple parallax system that creates the illusion of depth by using gravity data from the accelerometer with Corona SDK

First, I start to poll the accelerometer 100 times per second.

system.setAccelerometerInterval( 100 ) -- 100 hz is max

Gravity data from the accelerometer is then used to offset the angle of view. Illusion of depth is created by slightly moving the layers in the right direction, the magnitude of the movement depending on the distance to the eye.

To manage the scene I created 10 different layers. I placed the smaller shark in the front layer (layer 0), the larger shark in the middle (layer 5) and the back image to the background (layer 10).

Continue reading

Using CocoaPods FTW

I can’t tell you the number of hours I would have saved if I started using CocoaPods earlier!

If you are developing with XCode you might already know that linking libraries to your project is a major pain… Fear no more! CocoaPods is here to save your time and day.

There are lots of resources on how to install and use CocoaPods, so here is yet another one created by me:

Using the terminal do the following steps:

1. Update  the ‘gem’

sudo gem update --system

2. Install CocoaPods

sudo gem install cocoapods -V

Continue reading

Back to top