If you didn't read my article about PowerOS, go to this link!
In previous article I telled you something about PowerOS! It's got great function! PGames! If you want to develop your own game, you must follow some rules.
- Your project shouldn't have any pictures or pictures transfered to hex, until we find and upload patch for "unlimited" pictures
- It must be okay for under 18 years
- It must be at least compiled for OLED 4-pin 128x64 0.96' display. You can also compile for TFT, TFT touch, Nextion, E-book (Soon we will publish PowerOS E-book edition). If you want to get in touch with me about this rule please go on www.mytja.tk under PowerOS and search for form!
- You must use our choosen libraries for displays!
I think, that's enough! For OLEDs you must use Adafruit GFX!
To start, if you go to www.mytja.tk and go to PowerOS soon you might see Dev Site. You can see Publish your game! You must write everything in description.
And now coding part.
If you want to make a game, you must follow rules, that are described! Example of code, that you must do is here (this game is called TestGame). It must be.h file!
TestGame.h
//License: <License>
//Author: <Author>
#include <Adafruit_SSD1306.h> //only for OLED
#include <Adafruit_GFX.h>
Adafruit_SSD1306 display(-1);
int left_button = 1;
int right_button = 2;
int ok_button = 3;
int cancel_button = 4;
void game-TestGame(){
//Your game goes here! You can make more voids if you want
}
And in "void game-<gamename>" goes your creativity! Creativity is unlimited! When you are done with game go to our form and we will publish it!
Now, with version of PowerOS 1.0.1, we fully support PGames!
Comments
Please log in or sign up to comment.