summaryrefslogtreecommitdiff
path: root/main.bmx
blob: 1e0237156675bc019d65aa4514ac3158d52a1cb5 (plain)
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
60
61
62
63
64
65
66
67
68
69
' Particle Pinch
'
' Copyright 2005 Ian Cowburn
'
' $Id$
'
Strict

Import noddybox.vector
Import noddybox.bitmapfont
Import noddybox.simplegui

Import "types.bmx"
Import "level.bmx"
Import "game.bmx"
Import "designer.bmx"

' Included binaries
'
Incbin "GFX/font.bmf"
Incbin "GFX/gui.bmf"
Incbin "GFX/STAR.png"
Incbin "GFX/MASS.png"
Incbin "GFX/POINT.png"
Incbin "GFX/PARTICLE.png"
Incbin "GFX/POINTER.png"
Incbin "GFX/COLLECTOR.png"


' Initialise graphics
'
SetGraphicsDriver GLMax2DDriver()
Graphics 800,600,32,60
HideMouse

SetBlend(ALPHABLEND)

' Globals
'
GameGFX.font=TBitmapFont.Load("incbin::GFX/font.bmf",0)
GameGFX.guifont=TBitmapFont.Load("incbin::GFX/gui.bmf",0)
GameGFX.star=LoadAnimImage("incbin::GFX/STAR.png",8,8,0,2)
GameGFX.mass=LoadAnimImage("incbin::GFX/MASS.png",8,8,0,2)
GameGFX.collector=LoadAnimImage("incbin::GFX/COLLECTOR.png",8,8,0,2)
GameGFX.point=LoadImage("incbin::GFX/POINT.png",0)
GameGFX.particle=LoadImage("incbin::GFX/PARTICLE.png",0)
GameGFX.pointer=LoadImage("incbin::GFX/POINTER.png",0)

SetImageHandle(GameGFX.star,3,3)
SetImageHandle(GameGFX.mass,3,3)
SetImageHandle(GameGFX.collector,3,3)
SetImageHandle(GameGFX.point,3,3)
SetImageHandle(GameGFX.particle,3,3)
SetImageHandle(GameGFX.pointer,0,0)

TPoint.img=GameGFX.point
TParticle.img=GameGFX.particle

TParticleMachine.Init()

' Consts
'

' Test code
'
LevelDesigner()

EndGraphics
End