Skip to content

Commit

Permalink
Finalized version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gandie committed Jul 16, 2017
1 parent ed2d44a commit da1b490
Show file tree
Hide file tree
Showing 74 changed files with 41 additions and 34 deletions.
2 changes: 1 addition & 1 deletion buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ source.include_exts = py,png,jpg,kv,atlas,pyx,h,c
#version.filename = %(source.dir)s/main.py

# (str) Application versioning (method 2)
version = 0.4.2
version = 0.5.0

# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
Expand Down
2 changes: 1 addition & 1 deletion game_modi.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def trajectory_start(self, touch):
with self.gamezone.parent.canvas:
ud['lines'] = [
Line(points=(touch.x, touch.y, touch.x + 1, touch.y + 1),
width=1, group=ud['group'])]
width=1, dash_offset=12, group=ud['group'])]

def trajectory_complex(self, touch):

Expand Down
5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,10 @@ def load_settings(self):
return settings

def save_settings(self):
f = open('settings.json', 'w')
D = copy.deepcopy(self.logic.settings)
json_d = json.dumps(D)
f.write(json_d)
f.close()
with open('settings.json', 'w') as settingsfile:
settingsfile.write(json_d)

def load_game(self, slot='current'):
self.logic.reset_planets(self)
Expand Down
Binary file modified media/background/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/background/background_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/background/background_savegame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/background/background_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/buttons/load.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/buttons/save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/icons/Zoom Mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/icons/add sun pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/icons/add sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/add_planet.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/add_planet_pressed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/addsize.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/addsize_pressed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/arrow.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/arrow_pressed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/arrowleft.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/arrowleft_pressed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/checkpressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/delete.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/delete_pressed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/fix.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/fix_pressed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/menu.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/menu_pressed.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/icons/multipass.png
100644 → 100755
Binary file modified media/icons/multipass_pressed.png
100644 → 100755
Binary file modified media/icons/pause.png
100644 → 100755
Binary file modified media/icons/pause_pressed.png
100644 → 100755
Binary file modified media/icons/pick.png
100644 → 100755
Binary file modified media/icons/pick_pressed.png
100644 → 100755
Binary file modified media/icons/reset.png
100644 → 100755
Binary file modified media/icons/reset_pressed.png
100644 → 100755
Binary file added media/icons/rund.png
Binary file added media/icons/settings icon.png
Binary file added media/icons/settings pressed.png
Binary file added media/icons/slider.png
Binary file modified media/icons/subsize.png
100644 → 100755
Binary file modified media/icons/subsize_pressed.png
100644 → 100755
Binary file added media/icons/sunmode.png
Binary file added media/icons/sunmode_pressed.png
Binary file added media/icons/timer_panel.png
Binary file modified media/icons/view.png
100644 → 100755
Binary file modified media/icons/view_pressed.png
100644 → 100755
Binary file added media/icons/zoom pressed.png
Binary file added media/icons/zoom.png
Binary file added media/icons/zoom_pressed.png
Binary file removed media/textures/bigsuns/blue_sun.png
Diff not rendered.
Binary file added media/textures/bigsuns/bluesun.png
Binary file modified media/textures/blackholes/blackhole.png
100644 → 100755
Binary file added media/textures/gasgiants/juppie.png
Binary file removed media/textures/gasgiants/juppieone.png
Diff not rendered.
Binary file added media/textures/giantsuns/bigsun.png
Binary file removed media/textures/giantsuns/redgiant.png
Diff not rendered.
Binary file modified media/textures/moons/moon.png
100644 → 100755
Binary file removed media/textures/picked/picked.png
Diff not rendered.
Binary file modified media/textures/picked/scope.png
100644 → 100755
Binary file added media/textures/planets/cliffy.png
Binary file removed media/textures/planets/cliffyone.png
Diff not rendered.
Binary file removed media/textures/planets/icyone.png
Diff not rendered.
Binary file removed media/textures/planets/mercurial.png
Diff not rendered.
Binary file added media/textures/planets/rock.png
Binary file modified media/textures/planets/sandyone.png
100644 → 100755
Binary file removed media/textures/planets/wetplanet.png
Diff not rendered.
Binary file modified media/textures/suns/sun.png
100644 → 100755
10 changes: 5 additions & 5 deletions menupanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ def build_interface(self):
)

self.add_sun_button = RealMenuToggleButton(
'./media/icons/add_sun.png',
'./media/icons/add_sun_pressed.png',
'./media/icons/sunmode.png',
'./media/icons/sunmode_pressed.png',
'add_sun',
pos_hint={'x': 0, 'y': self.iconratio * 4},
size_hint=(None, None),
size=(self.iconsize, self.iconsize),
source='./media/icons/add_sun.png',
source='./media/icons/sunmode.png',
group='menu',
allow_no_selection=False
)
Expand All @@ -153,15 +153,15 @@ def build_interface(self):
)

self.zoom_button = RealMenuToggleButton(
'./media/icons/zoom.png',
'./media/icons/zoom_mode.png',
'./media/icons/zoom_mode_pressed.png',
'zoom',
size_hint=(None, None),
size=(self.iconsize, self.iconsize),
pos_hint={'x': 0, 'y': self.iconratio * 6},
group='menu',
allow_no_selection=False,
source='./media/icons/zoom_mode.png'
source='./media/icons/zoom.png'
)

