Latest Uploads
Rpg Potion Sprites

Pakz

Super Shap ... ration Kit

Andy_A

Platdude Spotting

Jayenkai

Nom nom nom

Jayenkai

Rainbow Trout

Pakz

King Salmon

Pakz

Forum Home

Too Big a Select Makes Monkey Make Many Ifs

UserMessage
Posted : Wednesday, 17 August 2016, 14:10 | Permalink
Jayenkai


WW Entries : 106
Hmm.

So, I got Puzzobomb to export its levels as one big select statement in an includable .monkey file.
Seemed logical.

Except when exporting to iOS.
For some very silly reason, instead of exporting as
Select
Case a
Case b
Case c
End select

It exports as
If a
Else
If b
Else
If c
End if

And when there's 650 levels, it ends up with an insanely huge if statement, which Xcode can't handle!!

Derp!
Going to have to rethink that.

-----
"Load, Next List!"
Homepage : http://AGameAWeek.com
Posted : Wednesday, 17 August 2016, 21:27 | Permalink
rockford


WW Entries : 3
Bonkers!

Do you really need a CASE statement for each level? Surely there must be a better way of breaking that down into smaller chunks or blocks of levels?

Or just cut the number of levels back to 10 so poor XCode can manage!
Posted : Wednesday, 17 August 2016, 22:49 | Permalink
Jayenkai


WW Entries : 106
Yeah, given that it's just making lots of ifs, I can recode it to make "better" ifs!!!
Wish I knew that earlier, though.. Would've saved a lot of time!

-----
"Load, Next List!"
Homepage : http://AGameAWeek.com
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 561|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Buy Zelda
rockford Sun 08:52
Repetitive Blogging
rskgames Fri 10:04
TinyBlocks
spinal Fri 06:46
Arduboy Owners Club
spinal Fri 02:30
AGameAWeek : 2017 - Part One
Jayenkai Thu 13:11
A New Korg Gadget!
Jayenkai Thu 12:30
SNES Mini?
rychan Thu 07:11
Steampunk Lamp
Jayenkai Wed 06:05
Finishing Off
rockford Tue 08:20
Weather in Games
rychan Tue 07:26
More

Latest Items
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
Showcase : Infinitron
Jayenkai Mon 07:50
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
Dev-Diary : PS2 to N64 Adapter
spinal Sun 10:49
Link : Vector Tutorials/Help page.
Pakz Thu 23:00
Blog : mini project
spinal Sun 10:13
Showcase : Blockman Returns
Jayenkai Fri 03:04
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
Snippet : Path Following
Pakz Mon 16:25
More

Who's Online
Jayenkai
Sun, at 09:35
9572AD
Sun, at 09:16
rockford
Sun, at 08:54
rskgames
Sun, at 08:52
shroom_monk
Sun, at 08:25
Pakz
Sun, at 08:11
spinal
Sun, at 07:52
steve_ancell
Sun, at 02:35
Andy_A
Sat, at 14:01
rychan
Fri, at 04:50
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.