Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Latest commit

 

History

History
History
59 lines (52 loc) · 2.45 KB

File metadata and controls

59 lines (52 loc) · 2.45 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ####################################################################
# Copyright (C) 2005-2013 by the FIFE team
# http://www.fifengine.net
# This file is part of FIFE.
#
# FIFE is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# ####################################################################
from fife import fife
# Import the ApplicationBase. This is where a lot of magic happens but
# you don't need to know the inner workings just yet. Once you are more
# familiar with FIFE you'll understand ApplicationBase much more.
from fife.extensions.basicapplication import ApplicationBase
class Tutorial1Application(ApplicationBase):
"""
The main application. It inherits fife.extensions.ApplicationBase
and implements the _pump() function which gets called every frame.
"""
def __init__(self, settings):
# Call our base class's __init__ function and pass it settings.
# This is where the FIFE engine instance gets created and configured
# (amoungst other things). This includes reading the settings file,
# applying the settings to the engine, initializing PyChan (our GUI
# manager), creating the default application listener (more info on
# this in our later tutorials), and setting up logging. All of
# these things you can do on your own but we provide ApplicationBase
# to make your life easier.
super(Tutorial1Application,self).__init__(settings)
# Save a copy of our settings. This could be useful in the future
# as the Setting module allows you to store your own settins as
# well as FIFE settings.
self._settings = settings
def _pump(self):
"""
This function gets called every frame. This is where you want to
call your main game logic code.
"""
pass
Morty Proxy This is a proxified and sanitized view of the page, visit original site.