self.multi_button = RealMenuToggleButton(
Expand Down
14 changes: 7 additions & 7 deletions menuscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def build_interface(self):
'./media/buttons/play.png',
'./media/buttons/play_pressed.png',
self.switchto_main,
size_hint=(0.4, 0.3),
pos_hint={'x': 0, 'y': 0.6},
size_hint=(0.3, 0.2),
pos_hint={'x': 0, 'y': 0.7},
source='./media/buttons/play.png',
always_release=True
)
Expand All @@ -64,8 +64,8 @@ def build_interface(self):
'./media/buttons/settings.png',
'./media/buttons/settings_pressed.png',
self.switchto_settings,
size_hint=(0.4, 0.3),
pos_hint={'x': 0.6, 'y': 0.6},
size_hint=(0.3, 0.2),
pos_hint={'x': 0.7, 'y': 0.7},
source='./media/buttons/settings.png',
always_release=True
)
Expand All @@ -74,7 +74,7 @@ def build_interface(self):
'./media/buttons/saves.png',
'./media/buttons/saves_pressed.png',
self.switchto_savegames,
size_hint=(0.4, 0.3),
size_hint=(0.3, 0.2),
pos_hint={'x': 0, 'y': 0.1},
source='./media/buttons/saves.png',
always_release=True
Expand All @@ -84,8 +84,8 @@ def build_interface(self):
'./media/buttons/credits.png',
'./media/buttons/credits_pressed.png',
self.switchto_credits,
size_hint=(0.4, 0.3),
pos_hint={'x': 0.6, 'y': 0.1},
size_hint=(0.3, 0.2),
pos_hint={'x': 0.7, 'y': 0.1},
source='./media/buttons/credits.png',
always_release=True
)
Expand Down
2 changes: 1 addition & 1 deletion planet.kv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Slider>
cursor_image: './media/icons/delete.png'
cursor_image: './media/icons/slider.png'

<Mainscreen>:
canvas:
Expand Down
12 changes: 6 additions & 6 deletions planet.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def __init__(self, **kwargs):
)

self.select_overlay = Image(
size_hint=(None, None),
pos_hint={'x': -0.25, 'y': -0.25},
source='./media/textures/picked/picked.png',
size_hint=(1.25, 1.25),
pos_hint={'x': -0.125, 'y': -0.125},
source='./media/textures/picked/scope.png',
allow_stretch=True
)

Expand All @@ -39,13 +39,13 @@ def on_size(self, instance, value):
if self.base_image:
self.base_image.size = value
if self.select_overlay:
newsize = (self.base_image.size[0] * 1.5, self.base_image.size[1] * 1.46)
newsize = (self.base_image.size[0] * 1.5, self.base_image.size[1] * 1.5)
self.select_overlay.size = newsize
self.select_overlay.center = self.center

def select(self):
newsize = (self.base_image.size[0] * 1.5, self.base_image.size[1] * 1.46)
self.select_overlay.size = newsize
#newsize = (self.base_image.size[0] * 10, self.base_image.size[1] * 10)
#self.select_overlay.size = newsize
self.select_overlay.center = self.center
self.add_widget(self.select_overlay)

Expand Down
3 changes: 2 additions & 1 deletion settingsscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ def on_enter(self):

def on_leave(self):
'''
write setting to logic
write setting to logic and save to file
'''
logic_settings = self.logic.settings
for key in logic_settings.keys():
if key in self.setting_items:
logic_settings[key] = self.setting_items[key].value
self.logic.apply_settings()
App.get_running_app().save_settings()

def build_interface(self):
self.mainlayout = FloatLayout()
Expand Down
25 changes: 16 additions & 9 deletions slot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from kivy.uix.gridlayout import GridLayout

# CUSTOM
from realbutton import RealToggleButton
from realbutton import RealToggleButton, RealButton

'''
Slot = widget to show savegame-slot
Expand Down Expand Up @@ -49,18 +49,25 @@ def build_interface(self):
size_hint=(0.5, 1),
pos_hint={'x': 0, 'y': 0}
)
self.loadbutton = Button(
text='Load',

self.loadbutton = RealButton(
'./media/buttons/load.png',
'./media/buttons/load.png',
self.load,
size_hint=(0.25, 1),
pos_hint={'x': 0.5, 'y': 0},
on_press=self.load
pos_hint={'x': 0.75, 'y': 0},
source='./media/buttons/load.png',
always_release=True
)

self.savebutton = Button(
text='Save',
self.savebutton = RealButton(
'./media/buttons/save.png',
'./media/buttons/save.png',
self.save,
size_hint=(0.25, 1),
pos_hint={'x': 0.75, 'y': 0},
on_press=self.save
pos_hint={'x': 0.5, 'y': 0},
source='./media/buttons/save.png',
always_release=True
)

self.add_widget(self.label)
Expand Down

0 comments on commit da1b490

Please sign in to comment.