go>> Ne>> 返回
项目作者: hostops

项目描述 :
A library that helps you simply create arcade game using few lines.
高级语言: JavaScript
项目地址: git://github.com/hostops/Ne.git
创建时间: 2018-06-22T14:08:12Z
项目社区:https://github.com/hostops/Ne

开源协议:MIT License

下载


Ne

GitHub
Maintenance
A library that helps you simply create arcade game using few lines. Purpose of project Ne is to make children interested in coding.

GitHub issues
GitHub closed issues
GitHub forks
GitHub stars

You can try your code online: https://ne.etilk.com/

Simple example

  1. var nextRoom = new Room();
  2. nextRoom.addItem(Items.angryRobot());
  3. nextRoom.addItem(Items.helper());
  4. nextRoom.addItem(Items.bonus());
  5. mainRoom.addRoom(nextRoom, Direction.LEFT);

Room loop example

  1. var leftRoom = mainRoom.newLeftRoom(80);
  2. var upRoom = mainRoom.newUpRoom(60);
  3. var thirdRoom = leftRoom.newUpRoom(40);
  4. thirdRoom.addRoom(upRoom, Direction.RIGHT);
  5. mainRoom.addItem(new Item(0.05, 0.05));
  6. mainRoom.addItem(new Item(0.05, 0.05));
  7. mainRoom.addItem(new Item(0.05, 0.05));
  8. leftRoom.addItem(new Item(0.05, 0.05));
  9. leftRoom.addItem(new Item(0.05, 0.05));
  10. thirdRoom.addItem(new Item(0.05, 0.05));

And your game is running.

Modules

  • Code editor
  • UI
    • Interface
  • Game
    • Items
    • GamePlay