Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Friday, May 6, 2016

HTML5 and android - How to deal with it?

Hello everyone,

What's up?
Today I want to talk about using HTML5 to create android application.

To be honest, I love this solution. You code in HTML5 and javascript your application. Then you just make your 'app' more awesome thanks to css. What's next? Just use phonegap (https://build.phonegap.com/) to build your app and that's it.

Wait. What? It's too simple!
Nope. You just create your website and make an application.

How to start?
Create index.html and there put your html code. Add some javascript code to the website. That will make your website alive but ugly, so next add css. Now you have awesome app which is nothing more then website.
Then just log in to phonegap and put there your files.
That's all.

Next I will create simple tutorial on how to create android application in few simple steps.

Bye.

PS: Leave a comment what you think.
PPS: Thanks :)

Saturday, January 9, 2016

Programming on android

Hi awesome people :)

Let's start talking about programming on android device.

Firstly, it's hard, not effective and tiring. I know many people disagree, but it's possible.

Why? Because you have small screen. You have to jump from window to window and you can't have two or more at the same time. The font size is small. Looking at small letters and bright, small screen is tiring. There is not enough space and you need effective tool for switching between windows.

Secondly - compilators. You have to own remote server to compile your programs. And if you doesn't have access to device that can run your program, it will be the nightmare. Efficient way to build your programs is important. When you use remote server and you can run your code on android device. And it's pretty ok. Also, web development is easy on android. Browsers are everywhere. Code run without any external compilators. You can just seat down and code webpages that don't use server. You can code templates, make frontend stuff. Backend is a little harder, you need to deploy your code to server and then run.

Finnaly, in my opinion, you should code on android only when you don't have any choice or want to code anywhere. It will be tiring and hard, but you can spend e.g. in bus few minutes/hours coding something cool for your website.

Any questions?
Any suggestions?

See you :)

Sunday, July 12, 2015

Making platfromer game with Haxe and Flixel (compo game)

Hi,

I decide to take part in compo. It's local 3 months compo, no topic, no restrictions, just a game. I think the platfromer game will be good.

Where I started? At first I deep into Haxe and Flixel. I passed tutorials and made some simple games, just mechanics so now I think I'm ready to write something bigger.

At first I created simple story. This is basic. You have to know what you want to do.

Next I wrote about a game, what I want in game, etc.
 - 2D platformer game
 - 4 languages (Polish, English, German, Spanish)
 - cutscenes - to narrate story
 - menu, many levels
 - maybe dubbing
It's general tasks, nothing more. Now I see that I need something to manage languages and dubbing, something to show cutscens, managing many game states e.g. select language, menu, game etc.

Flixel provide nice managing game states, so this stuff is done. You just extend your class by FlxState.
In my opinion cutscens will be sprites and texts so every cutscene will be another game state.
Managing languages will be static class with variables e.g. TXT_BTN_PLAY and function selectLanguage(language) where just set variable to needed text.

Flixel is amazing and has everything what game developer need. You can load tilemaps from many programs like tiled, ogmo etc., has included pathfinding on these tilemaps. Flixel has basic things like buttons, physics etc. too.

So what I did for now?
I have done:
 - class for managing language
 - selecting language
 - menu with selected language

It's not much but I started today.
I will post here about progress.

See you soon. Bye :)