Git Product home page Git Product logo

androidgame's Introduction

androidgame

our first android gaaaame yaaay !!

Some lua notes

--single line comment

--[[ block comment ]]--

print(whatever you want) for debugging output

NULL in C or null in Java is nil in lua Lua is garbage collected, free memory is: x = nil

  1. tables

t = {} --create a table t[x] = y; -- typical array access t.x = y; -- like t["x"] so basically a string key access

  1. scoping

no keyword for globals, just on the top level locals are the natural scoping

  1. logic

~= not equal to == first checks the type! so no compiler error between different types, instead alsways false! e.g. "0" == 0 -- no automatic conversion

  1. Strings

string concatanation double dot local str = "foo ".."bar"

  1. length is unary #

  2. functions can be variables like javascript

  3. IMPORTANT! arrays are 1-based (DAFUQ) arrays start from 1 not 0

x,y = y,x swap values

androidgame's People

Contributors

0xe1d1a avatar sfakakis avatar fairstrife avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

androidgame's Issues

Things TODO

  1. Exoume provlima me ta borders. Prepei na ginoun oxi me statikous ari8mous alla me pososta h kapws analogws to device na ftiaxnoun mona tous.

  2. Evala san level ayto pou eixame ftia3ei me ta psarakia. Ayto pou den ekana einai mitigate kai to animation opote leipei. Kapoia stigmh na to valw/oume

  3. Pleon mporoume na pernoume ka8e arxeio kai na arxisoume na to veltionoume, kuriws afou sunenoh8oume telika gia to ti 8a ftia3oume. Px mporei kapoios na parei to menu h to level transition h na ftia3ei ena kainourgio level. Ayth th stigmh to application moiazei sa na exei polla levels alla ola odigoun sto monadiko: game.lua

Throw ideas hiear

  • Multi-touch: One finger red, one finger yellow. Guide the fingers to the correct colors
  • Freeze power: stop everything that's moving for a time delay
  • We need a concept: Not just balls, but something more specific. E.g. a ninja in the middle of the scree which you are protecting from the incoming shurikens (red balls). The kunais are good (yellow balls) and should not be pressed. A fancy animation that the ninja threw a kunain to parry the shurikens. Even more advanced: Rpg on the ninja. Unlock skins, powers etc etc

Feel free to add your own

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.