Giter Club home page Giter Club logo

make-them-fall-activity's Introduction

What is this?

Make Them Fall is a multilevel arcade game for the Sugar desktop.

How to use?

Make Them Fall is part of the Sugar desktop. Please refer to;

How to upgrade?

On Sugar desktop systems;

How to run?

Make Them Fall depends on Python, PyGTK and PyGame.

Make Them Fall is started by Sugar.

Make Them Fall is not packaged by Debian, Ubuntu and Fedora distributions.
On Ubuntu and Debian systems these required dependencies (python-gtk2-dev and python-pygame) need to be manually installed. On Fedora system these dependencies (pygtk2 and pygame) need to be manually installed.

Running outside Sugar

  • Install the dependencies -

On Debian and Ubuntu systems;

sudo apt install python-gtk2-dev python-pygame

On Fedora systems;

sudo dnf install pygtk2 pygame
  • Clone the repo and run-
git clone https://github.com/sugarlabs/make-them-fall-activity.git
cd make-them-fall-activity
python main.py

Running inside Sugar

  • Open Terminal activity and change to the Make Them Fall activity directory
cd activities\MakeThemFall.activity
  • To run
sugar-activity .

make-them-fall-activity's People

Contributors

ayushnawal avatar chimosky avatar dipanshkhandelwal avatar iamutkarshtiwari avatar jriyyya avatar pipix51 avatar quozl avatar rajutkarsh07 avatar vaibhav-sangwan avatar yell0wfl4sh avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

make-them-fall-activity's Issues

Score file not written

When installed as a system-wide activity on a multi-user system, the activity bundle directory is not writeable, and so the read and write of score.pkl cannot complete.

Software design quality issues, blocking release

It spins consuming CPU power. The graphics aren't positioned in the centre of screen. The game goes fast enough for a teenager, but not slow enough for an elementary school child. There's no controls to slow it down

I'm not surprised, as it doesn't look like the game has been tested or released since it was written for GCI 2015, and our criteria for accepting new activities during GCI is much lower because of time pressure.

All in all, the game needs testing by many others before it is ready to be released.

Poor event handling

The game help shows that arrow keys are to be used but using them have no effect and this is seen in the logs.

Traceback (most recent call last):
  File "/home/ibiam/Activities/make-them-fall-activity/sugargame/event.py", line 140, in _keyup_cb
    return self._keyevent(widget, event, pygame.KEYUP)
  File "/home/ibiam/Activities/make-them-fall-activity/sugargame/event.py", line 172, in _keyevent
    mod = self._keymods()
  File "/home/ibiam/Activities/make-them-fall-activity/sugargame/event.py", line 145, in _keymods
    mod |= self.__keystate[key_val] and mod_val
IndexError: list index out of range
Traceback (most recent call last):
  File "/home/ibiam/Activities/make-them-fall-activity/sugargame/event.py", line 128, in _keydown_cb
    return self._keyevent(widget, event, pygame.KEYDOWN)
  File "/home/ibiam/Activities/make-them-fall-activity/sugargame/event.py", line 169, in _keyevent
    mod = self._keymods()
  File "/home/ibiam/Activities/make-them-fall-activity/sugargame/event.py", line 145, in _keymods
    mod |= self.__keystate[key_val] and mod_val
IndexError: list index out of range

Took a look and the activity doesn't handle events its expected to handle.

@jriyyya you might be interested in this.

Cannot run project locally

Found error in main.py.
Error:
Traceback (most recent call last):
File "main.py", line 332, in
g.make()
File "main.py", line 115, in make
maxnormal = font1.render( ("Best: ") + str(maxnormal), 1, (0, 0, 0))
NameError: global name '
' is not defined

Comic Sans font has a restricted distribution license

  • confirm that the font with the file name comicsans.ttf is Comic Sans,
  • confirm that Comic Sans is restricted, and not compatible with our organisation,
  • replace Comic Sans with a font with an open source compatible license,
  • consider also arial.ttf

Enhance UI of settings page its empty and can have more good UI and UX

PROBLEM:
I saw settings page it has below problems
->Much of the space in that screen is empty which is not a feature of good UI

->Poor UX until and unless user does not clicks Difficulty button he does not knows how to change difficulty for him/her.

SOLUTION:
We can have three different buttons for three levels i.e. DIFFICULT, EASY,MEDIUM and three of them can be displayed on that screen accordingly user will select the button accord to his level of comfort

Features:-
->Covers much space in page and has much better UI than previous settings screen.
->More reliable for children to choose difficulty level and guess how to do it

i18n/L10n

Please add internationalization so we can add to Pootle

README.md needs work

README.md needs work.

  • running under Sugar should use sugar-activity command,
  • is Debian or Ubuntu specific, does not mention Fedora,
  • uses old apt-get instead of new apt,
  • should combine both dependencies onto one apt install line.

README.md should be written for three audiences; users, integrators, and developers. You must be very very familiar with the source code to write a good README.md. For ideas on what else you may add, see

flake8 opportunities

As at c66c74d the source code has 239 warnings or errors from flake8;

host:~/make-them-fall-activity$ python2 -m flake8 *.py | wc --lines
239

Remove score.pkl from repository

  • file is not source code,
  • some of us have accidentally committed changes to the file,
  • but activity does not work without it; perhaps it should create it if missing,

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.