예제 #1
0
import gfw
import menu_state

gfw.run(menu_state)
예제 #2
0
import gfw
import title_state

gfw.run(title_state) 
예제 #3
0
from pico2d import *
import gfw
import Scene_Loading


gfw.run(Scene_Loading)
예제 #4
0
파일: starter.py 프로젝트: ugi00/2DGP
import gfw
import logo_state

gfw.run(logo_state)
예제 #5
0
                self.black_screen.alpha = min(
                    1.0, self.black_screen.alpha + gfw.delta_time * 2.0)
            if self.black_screen.alpha >= 1.0:
                gfw.push_state(ScoreState(self.score))

        self.cookie.update(self.tiles)
        # draw_rectangle(cookie_left, cookie_bottom, cookie_right, cookie_top)

        self.font.text = 'SCORE: ' + str(int(self.score))

        if gfw.eh.get_key_down(gfw.SDLK_ESCAPE):
            self.stop_game = True
            self.resume_button.active = True
            self.exit_button.active = True
            self.black_screen.active = True
            self.black_screen.alpha = 0.5

    def pause(self):
        pass

    def resume(self):
        pass

    def exit(self):
        gfw.renderer.clear()


if __name__ == '__main__':
    gfw.init(MainState(0))
    gfw.run()
예제 #6
0
import gfw
import main_state

gfw.run(main_state)

# 1. running stage 좌표지정 완료
# 2. chaser 장애물 구현
# 3. 체력바 구현

# 보완해야 하는 것
# 객체들 size조절
# platform 위치조정
# stage 간격수정
# 크기젤리 -> 장애물 파괴기능 추가
# 화면밖에 벗어났을 때 꼭대기에서 리젠되는 방식이 아니라,
# 무적상태를 받아 서서히 올라온 후 떨어지도록 수정

# 젤리 기능추가:
# 체력회복: 장애물 구현 후
# 보너스: 에디터 제작 후
# 보스: 장애물 구현 후
# 스피드: 구현미정( 시간 남았을때)

# ** player -> jump,magnet,biggest time 재는 cnt 변수를 공유하고 있음
# ** 오류 생기지 않는지 체크 후 수정필요