Documentation ¶
Overview ¶
Copyright 2021 The Ebiten Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The Ebiten Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The Ebiten Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 The Ebiten Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( //go:embed tiles/64x64.png Spritesheet_png []byte //go:embed tiles/kenney/longTable_N.png TableN_png []byte //go:embed tiles/kenney/longTable_E.png TableE_png []byte //go:embed tiles/kenney/longTable_S.png TableS_png []byte //go:embed tiles/kenney/longTable_W.png TableW_png []byte //go:embed tiles/kenney/displayCase_N.png DisplayCaseN_png []byte //go:embed tiles/kenney/displayCase_E.png DisplayCaseE_png []byte //go:embed tiles/kenney/displayCase_S.png DisplayCaseS_png []byte //go:embed tiles/kenney/displayCase_W.png DisplayCaseW_png []byte //go:embed tiles/kenney/bookcaseBooks_N.png BookcaseBooksN_png []byte //go:embed tiles/kenney/bookcaseBooks_E.png BookcaseBooksE_png []byte //go:embed tiles/kenney/bookcaseBooks_S.png BookcaseBooksS_png []byte //go:embed tiles/kenney/bookcaseBooks_W.png BookcaseBooksW_png []byte )
Functions ¶
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Game is an isometric demo game.
type Level ¶
type Level struct {
// contains filtered or unexported fields
}
Level represents a Game level.
type SpriteSheet ¶
type SpriteSheet struct { Floor *ebiten.Image Wall *ebiten.Image StairsUp *ebiten.Image StairsDown *ebiten.Image DoorNS *ebiten.Image DoorEW *ebiten.Image DoorNSOpen *ebiten.Image DoorEWOpen *ebiten.Image Table *Sprite DisplayCase *Sprite Bookcase *Sprite }
SpriteSheet represents a collection of sprite images.
func LoadSpriteSheet ¶
func LoadSpriteSheet(tileSize int) (*SpriteSheet, error)
LoadSpriteSheet loads the embedded SpriteSheet.