Quintus: Notes and Code Examples (in CodePen.io)

My Notes and Code Examples (in CodePen.io)

Recently, I started to use the website CodePen in order to share code examples; as well as, making notes of random things I am learning in my speared time.

Currently, I am experimenting with this game framework/library called Quintus

The order goes from the newest, down to the oldest.
In this way, you don’t have to scroll all the way down to the final result.

Quintus JS HTML5

dialog-warning-2Warning: For these notes/examples, I am using external url resources (such as Open Source sprites). If any of those resources are missing, then the code examples will not 

Resources

exl-br2-sizesArt Author: grenaderifle

Url: http://s23.photobucket.com/user/grenaderifle/media/EXL-BR2-sizes.gif

spaceship Art Author: thomaswp

Url: http://opengameart.org/sites/default/files/styles/medium/public/spaceship.png

m484bulletcollection1Art Author: Master484

Url: http://opengameart.org/sites/default/files/M484BulletCollection1.png

 

Art Author: Cuzco
Url: http://opengameart.org/sites/default/files/bg5.jpg

spaceship_tutArt Author: Skorpio
Url: http://opengameart.org/sites/default/files/styles/medium/public/Spaceship_tut.png

Player: Enemies: Image + Animation

See the Pen Quintus: Player: Enemies: Image + Animation on CodePen 1

 

Player: Shots: Throttling

See the Pen Quintus: Player: Shots: Throttling on CodePen 1

Player: Shots: Refactoring

See the Pen Quintus: Player: Shots: Refactoring on CodePen 1

 

Player: Gun: Refactoring

See the Pen Quintus: Player: Gun: Refactoring on CodePen 1

 

Player: Gun: Shots Movement

See the Pen Quintus: Player: Gun: Shots Movement on CodePen 1

 

Player: Gun

See the Pen Quintus: Player: Gun on CodePen 1

 

Player: Shot

See the Pen Quintus: Player: Shot on CodePen 1

 

Control: Customization

See the Pen Quintus: Control: Customization on CodePen 1

Scene Module

See the Pen Quintus: Scene Module on CodePen 1

 

Sprites: Player: Movement: Boundaries

See the Pen Quintus: Sprites: Player: Movement: Boundaries on CodePen 1

 

Sprites: Player: Movement

See the Pen Quintus: Sprites: Player: Movement on CodePen 1

 

Sprites: Player: Input

See the Pen Quintus: Sprites: Player: Input on CodePen 1

 

Sprite: Player: Animation

See the Pen Quintus: Sprites: Player: Animation on CodePen 1

 

Sprite: Player

See the Pen Quintus: Sprites: Player on CodePen 1

 

Background

See the Pen Quintus: Background on CodePen 1

Basic

See the Pen Quintus: Basic on CodePen 1

 

Share
Leave a comment

Building a Fence

 

 

Share
Leave a comment

Hexadock: Building an IA

Hexadock
Hexadocks Connecting

The Hexadock is a community project oriented meaning that individuals and groups can participate. Each hexadock holds a circuit board with a microprocessor, connectors are available in all sides of the hexadock, and each hexadock is a representation of a single neuron. The idea is to interconnect devices and hexadocks to create an equivalent of a brain.

The project will allow individuals and groups to create an artificial intelligent indirectly. Each individual or group is allowed to control a single hexadock knowing only the hardware in the hexadock and any devices that may be connected it. Each individual and/or group is responsible to discover what they can do with the devices connected to it and to interact with their neighbors hexadocks.

Hexadock Diagram

Espruino Board
Espruino Board
Tessel Boardq
Tessel Board

There are two circuit boards that have caught my attention which are the Espruino and the Tessel.
Both boards are programmable in JavaScript which opens the doors to a large community of people. JavaScript is mostly used on websites and it is a very flexible script language. Alasdair Allan did an article in Make magazine which compare both micro-controllers. I recommend to read the article.

While the Tessel provide a lot of modules to allow interaction, the side is rather bigger than I was expecting. I am inclined to use the Espruino due the size; however, at the moment of writing this article, they are not yet in sale. I sent an email to them requesting them to inform me when such circuit board will be available. The other issue is the price of the Tessel. A Tessel plus a module cost around 89 dollars. This project will required a bunch of circuit boards, one for each hexadock. This would mean that funds will be required which at the moment I don’t have any available.

One important part to have in consideration is the communication and processing of information in the hexadocks. Both must be fast. There is no room for overcomplicated processing and/or communication. Also, how to process the information coming from different sides. Perhaps, all communication should go to a buffer to be processed. That is something that should be open for discussion.

The second part of the project will required the creation of an online interface which will allow  programming of each hexadock plus receiving information such as a video feedback to show the behavior of any device such as servos, etc.

Update (June 21 of 2018)

This post was published in Sep 27 of 2013. Since then, may things have being evolving. Today, I found out that someone is applying the idea of using circuit boards in hexagons shapes which could bring this concept alive, Hexabitz. Hexabitz is a modular electronic prototyping system in which each module comes in either hexagon, pentagon, rectangle, square or triangle shape and can be soldered together to make larger electronic boards. https://www.hexabitz.com/

 

Share
Leave a comment

Souls of War Graphic Design

Me and my friends are developing a video game for the iPhone and Android.
The following are some images I have being working on:

 

Souls of War ™ – Alejandro G. Carlstein Ramos Mejia
War’s Souls ™ – Alejandro G. Carlstein Ramos Mejia
Souls of War © – Alejandro G. Carlstein Ramos Mejia
War’s Souls © – Alejandro G. Carlstein Ramos Mejia

Share
Leave a comment

Arduino and 3D Printer opto-sensor

I was recycling one of the opto-sensors parts of the printers I took apart.
I am using the input of the Arduino to check if I can reuse them:


Share
Leave a comment